From: Lars Ingebrigtsen Date: Fri, 2 Oct 2020 06:07:53 +0000 (+0200) Subject: Fix electric-buffer-list buffer selection X-Git-Tag: emacs-27.1.90~118 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ef7bc1cc80e727aca10957f4101eefa04e47c84c;p=emacs.git 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. --- diff --git a/lisp/ebuff-menu.el b/lisp/ebuff-menu.el index 7285021676c..079fce88def 100644 --- a/lisp/ebuff-menu.el +++ b/lisp/ebuff-menu.el @@ -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))