From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.devel Subject: dired-mark-pop-up leaves annoying buffers lying around Date: Thu, 10 Feb 2011 14:19:04 +0100 Message-ID: <87tygc58on.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297365775 15463 80.91.229.12 (10 Feb 2011 19:22:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Feb 2011 19:22:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 10 20:22:51 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pnc6D-0003uk-Tr for ged-emacs-devel@m.gmane.org; Thu, 10 Feb 2011 20:22:42 +0100 Original-Received: from localhost ([127.0.0.1]:60866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pnc6B-00012t-9Y for ged-emacs-devel@m.gmane.org; Thu, 10 Feb 2011 14:22:39 -0500 Original-Received: from [140.186.70.92] (port=58701 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnWQg-00067N-Nw for emacs-devel@gnu.org; Thu, 10 Feb 2011 08:19:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnWQY-0007wa-Lp for emacs-devel@gnu.org; Thu, 10 Feb 2011 08:19:20 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:59408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnWQY-0007vX-Ba for emacs-devel@gnu.org; Thu, 10 Feb 2011 08:19:18 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PnWQW-0004lL-DO for emacs-devel@gnu.org; Thu, 10 Feb 2011 14:19:16 +0100 Original-Received: from portable62.ceremade.dauphine.fr ([193.48.71.62]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Feb 2011 14:19:16 +0100 Original-Received: from antoine.levitt by portable62.ceremade.dauphine.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Feb 2011 14:19:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: portable62.ceremade.dauphine.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:LEayRhbCdqg8izWjyTsh+rOe2Ww= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135858 Archived-At: 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)))