From bcadb728e2f46263ca69a4702b70ff2c3bb62deb Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Mon, 24 Jul 2023 04:32:19 -0700 Subject: [PATCH] lisp-mode.el: Add defvar-keymap to lisp-imenu-generic-expression * lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Add defvar-keymap. We do not ignore (defvar-keymap FOO) constructs in imenu as we do with (defvar FOO) since the former constructs are generally not vacuous whereas the latter ones often are. (Bug#64831) --- lisp/emacs-lisp/lisp-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 1990630608d..4eee009f689 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -134,7 +134,7 @@ (purecopy (concat "^\\s-*(" (regexp-opt '(;; Elisp - "defconst" "defcustom" + "defconst" "defcustom" "defvar-keymap" ;; CL "defconstant" "defparameter" "define-symbol-macro") -- 2.39.5