From: Drew Adams <drew.adams@oracle.com>
To: 15573@debbugs.gnu.org
Subject: bug#15573: 24.3.50; `comment-end' in c mode
Date: Sat, 28 Dec 2013 09:09:34 -0800 (PST) [thread overview]
Message-ID: <7950c6f6-6f50-4539-a97f-9db52fb3c70a@default> (raw)
In-Reply-To: <jwvwqiruh77.fsf-monnier+emacsbugs@gnu.org>
> > There seems to be no good regexp variable to use, to search for the
> > end of a comment (e.g. in C mode, but therefore generally).
>
> There can't be. The syntax of the end of a comment depends on the
> comment-starter that was used. So don't look for a regexp. Look for
> a function instead, e.g. comment-forward.
Actually, that's what I have been using, `comment-search-forward' and
`comment-forward'.
> C also accepts //...\n
Right. Forgot about that.
I still don't see why `comment-end' should not match "*/" without
a SPC preceding it.
next prev parent reply other threads:[~2013-12-28 17:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-09 15:55 bug#15573: 24.3.50; `comment-end' in c mode Drew Adams
2013-10-09 18:17 ` Stefan Monnier
[not found] ` <52565D50.5070706@easy-emacs.de>
[not found] ` <e6ecb48c-3d29-44b7-bfd2-49be3ee6aeaa@default>
[not found] ` <jwvwqiruh77.fsf-monnier+emacsbugs@gnu.org>
2013-12-28 17:09 ` Drew Adams [this message]
[not found] ` <b63dc9a7-7c49-4cd4-b256-8be93a5a6dea@default>
2014-01-02 2:45 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7950c6f6-6f50-4539-a97f-9db52fb3c70a@default \
--to=drew.adams@oracle.com \
--cc=15573@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).