From 0dc195b4fe6a187df0763998062ecfaed7e3b61c Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 31 May 2021 07:25:25 +0200 Subject: [PATCH] Revert "Move menu-bar-select-buffer to msb.el" This reverts commit 253e52478c355dc29052c0d21013b8d06b473880. This is to be fixed in a different way in the next patch. --- lisp/menu-bar.el | 4 ++++ lisp/msb.el | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 945152c05da..b71c6502077 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -2240,6 +2240,10 @@ Buffers menu is regenerated." (defvar-local list-buffers-directory nil "String to display in buffer listings for buffers not visiting a file.") +(defun menu-bar-select-buffer () + (interactive) + (switch-to-buffer last-command-event)) + (defun menu-bar-select-frame (frame) (make-frame-visible frame) (raise-frame frame) diff --git a/lisp/msb.el b/lisp/msb.el index 47221d24d49..1064f940905 100644 --- a/lisp/msb.el +++ b/lisp/msb.el @@ -1052,10 +1052,6 @@ variable `msb-menu-cond'." (msb--split-menus-2 list 0 nil) list)) -(defun menu-bar-select-buffer () - (interactive) - (switch-to-buffer last-command-event)) - (defun msb--make-keymap-menu (raw-menu) (let ((end 'menu-bar-select-buffer) (mcount 0)) -- 2.39.2