[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: comment-kill can't deal with following situation
From: |
Stefan Monnier |
Subject: |
Re: comment-kill can't deal with following situation |
Date: |
Mon, 03 Mar 2008 09:10:16 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Stefan> Here I disagree. I find it more useful to only kill one
Stefan> comment at a time (you can always choose to run the
Stefan> command 2 times, but you cannot run it 1/2 a time). Also
> I agree with you. I didn't think of that. So, it is not a bug. I
> just misunderstood the document.
Glad we agree. I'll improve the docstring to remove this ambiguity.
> In case you are interested, I'm NOT calling comment-kill
> interactively. I wrote a elisp script to count NCSL. The basic idea
> is to delete all comment lines using comment-kill and delete all blank
> lines using flush-lines. Then, the number of lines is just the number
> of NCSL.
I see. I guess what we be better is to change `comment-kill' (when
called with an argument) such that it kills all the comments on the
N following lines. Better yet: let it take a region as argument.
Stefan