diff options
| author | Richard M. Stallman | 2006-04-18 21:08:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-04-18 21:08:45 +0000 |
| commit | c759f47bfdfd71680ff3b811835d9981bed0f137 (patch) | |
| tree | e2be55fe4ea47c6213a5424678be5f4c95978228 | |
| parent | ec1c4af56259251c88f1aeb2d958e05402907e8c (diff) | |
| download | emacs-c759f47bfdfd71680ff3b811835d9981bed0f137.tar.gz emacs-c759f47bfdfd71680ff3b811835d9981bed0f137.zip | |
(Imenu): Clarify what special items do.
| -rw-r--r-- | lispref/modes.texi | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lispref/modes.texi b/lispref/modes.texi index fc1953d24d9..b33424a58be 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi | |||
| @@ -2174,10 +2174,9 @@ An element can also look like this: | |||
| 2174 | (@var{menu-title} @var{regexp} @var{index} @var{function} @var{arguments}@dots{}) | 2174 | (@var{menu-title} @var{regexp} @var{index} @var{function} @var{arguments}@dots{}) |
| 2175 | @end example | 2175 | @end example |
| 2176 | 2176 | ||
| 2177 | Like in the previous case, each match for this element creates an | 2177 | Each match for this element creates an index item, and when the index |
| 2178 | index item. However, if this index item is selected by the user, it | 2178 | item is selected by the user, it calls @var{function} with arguments |
| 2179 | calls @var{function} with arguments consisting of the item name, the | 2179 | consisting of the item name, the buffer position, and @var{arguments}. |
| 2180 | buffer position, and @var{arguments}. | ||
| 2181 | 2180 | ||
| 2182 | For Emacs Lisp mode, @code{imenu-generic-expression} could look like | 2181 | For Emacs Lisp mode, @code{imenu-generic-expression} could look like |
| 2183 | this: | 2182 | this: |