all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: emacs18@gmail.com
To: 12387@debbugs.gnu.org
Subject: bug#12387: 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	[thread overview]
Message-ID: <qtmehmcfr97.fsf@gmail.com> (raw)

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@gmx.at-20120908132811-ycvntpb4znz8wyya
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
Configured using:
 `configure '--prefix' '/u/kimr/usr''





             reply	other threads:[~2012-09-08 15:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-08 15:50 emacs18 [this message]
2012-09-13  7:52 ` bug#12387: 24.2.50; File column printed by list-buffers is bad if done in dired-mode Glenn Morris
2012-09-13  9:37   ` martin rudalics
2012-09-13 17:07     ` Eli Zaretskii
2012-09-14  9:00       ` martin rudalics
2012-09-14 17:08         ` Glenn Morris

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=qtmehmcfr97.fsf@gmail.com \
    --to=emacs18@gmail.com \
    --cc=12387@debbugs.gnu.org \
    /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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.