1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-06 11:55:48 +00:00

Fix electric-buffer-list buffer selection

* lisp/ebuff-menu.el (electric-buffer-list): Ensure that point is
restored, which isn't always the case if
global-display-line-numbers-mode (bug#43755).  This enables
selecting buffers again.
This commit is contained in:
Lars Ingebrigtsen 2020-10-02 08:07:53 +02:00
parent 78eacf31e8
commit ef7bc1cc80

View File

@ -162,6 +162,7 @@ Run hooks in `electric-buffer-menu-mode-hook' on entry.
(message "")))
(when select
(set-buffer buffer)
(goto-char select)
(let ((opoint (point-marker)))
(Buffer-menu-execute)
(goto-char (point-min))