unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mathias Dahl <brakjoller@gmail.com>
Subject: Re: Delete comments in region
Date: Tue, 25 Apr 2006 11:05:54 +0200	[thread overview]
Message-ID: <u8xpuja8d.fsf@gmail.com> (raw)
In-Reply-To: mailman.750.1145666443.9609.help-gnu-emacs@gnu.org

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	other threads:[~2006-04-25  9:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.750.1145666443.9609.help-gnu-emacs@gnu.org>
2006-04-25  9:05 ` Mathias Dahl [this message]
2006-04-22  0:40 Delete comments in region Denis Bueno
2006-04-22  1:05 ` Nikos Apostolakis
2006-04-22  1:30   ` Denis Bueno
2006-04-22  2:53     ` Nikos Apostolakis
     [not found]   ` <mailman.755.1145669452.9609.help-gnu-emacs@gnu.org>
2006-04-22 20:30     ` liyer.vijay

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=u8xpuja8d.fsf@gmail.com \
    --to=brakjoller@gmail.com \
    /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.
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).