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.

Full log


View this message in rfc822 format

From: Alan Mackenzie <acm <at> muc.de>
To: 41952 <at> debbugs.gnu.org
Subject: bug#41952: 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).




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.