unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Remove all directory listings buffers
Date: Fri, 27 Nov 2009 08:37:59 +1100	[thread overview]
Message-ID: <878wdtx8zs.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: 87r5rm950a.fsf@galatea.local

pjb@informatimago.com (Pascal J. Bourguignon) writes:

> rotlas <katofa@gmail.com> writes:
>
>> I often end up with lots of directory buffers (those buffers with "dired by
>> name" mode), after navigating in the filesystem in order to open files. Is
>> there an easy way to get rid of all those buffers at once, and leaving the
>> other?
>
> You could write a little emacs command to do that, but it should also
> be easy enough to use:
>
> C-x C-b   (or M-x list-buffers RET)
>
> In the buffer list, you can mark buffers for killing with d (and move
> down and up with n and p).  When you're done, type x to execute the
> orders.

Emacs 23 also introduced the new command 'kill-matching-buffers', which
may be of help. Personally, I use Pascal's method. I also tend not to
worry about lots of buffers hanging around - they are not consuming much
resources and I don't really see them unless I need/want to. Personally,
I think its good practice to get used to lots of buffers hanging around
- I often have more than 100 open buffers. There are things you can
configure if you don't want them all showing up in buffer listings etc,
depending on whther you use one of the many packages to assist with
buffer switching/management or not. 

I also seem to remember some config setting for dired that wold make it
re-use buffers, but maybe I imagined that! Possibly worth a look in the
dired and dired-aux config stuff

HTH

Tim



-- 
tcross (at) rapttech dot com dot au


  parent reply	other threads:[~2009-11-26 21:37 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.11453.1259150170.2239.help-gnu-emacs@gnu.org>
2009-11-25 12:13 ` Remove all directory listings buffers Pascal J. Bourguignon
2009-11-25 13:09   ` Thierry Volpiatto
2009-11-25 13:20   ` aartist
2009-11-25 14:13     ` Andreas Politz
     [not found]     ` <mailman.11468.1259158466.2239.help-gnu-emacs@gnu.org>
2009-12-01 18:14       ` Dmitry Dzhus
2009-12-04 21:25       ` B. T. Raven
2009-12-05  7:37         ` Andreas Politz
2009-11-26 21:37   ` Tim X [this message]
2009-11-25 14:16 ` harven
2009-11-25 14:23 ` Colin S. Miller
2009-11-26  1:13   ` David Hodge
2009-11-25 11:55 rotlas
2009-11-28 18:40 ` andrea
2009-11-28 19:46   ` Drew Adams
2009-11-28 22:43     ` Andreas Politz
2009-11-29  2:41       ` Drew Adams
2009-11-29  2:55         ` Drew Adams
2009-12-02  8:23         ` Andreas Politz
     [not found] ` <mailman.11729.1259433914.2239.help-gnu-emacs@gnu.org>
2009-11-29 16:17   ` Colin S. Miller

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=878wdtx8zs.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@gnu.org \
    /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).