[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dired-mark-pop-up leaves annoying buffers lying around
From: |
Chong Yidong |
Subject: |
Re: dired-mark-pop-up leaves annoying buffers lying around |
Date: |
Sat, 19 Feb 2011 13:53:37 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Antoine Levitt <address@hidden> writes:
> Any reason not to do the following?
>
> === modified file 'lisp/dired.el'
> --- lisp/dired.el 2011-02-02 16:21:52 +0000
> +++ lisp/dired.el 2011-02-10 13:14:32 +0000
> @@ -2840,7 +2840,8 @@
> '(mouse-face nil help-echo nil)))
> (save-window-excursion
> (dired-pop-to-buffer bufname)
> - (apply function args))))
> + (apply function args)
> + (kill-buffer bufname))))
>
> (defun dired-format-columns-of-files (files)
> (let ((beg (point)))
Most callers of dired-mark-pop-up use the default " *Marked Files*"
buffer (and AFAICT the others use a fixed name instead of creating
unique buffers). The buffer name has a space in front of its name, so
it doesn't show up in the buffer list. Any reason why it needs to be
killed?