Add defvar-local to lisp-imenu-generic-expression
* lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Add defvar-local.
This commit is contained in:
parent
a0121bc711
commit
ce4a052415
1 changed files with 3 additions and 2 deletions
|
@ -131,9 +131,10 @@
|
|||
t))
|
||||
"\\s-+\\(" lisp-mode-symbol-regexp "\\)"))
|
||||
2)
|
||||
;; For `defvar', we ignore (defvar FOO) constructs.
|
||||
;; For `defvar'/`defvar-local', we ignore (defvar FOO) constructs.
|
||||
(list (purecopy "Variables")
|
||||
(purecopy (concat "^\\s-*(defvar\\s-+\\(" lisp-mode-symbol-regexp "\\)"
|
||||
(purecopy (concat "^\\s-*(defvar\\(?:-local\\)?\\s-+\\("
|
||||
lisp-mode-symbol-regexp "\\)"
|
||||
"[[:space:]\n]+[^)]"))
|
||||
1)
|
||||
(list (purecopy "Types")
|
||||
|
|
Loading…
Add table
Reference in a new issue