GNU bug report logs - #9761
proposed list-buffers change -- revert buffer if point is in *Buffer List* buffer

Previous Next

Package: emacs;

Reported by: Zachary Kanfer <zkanfer <at> gmail.com>

Date: Sat, 15 Oct 2011 04:24:02 UTC

Severity: wishlist

Tags: patch, wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Zachary Kanfer <zkanfer <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: proposed list-buffers change -- revert buffer if point is in *Buffer
	List* buffer
Date: Sat, 15 Oct 2011 00:22:43 -0400
[Message part 1 (text/plain, inline)]
The command list-buffers always puts point at the end of the buffer. This
patch changes the list-buffers command to simply revert the buffer if point
is inside the *Buffer List* buffer. Since point is kept at the same line,
the user can more easily see what changes have occurred.
 -Zachary Kanfer


=== modified file 'lisp/buff-menu.el'
*** lisp/buff-menu.el    2011-09-18 20:43:20 +0000
--- lisp/buff-menu.el    2011-10-15 03:59:12 +0000
*************** Non-null optional arg FILES-ONLY means m
*** 652,658 ****

  For more information, see the function `buffer-menu'."
    (interactive "P")
!   (display-buffer (list-buffers-noselect files-only)))

  (defconst Buffer-menu-short-ellipsis
    ;; This file is preloaded, so we can't use char-displayable-p here
--- 652,661 ----

  For more information, see the function `buffer-menu'."
    (interactive "P")
!   (if (string= (buffer-name)
!                "*Buffer List*")
!       (revert-buffer)
!     (display-buffer (list-buffers-noselect files-only))))

  (defconst Buffer-menu-short-ellipsis
    ;; This file is preloaded, so we can't use char-displayable-p here
[Message part 2 (text/html, inline)]

This bug report was last modified 9 years and 92 days ago.

Previous Next


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