unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: can I batch select buffers in buffer menu mode?
Date: Wed, 20 Jul 2005 21:31:52 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICEEMKCKAA.drew.adams@oracle.com> (raw)
In-Reply-To: <42DBECF7.1020705@student.lu.se>

    >    Is there a way I can specify a pattern and mark all
    >    matching buffers for deletion? For instance, it'd be
    >    great if I could say "M-x mark-matching ~/src/2.2/*.cpp"
    >    to mark all buffers visiting files in that dir for
    >    removal.

    >For buffers (in *Buffer List*):
    >I don't think there is a command to mark buffers via regexp,
    >but you could write one!

    Does not ibuffer has support for this? The help text says:

        % n - mark buffers by their name, using a regexp

The original question was about marking buffers in *Buffer List* for
deletion. I'd say that should be pretty easy to code, by looking at 1) the
code in buff-menu.el and 2) the code for the similar Dired function,
`dired-mark-files-regexp' (in dired.el). Do something similar to
`dired-mark-files-regexp', and integrate it within `Buffer-menu-mode'. HTH,
Drew

  reply	other threads:[~2005-07-21  4:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-18 17:07 can I batch select buffers in buffer menu mode? usman
2005-07-18 17:19 ` Drew Adams
2005-07-18 17:55   ` Lennart Borgman
2005-07-21  4:31     ` Drew Adams [this message]
     [not found]   ` <mailman.909.1121709536.20277.help-gnu-emacs@gnu.org>
2005-07-21  4:15     ` Dan Elliott
     [not found] <mailman.1152.1121921604.20277.help-gnu-emacs@gnu.org>
2005-07-21 17:11 ` Thien-Thi Nguyen

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=DNEMKBNJBGPAOPIJOOICEEMKCKAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.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).