GNU bug report logs - #41952
CC Mode and js-mode: Erroneous values for comment-start-skip

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Fri, 19 Jun 2020 19:41:01 UTC

Severity: normal

Done: Alan Mackenzie <acm <at> muc.de>

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 41952 in the body.
You can then email your comments to 41952 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#41952; Package emacs. (Fri, 19 Jun 2020 19:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alan Mackenzie <acm <at> muc.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 19 Jun 2020 19:41:02 GMT) Full text and rfc822 format available.

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

From: Alan Mackenzie <acm <at> muc.de>
To: bug-gnu-emacs <at> gnu.org
Subject: CC Mode and js-mode: Erroneous values for comment-start-skip
Date: Fri, 19 Jun 2020 19:40:11 +0000
Hello, Emacs.

In CC Mode modes, a typical value for comment-start-skip is:

    "\\(//+\\|/\\*+\\)\\s *"

.  This is erroneous, since it includes regexp grouping parentheses, yet
the comment being matched doesn't start at (match-end 1), contravening
the definition of comment-start-skip.

This mistake is likely to lead to errors in filling, etc.

The same bug is present in js-mode.

-- 
Alan Mackenzie (Nuremberg, Germany).




Reply sent to Alan Mackenzie <acm <at> muc.de>:
You have taken responsibility. (Sat, 04 Jul 2020 13:04:02 GMT) Full text and rfc822 format available.

Notification sent to Alan Mackenzie <acm <at> muc.de>:
bug acknowledged by developer. (Sat, 04 Jul 2020 13:04:02 GMT) Full text and rfc822 format available.

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

From: Alan Mackenzie <acm <at> muc.de>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 41952-done <at> debbugs.gnu.org
Subject: Re: bug#41952: CC Mode and js-mode: Erroneous values for
 comment-start-skip
Date: 4 Jul 2020 13:03:34 -0000
In article <mailman.128.1592595664.2574.bug-gnu-emacs <at> gnu.org> you wrote:
> Hello, Emacs.

> In CC Mode modes, a typical value for comment-start-skip is:

>     "\\(//+\\|/\\*+\\)\\s *"

> .  This is erroneous, since it includes regexp grouping parentheses, yet
> the comment being matched doesn't start at (match-end 1), contravening
> the definition of comment-start-skip.

> This mistake is likely to lead to errors in filling, etc.

> The same bug is present in js-mode.

Fixed in master.

-- 
Alan Mackenzie (Nuremberg, Germany).





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 02 Aug 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 323 days ago.

Previous Next


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