From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Kevin Ryde <user42@zip.com.au>
Cc: 15006@debbugs.gnu.org
Subject: bug#15006: 24.3; emacs manual comment-start-skip example grouping
Date: Thu, 01 Aug 2013 22:30:59 -0400 [thread overview]
Message-ID: <jwvk3k4esie.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <8738qsx3nb.fsf@blah.blah> (Kevin Ryde's message of "Fri, 02 Aug 2013 11:50:00 +1000")
> Actually I see the cc-mode code uses it with a group. And js.el too
> (perhaps copying cc-mode). Does it have some subtle effect of skipping
> the /*, or is it outright wrong?
It's wrong. But cc-mode likes to reinvent the wheel, so maybe
it doesn't use much of that code anyway.
>> Yes, I prefer to stay away from "whitepace syntax" for that reason and
>> would recommend [ \t]* in its stead.
> I suppose the intention is to pick up non-breaking spaces or whatever
> other flavours of whitespace. Unlikely to arise in practice in
> programming language stuff. Is there an obvious ill effect?
You can get things like (re-search-forward comment-start-skip) and end
up with (match-end 0) past the end of the matched comment (e.g. when
matching "//\n").
Stefan
next prev parent reply other threads:[~2013-08-02 2:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-02 0:48 bug#15006: 24.3; emacs manual comment-start-skip example grouping Kevin Ryde
2013-08-02 1:34 ` Stefan Monnier
2013-08-02 1:50 ` Kevin Ryde
2013-08-02 2:30 ` Stefan Monnier [this message]
2021-08-21 14:08 ` Lars Ingebrigtsen
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=jwvk3k4esie.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=15006@debbugs.gnu.org \
--cc=user42@zip.com.au \
/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.