From: lgfang <fanglungang@163.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: bug-gnu-emacs@gnu.org, lgfang <fanglungang@163.com>
Subject: Re: comment-kill can't deal with following situation
Date: Sun, 02 Mar 2008 21:49:01 +0800 [thread overview]
Message-ID: <86hcfps0c2.fsf@163.com> (raw)
In-Reply-To: <jwvfxv91zkq.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun\, 02 Mar 2008 00\:14\:14 -0500")
>>>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> comment-kill is defined in newcomment.el. It is supposed to
>> kill comments (refer to its document). But it can't deal with
>> the cases in which there are more than one comment in a line.
>> An example is:
Stefan> If you do not provide a prefix arg, comment-kill should
Stefan> only kill 1 comment. Indeed when providing a prefix arg,
The document says:
Kill the comment on this line, if any. With prefix ARG, kill
comments on that many lines starting with this one.
So, take following C code for example:
int j; /* comment 1 */ int k; /* comment 2*/
I think comment-kill should kill both comment 1 and comment 2 even
without prefix ARG. But in fact, it only kills the first one.
Stefan> But in the presence of multi-line comments, the behavior
Stefan> doesn't match the docstring either.
Even if all comments reside in one line and call comment-kill either
with/without prefix arg, the behavior is in-correct so long as there
are more than one comments.
Regards,
--
Fang, lungang
next prev parent reply other threads:[~2008-03-02 13:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <198A33EB1E9E344EBC566802C7761D6B4ACE3C@CNSHGSMBS04.ad4.ad.alcatel.com>
2008-02-29 11:02 ` comment-kill can't deal with following situation lgfang
2008-03-02 5:14 ` Stefan Monnier
2008-03-02 13:49 ` lgfang [this message]
2008-03-02 16:12 ` Andreas Röhler
2008-03-02 21:42 ` Stefan Monnier
2008-03-03 12:04 ` lgfang
2008-03-03 14:10 ` 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=86hcfps0c2.fsf@163.com \
--to=fanglungang@163.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).