From: Alan Mackenzie <acm@muc.de>
To: 41952@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 [thread overview]
Message-ID: <20200619194011.GA2655@ACM> (raw)
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).
next reply other threads:[~2020-06-19 19:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-19 19:40 Alan Mackenzie [this message]
[not found] ` <mailman.128.1592595664.2574.bug-gnu-emacs@gnu.org>
2020-07-04 13:03 ` bug#41952: CC Mode and js-mode: Erroneous values for comment-start-skip Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200619194011.GA2655@ACM \
--to=acm@muc.de \
--cc=41952@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.