diff Misc/python-mode.el @ 10877:2669ac7cd76a legacy-trunk

(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.
author Barry Warsaw <barry@python.org>
date Mon, 24 May 1999 21:43:37 +0000
parents 17ae178a3038
children a8a1eb99341c
line wrap: on
line diff
--- a/Misc/python-mode.el	Mon May 24 19:57:32 1999 +0000
+++ b/Misc/python-mode.el	Mon May 24 21:43:37 1999 +0000
@@ -1524,8 +1524,8 @@
 
 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 @@
   (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