GNU bug report logs - #15822
24.3; autoconf mode uncomments every other line

Previous Next

Package: emacs;

Reported by: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>

Date: Wed, 6 Nov 2013 17:36:03 UTC

Severity: normal

Tags: confirmed

Found in version 24.3

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #12 received at 15822-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 15822-done <at> debbugs.gnu.org
Subject: Re: bug#15822: 24.3; autoconf mode uncomments every other line
Date: Fri, 08 Nov 2013 02:37:17 -0500
Version: 24.4

Thanks for the report. Hopefully this fixes it:

*** lisp/progmodes/autoconf.el	2013-05-08 16:27:53 +0000
--- lisp/progmodes/autoconf.el	2013-11-08 07:34:02 +0000
***************
*** 79,85 ****
    (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\\|#\\) +")
    (setq-local syntax-propertize-function
  	      (syntax-propertize-rules ("\\<dnl\\>" (0 "<"))))
    (setq-local font-lock-defaults
--- 79,86 ----
    (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 ")
!   ;; 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





This bug report was last modified 11 years and 280 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.