From 83c5d68f535527df65ca5e38beb3c74107d7cdec Mon Sep 17 00:00:00 2001 From: Dave Love Date: Tue, 9 Jan 2001 15:19:47 +0000 Subject: [PATCH] (sh-imenu-generic-expression): Fix doc, :type. --- lisp/progmodes/sh-script.el | 12 ++++++++---- 1 file 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") -- 2.39.2