Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a521c1b7
Commit
a521c1b7
authored
Mar 15, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Barry's 2.18 -- don't indent, only outdent
parent
2ed53547
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
Misc/python-mode-old.el
Misc/python-mode-old.el
+10
-8
No files found.
Misc/python-mode-old.el
View file @
a521c1b7
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
;; 1992-1994 Tim Peters <tim@ksr.com>
;; 1992-1994 Tim Peters <tim@ksr.com>
;; Maintainer: bwarsaw@cnri.reston.va.us
;; Maintainer: bwarsaw@cnri.reston.va.us
;; Created: Feb 1992
;; Created: Feb 1992
;; Version: 2.1
6
;; Version: 2.1
8
;; Last Modified: 1995/03/15 1
6:23:59
;; Last Modified: 1995/03/15 1
8:23:16
;; Keywords: python editing language major-mode
;; Keywords: python editing language major-mode
;; This software is provided as-is, without express or implied
;; This software is provided as-is, without express or implied
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
;; LCD Archive Entry:
;; LCD Archive Entry:
;; python-mode|Barry A. Warsaw|bwarsaw@cnri.reston.va.us
;; python-mode|Barry A. Warsaw|bwarsaw@cnri.reston.va.us
;; |Major mode for editing Python programs
;; |Major mode for editing Python programs
;; |1995/03/15 1
6:23:59|2.16
|
;; |1995/03/15 1
8:23:16|2.18
|
;;; Code:
;;; Code:
...
@@ -436,10 +436,12 @@ argument is provided, that many colons are inserted non-electrically."
...
@@ -436,10 +436,12 @@ argument is provided, that many colons are inserted non-electrically."
(
py-compute-indentation
)))
(
py-compute-indentation
)))
)
)
(
setq
outdent
py-indent-offset
))
(
setq
outdent
py-indent-offset
))
;; electric colon won't re-indent lines that start in column
;; Don't indent, only outdent. This assumes that any lines that
;; zero. you'd have to use TAB for that. TBD: Is there a
;; are already outdented relative to py-compute-indentation were
;; better way to determine this???
;; put there on purpose. Its highly annoying to have `:' indent
(
if
(
zerop
(
current-indentation
))
nil
;; for you. Use TAB, C-c C-l or C-c C-r to adjust. TBD: Is
;; there a better way to determine this???
(
if
(
<
(
current-indentation
)
indent
)
nil
(
goto-char
here
)
(
goto-char
here
)
(
beginning-of-line
)
(
beginning-of-line
)
(
delete-horizontal-space
)
(
delete-horizontal-space
)
...
@@ -1908,7 +1910,7 @@ local bindings to py-newline-and-indent."))
...
@@ -1908,7 +1910,7 @@ local bindings to py-newline-and-indent."))
(
setq
zmacs-region-stays
t
)))
(
setq
zmacs-region-stays
t
)))
(
defconst
py-version
"2.1
6
"
(
defconst
py-version
"2.1
8
"
"`python-mode' version number."
)
"`python-mode' version number."
)
(
defconst
py-help-address
"bwarsaw@cnri.reston.va.us"
(
defconst
py-help-address
"bwarsaw@cnri.reston.va.us"
"Address accepting submission of bug reports."
)
"Address accepting submission of bug reports."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment