]> git.eshelyaron.com Git - emacs.git/commitdiff
Add defvar-local to lisp-imenu-generic-expression
authorLeo Liu <sdl.web@gmail.com>
Thu, 7 Jan 2016 03:00:52 +0000 (11:00 +0800)
committerLeo Liu <sdl.web@gmail.com>
Thu, 7 Jan 2016 03:00:52 +0000 (11:00 +0800)
* lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Add
  defvar-local.

lisp/emacs-lisp/lisp-mode.el

index 574ecef0cde4cc5e40aeee636d0cb9c900467ac1..cb8abde52edc0e135db6318a4a1c4ba7cf6384b1 100644 (file)
                               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")