summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1996-08-01 15:57:48 (GMT)
committerBarry Warsaw <barry@python.org>1996-08-01 15:57:48 (GMT)
commit6e527d2ca3450e54bcc4f08c06705dfe258f37e1 (patch)
treec74f633a3740b0854d3e93cf884e0402bbc7452e
parenta7891718e1293dc9afa1dacb77a59f1895611f75 (diff)
downloadcpython-6e527d2ca3450e54bcc4f08c06705dfe258f37e1.zip
cpython-6e527d2ca3450e54bcc4f08c06705dfe258f37e1.tar.gz
cpython-6e527d2ca3450e54bcc4f08c06705dfe258f37e1.tar.bz2
(py-delete-char): Check for py-honor-comment-indentation.
-rw-r--r--Misc/python-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index cf5f4d6..2811295 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -742,6 +742,7 @@ argument delets that many characters."
(if (or (/= (current-indentation) (current-column))
(bolp)
(py-continuation-line-p)
+ (not py-honor-comment-indentation)
(looking-at "#[^ \t\n]")) ; non-indenting #
(backward-delete-char-untabify count)
;; else indent the same as the colon line that opened the block