# HG changeset patch # User Richard M. Stallman # Date 1058887479 0 # Node ID b96d92c96bd103b9f7de3a5761ed1b0d5043c63b # Parent 8aed6a3b153d8d481d280c6296e6991304b37ef9 (Imenu): Add xref to Emacs Manual node on Imenu. Remove spurious indent in example. diff -r 8aed6a3b153d -r b96d92c96bd1 lispref/modes.texi --- a/lispref/modes.texi Tue Jul 22 15:23:50 2003 +0000 +++ b/lispref/modes.texi Tue Jul 22 15:24:39 2003 +0000 @@ -1616,11 +1616,13 @@ @cindex Imenu @dfn{Imenu} is a feature that lets users select a definition or section in the buffer, from a menu which lists all of them, to go -directly to that location in the buffer. Imenu works by constructing a -buffer index which lists the names and buffer positions of the +directly to that location in the buffer. Imenu works by constructing +a buffer index which lists the names and buffer positions of the definitions, or other named portions of the buffer; then the user can -choose one of them and move point to it. This section explains how to -customize how Imenu finds the definitions or buffer portions for a +choose one of them and move point to it. The user-level commands for +using Imenu are described in the Emacs Manual (@pxref{Imenu,, Imenu, +emacs, the Emacs Manual}). This section explains how to customize +Imenu's method of finding definitions or buffer portions for a particular major mode. The usual and simplest way is to set the variable @@ -1708,7 +1710,7 @@ For example, Fortran mode uses it this way: @example - (setq imenu-syntax-alist '(("_$" . "w"))) +(setq imenu-syntax-alist '(("_$" . "w"))) @end example The @code{imenu-generic-expression} patterns can then use @samp{\\sw+}