summaryrefslogtreecommitdiff
path: root/lisp/imenu.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2018-07-07 12:34:26 +0300
committerEli Zaretskii <eliz@gnu.org>2018-07-07 12:34:26 +0300
commit9d6ca5ad4de832a0e8095ed1acf74d6bc18eb358 (patch)
tree76359b5159f114d7d688819932d81021937fe3a6 /lisp/imenu.el
parentfdd7e7d8a80f41336f048174d6d1929fb46d00a8 (diff)
downloademacs-9d6ca5ad4de832a0e8095ed1acf74d6bc18eb358.tar.gz
* lisp/imenu.el (imenu-generic-expression): Doc fix. (Bug#32016)
Diffstat (limited to 'lisp/imenu.el')
-rw-r--r--lisp/imenu.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el
index 8cf3c768ead..89114524ebc 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -207,9 +207,9 @@ string (which specifies the title of a submenu into which the
matches are put).
REGEXP is a regular expression matching a definition construct
which is to be displayed in the menu. REGEXP may also be a
-function, called without arguments. It is expected to search
-backwards. It must return true and set `match-data' if it finds
-another element.
+function of no arguments. If REGEXP is a function, it is
+expected to search backwards, return non-nil if it finds a
+definition construct, and set `match-data' for that construct.
INDEX is an integer specifying which subexpression of REGEXP
matches the definition's name; this subexpression is displayed as
the menu item.