]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix electric-buffer-list buffer selection
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 2 Oct 2020 06:07:53 +0000 (08:07 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 2 Oct 2020 14:17:39 +0000 (16:17 +0200)
* 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.

lisp/ebuff-menu.el

index 7285021676c12680c0236a123f9552b4d9d68172..079fce88defd93aa19b42b4d7df53f747a32b1cd 100644 (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))