help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delete comments in region


From: Mathias Dahl
Subject: Re: Delete comments in region
Date: Tue, 25 Apr 2006 11:05:54 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

Denis Bueno <dbueno@gmail.com> writes:

> I have a need, so I thought I'd query the list before writing something.
>
> Does anyone have any elisp lying around that will, in any coding mode,
> remove all the comments from the region?
>
> I'd like to get away with not deleting the comments in the buffer manually.

If the comments are always "prefix comments", as in Lisp (the example
below), you can try:

M-x flush-lines RET ^;; RET


reply via email to

[Prev in Thread] Current Thread [Next in Thread]