aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-02-06 21:55:42 +0000
committerRichard M. Stallman1998-02-06 21:55:42 +0000
commit35c8b898625307b8e8228265daa57ed2a9b18e12 (patch)
tree327d3e27a21ed7df3e44ab5f96ca78edc860197b
parentc2579332826de245fe05ea3db21ffbc721eea2af (diff)
downloademacs-35c8b898625307b8e8228265daa57ed2a9b18e12.tar.gz
emacs-35c8b898625307b8e8228265daa57ed2a9b18e12.zip
(imenu-generic-expression): Doc fix.
(imenu--index-alist): Doc fix. (imenu-create-index-function): Doc fix. (imenu-prev-index-position-function): Doc fix. (imenu-extract-index-name-function): Doc fix.
-rw-r--r--lisp/imenu.el28
1 files changed, 21 insertions, 7 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el
index 97c18ed494e..1e276705169 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -166,7 +166,7 @@ or like this:
166 (MENU-TITLE REGEXP INDEX FUNCTION ARGUMENTS...) 166 (MENU-TITLE REGEXP INDEX FUNCTION ARGUMENTS...)
167with zero or more ARGUMENTS. The former format creates a simple element in 167with zero or more ARGUMENTS. The former format creates a simple element in
168the index alist when it matches; the latter creates a special element 168the index alist when it matches; the latter creates a special element
169of the form (NAME FUNCTION NAME POSITION-MARKER ARGUMENTS...) 169of the form (NAME FUNCTION POSITION-MARKER ARGUMENTS...)
170with FUNCTION and ARGUMENTS beiong copied from `imenu-generic-expression'. 170with FUNCTION and ARGUMENTS beiong copied from `imenu-generic-expression'.
171 171
172MENU-TITLE is a string used as the title for the submenu or nil if the 172MENU-TITLE is a string used as the title for the submenu or nil if the
@@ -203,7 +203,7 @@ It should be a function that takes no arguments and returns an index
203of the current buffer as an alist. 203of the current buffer as an alist.
204 204
205Simple elements in the alist look like (INDEX-NAME . INDEX-POSITION). 205Simple elements in the alist look like (INDEX-NAME . INDEX-POSITION).
206Special elements look like (INDEX-NAME FUNCTION ARGUMENTS...). 206Special elements look like (INDEX-NAME INDEX-POSITION FUNCTION ARGUMENTS...).
207A nested sub-alist element looks like (INDEX-NAME SUB-ALIST). 207A nested sub-alist element looks like (INDEX-NAME SUB-ALIST).
208The function `imenu--subalist-p' tests an element and returns t 208The function `imenu--subalist-p' tests an element and returns t
209 if it is a sub-alist. 209 if it is a sub-alist.
@@ -222,14 +222,21 @@ to a function that will find the next index, looking backwards in the
222file. 222file.
223 223
224The function should leave point at the place to be connected to the 224The function should leave point at the place to be connected to the
225index and it should return nil when it doesn't find another index.") 225index and it should return nil when it doesn't find another index.
226
227This variable is local in all buffers.")
228
226(make-variable-buffer-local 'imenu-prev-index-position-function) 229(make-variable-buffer-local 'imenu-prev-index-position-function)
227 230
228(defvar imenu-extract-index-name-function nil 231(defvar imenu-extract-index-name-function nil
229 "Function for extracting the index name. 232 "Function for extracting the index item nam, given a position.
233
234This function is called after `imenu-prev-index-position-function'
235finds a position for an index item, with point at that position.
236It should return the name for that index item.
237
238This variable is local in all buffers.")
230 239
231This function is called after the function pointed out by
232`imenu-prev-index-position-function'.")
233(make-variable-buffer-local 'imenu-extract-index-name-function) 240(make-variable-buffer-local 'imenu-extract-index-name-function)
234 241
235(defvar imenu-default-goto-function 'imenu-default-goto-function 242(defvar imenu-default-goto-function 'imenu-default-goto-function
@@ -391,7 +398,14 @@ The function in this variable is called when selecting a normal index-item.")
391 398
392;; The latest buffer index. 399;; The latest buffer index.
393;; Buffer local. 400;; Buffer local.
394(defvar imenu--index-alist nil) 401(defvar imenu--index-alist nil
402 "The buffer index computed for this buffer in Imenu.
403Simple elements in the alist look like (INDEX-NAME . INDEX-POSITION).
404Special elements look like (INDEX-NAME INDEX-POSITION FUNCTION ARGUMENTS...).
405A nested sub-alist element looks like (INDEX-NAME SUB-ALIST).
406
407This variable is local in all buffers, once set.")
408
395(make-variable-buffer-local 'imenu--index-alist) 409(make-variable-buffer-local 'imenu--index-alist)
396 410
397;; The latest buffer index used to update the menu bar menu. 411;; The latest buffer index used to update the menu bar menu.