summaryrefslogtreecommitdiff
path: root/lisp/progmodes/autoconf.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-11-07 23:36:54 -0800
committerGlenn Morris <rgm@gnu.org>2013-11-07 23:36:54 -0800
commitb0f4c320e550a921a9804c64423178039034fe3f (patch)
tree2249fa3c2629afa1ab5feda439be340651325752 /lisp/progmodes/autoconf.el
parent7f1913b2da83e8350717f17beb2cebd73e1e2561 (diff)
downloademacs-b0f4c320e550a921a9804c64423178039034fe3f.tar.gz
* lisp/progmodes/autoconf.el (autoconf-mode): Tweak comment-start-skip.
See also http://debbugs.gnu.org/10033 Fixes: debbugs:15822
Diffstat (limited to 'lisp/progmodes/autoconf.el')
-rw-r--r--lisp/progmodes/autoconf.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/autoconf.el b/lisp/progmodes/autoconf.el
index e6eaea985af..293ae6856e9 100644
--- a/lisp/progmodes/autoconf.el
+++ b/lisp/progmodes/autoconf.el
@@ -79,7 +79,8 @@ searching backwards at another AC_... command."
(setq-local parens-require-spaces nil) ; for M4 arg lists
(setq-local defun-prompt-regexp "^[ \t]*A[CM]_\\(\\sw\\|\\s_\\)+")
(setq-local comment-start "dnl ")
- (setq-local comment-start-skip "\\(?:\\(\\W\\|\\`\\)dnl\\|#\\) +")
+ ;; We want to avoid matching "dnl" in other text.
+ (setq-local comment-start-skip "\\(?:\\(\\W\\|^\\)dnl\\|#\\) +")
(setq-local syntax-propertize-function
(syntax-propertize-rules ("\\<dnl\\>" (0 "<"))))
(setq-local font-lock-defaults