diff options
| author | Richard M. Stallman | 1998-02-06 21:55:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-02-06 21:55:42 +0000 |
| commit | 35c8b898625307b8e8228265daa57ed2a9b18e12 (patch) | |
| tree | 327d3e27a21ed7df3e44ab5f96ca78edc860197b | |
| parent | c2579332826de245fe05ea3db21ffbc721eea2af (diff) | |
| download | emacs-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.el | 28 |
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...) |
| 167 | with zero or more ARGUMENTS. The former format creates a simple element in | 167 | with zero or more ARGUMENTS. The former format creates a simple element in |
| 168 | the index alist when it matches; the latter creates a special element | 168 | the index alist when it matches; the latter creates a special element |
| 169 | of the form (NAME FUNCTION NAME POSITION-MARKER ARGUMENTS...) | 169 | of the form (NAME FUNCTION POSITION-MARKER ARGUMENTS...) |
| 170 | with FUNCTION and ARGUMENTS beiong copied from `imenu-generic-expression'. | 170 | with FUNCTION and ARGUMENTS beiong copied from `imenu-generic-expression'. |
| 171 | 171 | ||
| 172 | MENU-TITLE is a string used as the title for the submenu or nil if the | 172 | MENU-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 | |||
| 203 | of the current buffer as an alist. | 203 | of the current buffer as an alist. |
| 204 | 204 | ||
| 205 | Simple elements in the alist look like (INDEX-NAME . INDEX-POSITION). | 205 | Simple elements in the alist look like (INDEX-NAME . INDEX-POSITION). |
| 206 | Special elements look like (INDEX-NAME FUNCTION ARGUMENTS...). | 206 | Special elements look like (INDEX-NAME INDEX-POSITION FUNCTION ARGUMENTS...). |
| 207 | A nested sub-alist element looks like (INDEX-NAME SUB-ALIST). | 207 | A nested sub-alist element looks like (INDEX-NAME SUB-ALIST). |
| 208 | The function `imenu--subalist-p' tests an element and returns t | 208 | The 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 | |||
| 222 | file. | 222 | file. |
| 223 | 223 | ||
| 224 | The function should leave point at the place to be connected to the | 224 | The function should leave point at the place to be connected to the |
| 225 | index and it should return nil when it doesn't find another index.") | 225 | index and it should return nil when it doesn't find another index. |
| 226 | |||
| 227 | This 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 | |||
| 234 | This function is called after `imenu-prev-index-position-function' | ||
| 235 | finds a position for an index item, with point at that position. | ||
| 236 | It should return the name for that index item. | ||
| 237 | |||
| 238 | This variable is local in all buffers.") | ||
| 230 | 239 | ||
| 231 | This 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. | ||
| 403 | Simple elements in the alist look like (INDEX-NAME . INDEX-POSITION). | ||
| 404 | Special elements look like (INDEX-NAME INDEX-POSITION FUNCTION ARGUMENTS...). | ||
| 405 | A nested sub-alist element looks like (INDEX-NAME SUB-ALIST). | ||
| 406 | |||
| 407 | This 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. |