aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2008-04-12 05:40:15 +0000
committerStefan Monnier <[email protected]>2008-04-12 05:40:15 +0000
commit5e01f1ca4989b9466927f48a8a5fdca031fa08dc (patch)
treeeca6b31b50d349396b37ec035aef29a8a7846a01
parent2900c113b4d9c9d288e366441a7562647745b86d (diff)
(makefile-fill-paragraph): Treat indented comments like unindented ones.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/make-mode.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 292561e6bb..0ff3b4178c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-12 Kevin Ryde <[email protected]>
+
+ * progmodes/make-mode.el (makefile-fill-paragraph): Treat indented
+ comments like unindented ones.
+
2008-04-12 YAMAMOTO Mitsuharu <[email protected]>
* term/mac-win.el (mac-ae-open-documents): Adjust selection range
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el
index 450532a724..8ebe8f142d 100644
--- a/lisp/progmodes/make-mode.el
+++ b/lisp/progmodes/make-mode.el
@@ -1304,7 +1304,7 @@ definition and conveniently use this command."
(save-excursion
(beginning-of-line)
(cond
- ((looking-at "^#+\\s-*")
+ ((looking-at "^[ \t]*#+\\s-*")
;; Found a comment. Return nil to let normal filling take place.
nil)