From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: [Q] Several emacs instances / dired and "derived" buffers
Date: Mon, 21 Jun 2004 09:13:34 -0600 [thread overview]
Message-ID: <40D6FB1E.5040705@yahoo.com> (raw)
In-Reply-To: wkfz8t9sgo.fsf@smsoft.ixy.de
Michael Schierl wrote:
> Kevin Rodgers <ihs_4664@yahoo.com> writes:
>> (mapc (lambda (buf)
>> (let ((file (buffer-file-name buf)))
>> (when (and file
>>
(equal (file-name-directory file) dir))
>> (kill-buffer buf))))
>> (buffer-list))
>
> That one only closes all files *in* a directory and not *below* a
> directory. If you specify to close all files below "/foo/bar", a file
> like "/foo/bar/src/package/subpackage/blah/Classname.java" will
> not be closed as well.
Change (equal (file-name-directory file) dir) to
(string-match (concat "^" (regexp-quote (file-name-directory))) dir)
--
Kevin Rodgers
next prev parent reply other threads:[~2004-06-21 15:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.7759.1085670886.1061.help-gnu-emacs@gnu.org>
2004-05-27 16:15 ` [Q] Several emacs instances / dired and "derived" buffers Barry Margolin
[not found] ` <wkaczo1rjv.fsf@smsoft.ixy.de>
[not found] ` <40BD062A.7070205@yahoo.com>
2004-06-18 8:32 ` Michael Schierl
2004-06-21 15:13 ` Kevin Rodgers [this message]
2004-05-27 10:22 Ames Andreas (MPA/DF)
2004-05-29 12:11 ` Kai Grossjohann
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=40D6FB1E.5040705@yahoo.com \
--to=ihs_4664@yahoo.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).