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
d865bc59
Commit
d865bc59
authored
Mar 15, 1995
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#(py-electric-colon): updated comment
parent
a6a714eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Misc/python-mode.el
Misc/python-mode.el
+5
-5
No files found.
Misc/python-mode.el
View file @
d865bc59
...
@@ -436,11 +436,11 @@ argument is provided, that many colons are inserted non-electrically."
...
@@ -436,11 +436,11 @@ 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 to the lef
t
;;
Don't indent, only outdent. This assumes that any lines tha
t
;;
of the current computed indentation, under the assumption
;;
are already outdented relative to py-compute-indentation were
;;
that these are already outdented properly. Use TAB, C-c C-l
;;
put there on purpose. Its highly annoying to have `:' indent
;;
or C-c C-r to adjust. TBD: Is there a better way to
;;
for you. Use TAB, C-c C-l or C-c C-r to adjust. TBD: Is
;; determine this???
;;
there a better way to
determine this???
(
if
(
<
(
current-indentation
)
indent
)
nil
(
if
(
<
(
current-indentation
)
indent
)
nil
(
goto-char
here
)
(
goto-char
here
)
(
beginning-of-line
)
(
beginning-of-line
)
...
...
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