unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* dired-mark-pop-up leaves annoying buffers lying around
@ 2011-02-10 13:19 Antoine Levitt
  2011-02-19 18:53 ` Chong Yidong
  0 siblings, 1 reply; 3+ messages in thread
From: Antoine Levitt @ 2011-02-10 13:19 UTC (permalink / raw)
  To: emacs-devel

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)))




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dired-mark-pop-up leaves annoying buffers lying around
  2011-02-10 13:19 dired-mark-pop-up leaves annoying buffers lying around Antoine Levitt
@ 2011-02-19 18:53 ` Chong Yidong
  2011-02-19 20:38   ` Antoine Levitt
  0 siblings, 1 reply; 3+ messages in thread
From: Chong Yidong @ 2011-02-19 18:53 UTC (permalink / raw)
  To: Antoine Levitt; +Cc: emacs-devel

Antoine Levitt <antoine.levitt@gmail.com> 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?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dired-mark-pop-up leaves annoying buffers lying around
  2011-02-19 18:53 ` Chong Yidong
@ 2011-02-19 20:38   ` Antoine Levitt
  0 siblings, 0 replies; 3+ messages in thread
From: Antoine Levitt @ 2011-02-19 20:38 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

19/02/11 19:53, Chong Yidong
> 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?

Ah, true. I missed the fact that buffers with spaces in front were not
displayed in the buffer list. I use custom code to quickly switch
between recent buffers, so that s-tab is the most recent buffer, C-tab
the second most recent buffer, and C-s-tab the third most recent
buffer. I did not know about that convention, so I ended up seeing a lot
of these deletion buffers. But it's really my fault, not dired's, and
marking buffers that shouldn't be switched to is really better than
deleting them. Sorry about that.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-19 20:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-10 13:19 dired-mark-pop-up leaves annoying buffers lying around Antoine Levitt
2011-02-19 18:53 ` Chong Yidong
2011-02-19 20:38   ` Antoine Levitt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).