Subject: bug#41952: closed (Re: bug#41952: CC Mode and js-mode: Erroneous values for comment-start-skip)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 04 Jul 2020 13:04:02 +0000

Your bug report

#41952: CC Mode and js-mode: Erroneous values for comment-start-skip

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
41952: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=41952
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#41952: CC Mode and js-mode: Erroneous values for comment-start-skip
From: Alan Mackenzie <[email-masked]>
To: Alan Mackenzie <[email-masked]>
Cc: [email-masked]
Date: 4 Jul 2020 13:03:34 -0000
List-Id: <debbugs-submit.debbugs.gnu.org>

In article <[email-masked]> 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).

Subject: CC Mode and js-mode: Erroneous values for comment-start-skip
From: Alan Mackenzie <[email-masked]>
To: [email-masked]
Date: Fri, 19 Jun 2020 19:40:11 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

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).