Lisp: Remove brittle optimization in ambrevar/enhance-imenu-lisp.

It seems to break Emacs 27.1 with some packages.
master
Pierre Neidhardt 2020-10-22 13:28:59 +02:00
parent a92fb958c4
commit e799ef4afd
1 changed files with 3 additions and 4 deletions

View File

@ -9,10 +9,9 @@
'lisp-imenu-generic-expression
(list (purecopy (concat (capitalize keyword) "s"))
(purecopy (concat "^\\s-*("
(eval-when-compile
(regexp-opt
(list (concat "define-" keyword))
t))
(regexp-opt
(list (concat "define-" keyword))
t)
"\\s-+\\(" lisp-mode-symbol-regexp "\\)"))
2))))
;; Following defines are common, e.g. in Next.