aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2020-10-02 08:07:53 +0200
committerLars Ingebrigtsen2020-10-02 16:17:39 +0200
commitef7bc1cc80e727aca10957f4101eefa04e47c84c (patch)
tree1679dcdd62f8a8808671e8167c1417e6a694715d
parent78eacf31e8fe182801ad1943fac717b75fcf286b (diff)
downloademacs-ef7bc1cc80e727aca10957f4101eefa04e47c84c.tar.gz
emacs-ef7bc1cc80e727aca10957f4101eefa04e47c84c.zip
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.
-rw-r--r--lisp/ebuff-menu.el1
1 files changed, 1 insertions, 0 deletions
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.
162 (message ""))) 162 (message "")))
163 (when select 163 (when select
164 (set-buffer buffer) 164 (set-buffer buffer)
165 (goto-char select)
165 (let ((opoint (point-marker))) 166 (let ((opoint (point-marker)))
166 (Buffer-menu-execute) 167 (Buffer-menu-execute)
167 (goto-char (point-min)) 168 (goto-char (point-min))