diff options
| author | Richard M. Stallman | 2003-07-22 15:24:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-07-22 15:24:39 +0000 |
| commit | 5a5d2aecd8266bdc9666a893f628c374ca0de6ea (patch) | |
| tree | c67bfcc7cd022659268f23c87ebbde9db21bf34e | |
| parent | 1006f206691a9d2d7d9ead621889c700d70bfa41 (diff) | |
| download | emacs-5a5d2aecd8266bdc9666a893f628c374ca0de6ea.tar.gz emacs-5a5d2aecd8266bdc9666a893f628c374ca0de6ea.zip | |
(Imenu): Add xref to Emacs Manual node on Imenu.
Remove spurious indent in example.
| -rw-r--r-- | lispref/modes.texi | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lispref/modes.texi b/lispref/modes.texi index c8e2523a5cb..25f44b92e09 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi | |||
| @@ -1616,11 +1616,13 @@ It is normally @code{nil}, so that ordinary buffers have no header line. | |||
| 1616 | @cindex Imenu | 1616 | @cindex Imenu |
| 1617 | @dfn{Imenu} is a feature that lets users select a definition or | 1617 | @dfn{Imenu} is a feature that lets users select a definition or |
| 1618 | section in the buffer, from a menu which lists all of them, to go | 1618 | section in the buffer, from a menu which lists all of them, to go |
| 1619 | directly to that location in the buffer. Imenu works by constructing a | 1619 | directly to that location in the buffer. Imenu works by constructing |
| 1620 | buffer index which lists the names and buffer positions of the | 1620 | a buffer index which lists the names and buffer positions of the |
| 1621 | definitions, or other named portions of the buffer; then the user can | 1621 | definitions, or other named portions of the buffer; then the user can |
| 1622 | choose one of them and move point to it. This section explains how to | 1622 | choose one of them and move point to it. The user-level commands for |
| 1623 | customize how Imenu finds the definitions or buffer portions for a | 1623 | using Imenu are described in the Emacs Manual (@pxref{Imenu,, Imenu, |
| 1624 | emacs, the Emacs Manual}). This section explains how to customize | ||
| 1625 | Imenu's method of finding definitions or buffer portions for a | ||
| 1624 | particular major mode. | 1626 | particular major mode. |
| 1625 | 1627 | ||
| 1626 | The usual and simplest way is to set the variable | 1628 | The usual and simplest way is to set the variable |
| @@ -1708,7 +1710,7 @@ normally have symbol syntax, and thus to simplify | |||
| 1708 | For example, Fortran mode uses it this way: | 1710 | For example, Fortran mode uses it this way: |
| 1709 | 1711 | ||
| 1710 | @example | 1712 | @example |
| 1711 | (setq imenu-syntax-alist '(("_$" . "w"))) | 1713 | (setq imenu-syntax-alist '(("_$" . "w"))) |
| 1712 | @end example | 1714 | @end example |
| 1713 | 1715 | ||
| 1714 | The @code{imenu-generic-expression} patterns can then use @samp{\\sw+} | 1716 | The @code{imenu-generic-expression} patterns can then use @samp{\\sw+} |