[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: can I batch select buffers in buffer menu mode?
From: |
Drew Adams |
Subject: |
RE: can I batch select buffers in buffer menu mode? |
Date: |
Wed, 20 Jul 2005 21:31:52 -0700 |
> 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