Commit d20a1ebb authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(lisp-imenu-generic-expression): Fix bug whereby names of length one

or names starting with a symbol-constituent character would not be returned.
parent 6273dc68
2005-12-03 Martin Rudalics <rudalics@gmx.at> (tiny change)
* emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Fix bug
whereby names of length one or names starting with a
symbol-constituent character would not be returned.
2005-12-03 Johan Bockg,Ae(Brd <bojohan@dd.chalmers.se>
 
* subr.el (atomic-change-group): Add edebug and indentation spec.
......
......@@ -102,7 +102,7 @@
"defsetf" "define-setf-expander"
"define-method-combination"
"defgeneric" "defmethod") t))
"\\s-+\\(\\sw\\(\\sw\\|\\s_\\)+\\)"))
"\\s-+\\(\\(\\sw\\|\\s_\\)+\\)"))
2)
(list (purecopy "Variables")
(purecopy (concat "^\\s-*("
......@@ -110,7 +110,7 @@
(regexp-opt
'("defvar" "defconst" "defconstant" "defcustom"
"defparameter" "define-symbol-macro") t))
"\\s-+\\(\\sw\\(\\sw\\|\\s_\\)+\\)"))
"\\s-+\\(\\(\\sw\\|\\s_\\)+\\)"))
2)
(list (purecopy "Types")
(purecopy (concat "^\\s-*("
......@@ -119,7 +119,7 @@
'("defgroup" "deftheme" "deftype" "defstruct"
"defclass" "define-condition" "define-widget"
"defface" "defpackage") t))
"\\s-+'?\\(\\sw\\(\\sw\\|\\s_\\)+\\)"))
"\\s-+'?\\(\\(\\sw\\|\\s_\\)+\\)"))
2))
"Imenu generic expression for Lisp mode. See `imenu-generic-expression'.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment