summaryrefslogtreecommitdiff
path: root/man/emacs.texi
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-04-25 05:57:59 +0000
committerEli Zaretskii <eliz@gnu.org>2001-04-25 05:57:59 +0000
commit010e81be85874945eeb20e362c8464d3d758e92f (patch)
tree8199ec64491a1ba25d4044d856f33209f8f6dfdc /man/emacs.texi
parenta8575fe53124527ec1284d3da52463c65d7b0a36 (diff)
downloademacs-010e81be85874945eeb20e362c8464d3d758e92f.tar.gz
Add Option Index, produced only in the on-line version of the manual.
Diffstat (limited to 'man/emacs.texi')
-rw-r--r--man/emacs.texi37
1 files changed, 37 insertions, 0 deletions
diff --git a/man/emacs.texi b/man/emacs.texi
index 424199dafd9..4b4a80fbb59 100644
--- a/man/emacs.texi
+++ b/man/emacs.texi
@@ -3,6 +3,12 @@
@setchapternewpage odd
@settitle GNU Emacs Manual
@setfilename ../info/emacs
+@c The Option Index is produced only in the on-line version,
+@c because the index entries related to command-line options
+@c tend to point to the same pages and all begin with a dash.
+@ifnottex
+@defcodeindex op
+@end ifnottex
@synindex pg cp
@c The edition number appears in several places in this file
@@ -142,6 +148,10 @@ Indexes (nodes containing large menus)
* Command Index:: An item for each command name.
* Variable Index:: An item for each documented variable.
* Concept Index:: An item for each concept.
+@c This is last because @ifnottex leaves an empty line.
+@ifnottex
+* Option Index:: An item for every command-line option.
+@end ifnottex
Important General Concepts
* Screen:: How to interpret what you see on the screen.
@@ -1439,13 +1449,40 @@ edit files while running shell commands.
@include ack.texi
@end ifinfo
+@c The Option Index is produced only in the on-line version,
+@c because the index entries related to command-line options
+@c tend to point to the same pages and all begin with a dash.
+@c This, and the need to keep the node links consistent, are
+@c the reasons for the funky @iftex/@ifnottex dance below.
+@c The Option Index is _not_ before Key Index, because that
+@c would require changes in the glossary.texi's @node line.
+@c It is not after Concept Index for similar reasons.
+
+@iftex
@node Key Index, Command Index, Glossary, Top
@unnumbered Key (Character) Index
@printindex ky
+@end iftex
+
+@ifnottex
+@node Key Index, Option Index, Glossary, Top
+@unnumbered Key (Character) Index
+@printindex ky
+
+@node Option Index, Command Index, Key Index, Top
+@unnumbered Command-Line Options Index
+@printindex op
+@node Command Index, Variable Index, Option Index, Top
+@unnumbered Command and Function Index
+@printindex fn
+@end ifnottex
+
+@iftex
@node Command Index, Variable Index, Key Index, Top
@unnumbered Command and Function Index
@printindex fn
+@end iftex
@node Variable Index, Concept Index, Command Index, Top
@unnumbered Variable Index