GNU bug report logs - #12387
24.2.50; File column printed by list-buffers is bad if done in dired-mode

Previous Next

Package: emacs;

Reported by: emacs18 <at> gmail.com

Date: Sat, 8 Sep 2012 15:52:02 UTC

Severity: normal

Merged with 12662

Found in version 24.2.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Glenn Morris <rgm <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#12387: closed (24.2.50; File column printed by list-buffers
 is bad if done in dired-mode)
Date: Fri, 14 Sep 2012 17:10:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 14 Sep 2012 13:08:12 -0400
with message-id <atwqzwlegz.fsf <at> fencepost.gnu.org>
and subject line Re: bug#12387: 24.2.50; File column printed by list-buffers is bad if done in dired-mode
has caused the debbugs.gnu.org bug report #12387,
regarding 24.2.50; File column printed by list-buffers is bad if done in dired-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
12387: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12387
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: emacs18 <at> gmail.com
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.50;
	File column printed by list-buffers is bad if done in dired-mode
Date: Sat, 08 Sep 2012 08:50:28 -0700
Start emacs (latest bzr version as of Sep 6, 2012) with -q option.
Type `C-x C-B'.  The content of *Buffer *List should be as expected, e.g.,

    .%  *GNU Emacs*             809 Fundamental      
        *scratch*               191 Lisp Interaction 
      * *Messages*               66 Fundamental      

Now bring up any buffer in dired mode, e.g., C-x C-f followed by "/etc" and
RETURN.  While current buffer is within a dired-mode, hit `C-x C-B' again.  The
last column (the File column) incorrectly shows that the values are all "/etc/":


    .%  etc                   18180 Dired by name    /etc/
     %  *GNU Emacs*             809 Fundamental      /etc/
        *scratch*               191 Lisp Interaction /etc/
      * *Messages*               85 Fundamental      /etc/

Now switch to *Buffer List* buffer, then hit 'g' to refresh the content.
Now it shows

     %  etc                   18180 Dired by name    
     %  *GNU Emacs*             809 Fundamental      
        *scratch*               191 Lisp Interaction 
      * *Messages*               85 Fundamental      

Following is a work-around that I cooked up for my own use till this bug is fixed.
This also should clarify what the problem is.

(defadvice list-buffers 
  (after unset-buffer-file-name-in-dired-mode activate compile)
  "This works around a bug in emacs-trunk introduced around Aug 2012 where
list-buffers shows invalid entries in the File column displayed when the
list-buffers is executed within dired buffer.  The work around is to refresh
the content of the *Buffer List* buffer after making sure that current buffer
is not a buffer in dired-mode."
  (when (eq major-mode 'dired-mode)
    (save-excursion
      (other-window 1)
      (revert-buffer))))


In GNU Emacs 24.2.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10)
 of 2012-09-08 on kimr-laptop
Bzr revision: 109937 rudalics <at> gmx.at-20120908132811-ycvntpb4znz8wyya
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
Configured using:
 `configure '--prefix' '/u/kimr/usr''


[Message part 3 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 12387-done <at> debbugs.gnu.org
Subject: Re: bug#12387: 24.2.50;
	File column printed by list-buffers is bad if done in dired-mode
Date: Fri, 14 Sep 2012 13:08:12 -0400
martin rudalics wrote:

> Installed.

Thanks, works for me.


This bug report was last modified 12 years and 276 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.