bug#9761: proposed list-buffers change -- revert buffer if point is in *
From:
Zachary Kanfer
Subject:
bug#9761: proposed list-buffers change -- revert buffer if point is in *Buffer List* buffer
Date:
Sat, 15 Oct 2011 00:22:43 -0400
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
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