GNU bug report logs -
#10033
24.0.91; Uncommenting fails in Autoconf mode
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10033 in the body.
You can then email your comments to 10033 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10033
; Package
emacs
.
(Sun, 13 Nov 2011 02:23:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Chong Yidong <cyd <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 13 Nov 2011 02:23:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
With latest trunk:
emacs -Q configure.ac
M-;
asdf
C-SPC M-<
M-x uncomment-region RET
The uncomment-region does nothing; the line containing "dnl asdf"
remains commented out.
This is a regression; in Emacs 23.3, uncomment-region works as expected.
However, using the version of autoconf.el from Emacs 23 in Emacs 24
still shows the problem.
In GNU Emacs 24.0.91.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.2.0)
of 2011-11-13 on furball
Windowing system distributor `The X.Org Foundation', version 11.0.11004000
configured using `configure '--with-x-toolkit=gtk3' 'CFLAGS=-g''
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10033
; Package
emacs
.
(Sun, 13 Nov 2011 02:41:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 10033 <at> debbugs.gnu.org (full text, mbox):
Chong Yidong <cyd <at> gnu.org> writes:
> With latest trunk:
>
> emacs -Q configure.ac
> M-;
> asdf
> C-SPC M-<
> M-x uncomment-region RET
>
> The uncomment-region does nothing; the line containing "dnl asdf"
> remains commented out.
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. In
Emacs 23, the \< matches the beginning of the line
dnl asdf
in Autoconf mode. But in Emacs 24, it does not match the beginning of
that line at all. I don't see any related regexp changes in NEWS. Does
it ring a bell for anyone?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10033
; Package
emacs
.
(Sun, 13 Nov 2011 08:41:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 10033 <at> debbugs.gnu.org (full text, mbox):
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.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10033
; Package
emacs
.
(Tue, 15 Nov 2011 05:30:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 10033 <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10033
; Package
emacs
.
(Tue, 15 Nov 2011 08:24:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 10033 <at> debbugs.gnu.org (full text, mbox):
Chong Yidong <cyd <at> gnu.org> writes:
> 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.
That's before dnl turns into a comment.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
bug closed, send any further explanations to
10033 <at> debbugs.gnu.org and Chong Yidong <cyd <at> gnu.org>
Request was from
Chong Yidong <cyd <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 16 Nov 2011 03:17:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 14 Dec 2011 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 353 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.