From b0f4c320e550a921a9804c64423178039034fe3f Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 7 Nov 2013 23:36:54 -0800 Subject: [PATCH] * lisp/progmodes/autoconf.el (autoconf-mode): Tweak comment-start-skip. See also http://debbugs.gnu.org/10033 Fixes: debbugs:15822 --- lisp/ChangeLog | 5 +++++ lisp/progmodes/autoconf.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6b941c67fce..a3c895c6942 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-11-08 Glenn Morris + + * progmodes/autoconf.el (autoconf-mode): + Tweak comment-start-skip. (Bug#15822) + 2013-11-08 Stefan Monnier * progmodes/sh-script.el (sh-smie--sh-keyword-in-p): Don't inf-loop 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 ("\\" (0 "<")))) (setq-local font-lock-defaults -- 2.39.2