GNU bug report logs - #10033
24.0.91; Uncommenting fails in Autoconf mode

Previous Next

Package: emacs;

Reported by: Chong Yidong <cyd <at> gnu.org>

Date: Sun, 13 Nov 2011 02:23:02 UTC

Severity: normal

Found in version 24.0.91

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 10033 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 10033 <at> debbugs.gnu.org
Subject: Re: bug#10033: 24.0.91; Uncommenting fails in Autoconf mode
Date: Tue, 15 Nov 2011 13:29:08 +0800
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> Chong Yidong <cyd <at> gnu.org> writes:
>
>> This is because the value of comment-start-skip in Autoconf mode is
>>
>>    "\\(?:\\<dnl\\|#\\) +"
>>
>> The \< is intended to avoid matching a "dnl" that is part of a word.
>
> dnl isn't a word, it is a comment, so \< cannot match it.

Yet syntax-propertize-function for Autoconf uses

  (set (make-local-variable 'syntax-propertize-function)
       (syntax-propertize-rules ("\\<dnl\\>" (0 "<"))))

which does work for matching only occurrences of `dnl' as separate
tokens.




This bug report was last modified 13 years and 188 days ago.

Previous Next


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