]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/tab-bar.el ([tab-bar]): Use 'make-sparse-keymap' instead of 'ignore'.
authorJuri Linkov <juri@linkov.net>
Thu, 15 Dec 2022 19:10:28 +0000 (21:10 +0200)
committerJuri Linkov <juri@linkov.net>
Thu, 15 Dec 2022 19:10:28 +0000 (21:10 +0200)
This helps to avoid the error in 'where-is-internal' that should
not call :filter unnecessarily (bug#9923).

lisp/tab-bar.el

index 1baa857e9e9c52b30effaa94b79c288b490ad742..f040bc9786d14d17acaaf1d7233267d2d0a04173 100644 (file)
@@ -416,7 +416,7 @@ at the mouse-down event to the position at mouse-up event."
   "S-<wheel-right>" #'tab-bar-move-tab)
 
 (global-set-key [tab-bar]
-                `(menu-item ,(purecopy "tab bar") ignore
+                `(menu-item ,(purecopy "tab bar") ,(make-sparse-keymap)
                             :filter tab-bar-make-keymap))
 
 (defun tab-bar-make-keymap (&optional _ignore)