From 6e527d2ca3450e54bcc4f08c06705dfe258f37e1 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 1 Aug 1996 15:57:48 +0000 Subject: [PATCH] (py-delete-char): Check for py-honor-comment-indentation. --- Misc/python-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/Misc/python-mode.el b/Misc/python-mode.el index cf5f4d668f..2811295667 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 -- 2.50.1