Make imenu find defalias entries

* lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression):
Also find defalias (bug#7855).
This commit is contained in:
Lars Ingebrigtsen 2022-05-10 04:41:31 +02:00
parent 20b27d475f
commit 4c4eda4c31

View file

@ -119,6 +119,15 @@
t))
"\\s-+\\(" lisp-mode-symbol-regexp "\\)"))
2)
;; Like the previous, but uses a quoted symbol as the name.
(list nil
(purecopy (concat "^\\s-*("
(eval-when-compile
(regexp-opt
'("defalias" "define-obsolete-function-alias")
t))
"\\s-+'\\(" lisp-mode-symbol-regexp "\\)"))
2)
(list (purecopy "Variables")
(purecopy (concat "^\\s-*("
(eval-when-compile