diff options
author | Glenn Morris <rgm@gnu.org> | 2013-11-07 23:36:54 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2013-11-07 23:36:54 -0800 |
commit | b0f4c320e550a921a9804c64423178039034fe3f (patch) | |
tree | 2249fa3c2629afa1ab5feda439be340651325752 /lisp/progmodes/autoconf.el | |
parent | 7f1913b2da83e8350717f17beb2cebd73e1e2561 (diff) | |
download | emacs-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.el | 3 |
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 |