diff options
| author | Leo Liu | 2016-01-07 11:00:52 +0800 |
|---|---|---|
| committer | Leo Liu | 2016-01-07 11:00:52 +0800 |
| commit | ce4a052415b70030ee591af3cb5bed0fb79ef3aa (patch) | |
| tree | 83ef7cc2d1f097fd89704a8d5334beaa64b2e5ef | |
| parent | a0121bc7112f3d6ab76a67ba84cd80301cdc3581 (diff) | |
| download | emacs-ce4a052415b70030ee591af3cb5bed0fb79ef3aa.tar.gz emacs-ce4a052415b70030ee591af3cb5bed0fb79ef3aa.zip | |
Add defvar-local to lisp-imenu-generic-expression
* lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Add
defvar-local.
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 574ecef0cde..cb8abde52ed 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -131,9 +131,10 @@ | |||
| 131 | t)) | 131 | t)) |
| 132 | "\\s-+\\(" lisp-mode-symbol-regexp "\\)")) | 132 | "\\s-+\\(" lisp-mode-symbol-regexp "\\)")) |
| 133 | 2) | 133 | 2) |
| 134 | ;; For `defvar', we ignore (defvar FOO) constructs. | 134 | ;; For `defvar'/`defvar-local', we ignore (defvar FOO) constructs. |
| 135 | (list (purecopy "Variables") | 135 | (list (purecopy "Variables") |
| 136 | (purecopy (concat "^\\s-*(defvar\\s-+\\(" lisp-mode-symbol-regexp "\\)" | 136 | (purecopy (concat "^\\s-*(defvar\\(?:-local\\)?\\s-+\\(" |
| 137 | lisp-mode-symbol-regexp "\\)" | ||
| 137 | "[[:space:]\n]+[^)]")) | 138 | "[[:space:]\n]+[^)]")) |
| 138 | 1) | 139 | 1) |
| 139 | (list (purecopy "Types") | 140 | (list (purecopy "Types") |