summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2001-01-09 15:19:47 +0000
committerDave Love <fx@gnu.org>2001-01-09 15:19:47 +0000
commit83c5d68f535527df65ca5e38beb3c74107d7cdec (patch)
tree65fcaae8a2222acd04b8d98923dc69500e496f28
parent8b7c899181413b8f0f769c5f85f8bd7b11111582 (diff)
downloademacs-83c5d68f535527df65ca5e38beb3c74107d7cdec.tar.gz
(sh-imenu-generic-expression): Fix doc,
:type.
-rw-r--r--lisp/progmodes/sh-script.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 375806068d6..d99e3130870 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -321,10 +321,14 @@ shell it really is."
(defcustom sh-imenu-generic-expression
`((sh
. ((nil "^\\s-*\\(function\\s-+\\)?\\([A-Za-z_][A-Za-z_0-9]+\\)\\s-*()" 2))))
- "*Regular expression for recognizing shell function definitions.
-See `sh-feature'."
- :type '(repeat (cons (symbol :tag "Shell")
- regexp))
+ "*Alist of regular expressions for recognizing shell function definitions.
+See `sh-feature' and `imenu-generic-expression'."
+ :type '(alist :key-type (symbol :tag "Shell")
+ :value-type (alist :key-type (choice :tag "Title"
+ string
+ (const :tag "None" nil))
+ :value-type
+ (repeat :tag "Regexp, index..." sexp)))
:group 'sh-script
:version "20.4")