diff options
author | Barry Warsaw <barry@python.org> | 1999-05-24 21:43:37 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1999-05-24 21:43:37 (GMT) |
commit | fa2def2a6103196bbcba0019e15805a0f6bc755b (patch) | |
tree | 1fa787f868429161e64e6b01e511896ef2a2cde8 | |
parent | 53db859408bc40defe77b162a52d851785fac97e (diff) | |
download | cpython-fa2def2a6103196bbcba0019e15805a0f6bc755b.zip cpython-fa2def2a6103196bbcba0019e15805a0f6bc755b.tar.gz cpython-fa2def2a6103196bbcba0019e15805a0f6bc755b.tar.bz2 |
(py-electric-backspace): I'm not sure this function should be special
casing when py-honor-comment-indentation is nil, but this could be a
religious issue with some. Seems to me we should still be dedenting
such comment lines one level.
-rw-r--r-- | Misc/python-mode.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el index a62e173..924c2c7 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -1524,8 +1524,8 @@ zero). Otherwise the preceding character is deleted, converting a tab to spaces if needed so that only a single column position is deleted. -\\[universal-argument] specifies how many characters to delete -(default is 1). +\\[universal-argument] specifies how many characters to delete; +default is 1. When used programmatically, argument ARG specifies the number of blocks to dedent, or the number of characters to delete, as indicated @@ -1534,8 +1534,9 @@ above." (if (or (/= (current-indentation) (current-column)) (bolp) (py-continuation-line-p) - (not py-honor-comment-indentation) - (looking-at "#[^ \t\n]")) ; non-indenting # +; (not py-honor-comment-indentation) +; (looking-at "#[^ \t\n]") ; non-indenting # + ) (funcall py-backspace-function arg) ;; else indent the same as the colon line that opened the block ;; force non-blank so py-goto-block-up doesn't ignore it |