changeset 35180:f4733aab37df

(sh-imenu-generic-expression): Fix doc, :type.
author Dave Love <fx@gnu.org>
date Tue, 09 Jan 2001 15:19:47 +0000
parents 1b423e7eb1eb
children 62f469e476eb
files lisp/progmodes/sh-script.el
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/sh-script.el	Tue Jan 09 14:55:30 2001 +0000
+++ b/lisp/progmodes/sh-script.el	Tue Jan 09 15:19:47 2001 +0000
@@ -321,10 +321,14 @@
 (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")