home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
texinfo-3.7-bin.lha
/
lib
/
emacs
/
site-lisp
/
texinfo.elc
< prev
next >
Wrap
Text File
|
1996-10-12
|
23KB
|
366 lines
(autoload (quote makeinfo-region) "makeinfo" "\
Make Info file from region of current Texinfo file, and switch to it.
This command does not offer the `next-error' feature since it would
apply to a temporary file, not the original; use the `makeinfo-buffer'
command to gain use of `next-error'." t nil)
(autoload (quote makeinfo-buffer) "makeinfo" "\
Make Info file from current buffer.
Use the \\[next-error] command to move to the next error
(if there are errors)." t nil)
(autoload (quote kill-compilation) "compile" "\
Kill the process made by the \\[compile] command." t nil)
(autoload (quote makeinfo-recenter-compilation-buffer) "makeinfo" "\
Redisplay `*compilation*' buffer so most recent output can be seen.
The last line of the buffer is displayed on
line LINE of the window, or centered if LINE is nil." t nil)
(autoload (quote texinfo-make-menu) "texnfo-upd" "\
Without any prefix argument, make or update a menu.
Make the menu for the section enclosing the node found following point.
Non-nil argument (prefix, if interactive) means make or update menus
for nodes within or part of the marked region.
Whenever a menu exists, and is being updated, the descriptions that
are associated with node names in the pre-existing menu are
incorporated into the new menu. Otherwise, the nodes' section titles
are inserted as descriptions." t nil)
(autoload (quote texinfo-all-menus-update) "texnfo-upd" "\
Update every regular menu in a Texinfo file.
Remove pre-existing master menu, if there is one.
If called with a non-nil argument, this function first updates all the
nodes in the buffer before updating the menus." t nil)
(autoload (quote texinfo-master-menu) "texnfo-upd" "\
Make a master menu for a whole Texinfo file.
Non-nil argument (prefix, if interactive) means first update all
existing nodes and menus. Remove pre-existing master menu, if there is one.
This function creates a master menu that follows the top node. The
master menu includes every entry from all the other menus. It
replaces any existing ordinary menu that follows the top node.
If called with a non-nil argument, this function first updates all the
menus in the buffer (incorporating descriptions from pre-existing
menus) before it constructs the master menu.
The function removes the detailed part of an already existing master
menu. This action depends on the pre-exisitng master menu using the
standard `texinfo-master-menu-header'.
The master menu has the following format, which is adapted from the
recommendation in the Texinfo Manual:
* The first part contains the major nodes in the Texinfo file: the
nodes for the chapters, chapter-like sections, and the major
appendices. This includes the indices, so long as they are in
chapter-like sections, such as unnumbered sections.
* The second and subsequent parts contain a listing of the other,
lower level menus, in order. This way, an inquirer can go
directly to a particular node if he or she is searching for
specific information.
Each of the menus in the detailed node listing is introduced by the
title of the section containing the menu." t nil)
(autoload (quote texinfo-indent-menu-description) "texnfo-upd" "\
Indent every description in menu following point to COLUMN.
Non-nil argument (prefix, if interactive) means indent every
description in every menu in the region. Does not indent second and
subsequent lines of a multi-line description." t nil)
(autoload (quote texinfo-insert-node-lines) "texnfo-upd" "\
Insert missing `@node' lines in region of Texinfo file.
Non-nil argument (prefix, if interactive) means also to insert the
section titles as node names; and also to insert the section titles as
node names in pre-existing @node lines that lack names." t nil)
(autoload (quote texinfo-start-menu-description) "texnfo-upd" "\
In this menu entry, insert the node's section title as a description.
Position point at beginning of description ready for editing.
Do not insert a title if the line contains an existing description.
You will need to edit the inserted text since a useful description
complements the node name rather than repeats it as a title does." t nil)
(autoload (quote texinfo-multiple-files-update) "texnfo-upd" "\
Update first node pointers in each file included in OUTER-FILE;
create or update main menu in the outer file that refers to such nodes.
This does not create or update menus or pointers within the included files.
With optional MAKE-MASTER-MENU argument (prefix arg, if interactive),
insert a master menu in OUTER-FILE. This does not create or update
menus or pointers within the included files.
With optional UPDATE-EVERYTHING argument (numeric prefix arg, if
interactive), update all the menus and all the `Next', `Previous', and
`Up' pointers of all the files included in OUTER-FILE before inserting
a master menu in OUTER-FILE.
The command also updates the `Top' level node pointers of OUTER-FILE.
Notes:
* this command does NOT save any files--you must save the
outer file and any modified, included files.
* except for the `Top' node, this command does NOT handle any
pre-existing nodes in the outer file; hence, indices must be
enclosed in an included file.
Requirements:
* each of the included files must contain exactly one highest
hierarchical level node,
* this highest node must be the first node in the included file,
* each highest hierarchical level node must be of the same type.
Thus, normally, each included file contains one, and only one,
chapter." t nil)
(defvar texinfo-mode-syntax-table nil)
(if texinfo-mode-syntax-table nil (setq texinfo-mode-syntax-table (make-syntax-table)) (modify-syntax-entry 34 " " texinfo-mode-syntax-table) (modify-syntax-entry 92 " " texinfo-mode-syntax-table) (modify-syntax-entry 64 "\\" texinfo-mode-syntax-table) (modify-syntax-entry 17 "\\" texinfo-mode-syntax-table) (modify-syntax-entry 91 "(]" texinfo-mode-syntax-table) (modify-syntax-entry 93 ")[" texinfo-mode-syntax-table) (modify-syntax-entry 123 "(}" texinfo-mode-syntax-table) (modify-syntax-entry 125 "){" texinfo-mode-syntax-table) (modify-syntax-entry 39 "w" texinfo-mode-syntax-table))
(defvar texinfo-imenu-generic-expression (quote ((nil "^@node[ ]+\\([^,
]*\\)" 1) ("Chapters" "^@chapter[ ]+\\(.*\\)$" 1))) "Imenu generic expression for TexInfo mode. See `imenu-generic-expression'.")
(defvar texinfo-font-lock-keywords (list (quote ("^\\(@c\\|@comment\\)\\>.*" . font-lock-comment-face)) "@\\(@\\|[^}
{]+\\)" (quote ("^\\(*.*\\)[ ]*$" 1 font-lock-function-name-face t)) (quote ("@\\(emph\\|strong\\|b\\|i\\){\\([^}]+\\)" 2 font-lock-comment-face)) (quote ("@\\(file\\|kbd\\|key\\){\\([^}]+\\)" 2 font-lock-string-face)) (quote ("@\\(samp\\|code\\|var\\|math\\){\\([^}]+\\)" 2 font-lock-variable-name-face)) (quote ("@\\(cite\\|xref\\|pxref\\){\\([^}]+\\)" 2 font-lock-reference-face)) (quote ("@\\(end\\|item\\) *\\(.+\\)" 2 font-lock-function-name-face keep))) "Additional expressions to highlight in TeXinfo mode.")
(defvar texinfo-mode-map nil)
(defun texinfo-define-common-keys (keymap) "\
Define the keys both in Texinfo mode and in the texinfo-tex-shell." (byte-code "ÁÂÃ#ÁÄÅ#ÁÆÇ#ÁÈÉ#ÁÊË#ÁÌÍ#ÁÎÏ#ÁÐÑ#ÁÒÓ#" [keymap define-key "" tex-kill-job "" texinfo-quit-job "" tex-recenter-output-buffer "" texinfo-delete-from-print-queue "" tex-show-print-queue "" texinfo-tex-print " " texinfo-texindex "" texinfo-tex-region "" texinfo-tex-buffer] 12))
(if texinfo-mode-map nil (setq texinfo-mode-map (make-sparse-keymap)) (texinfo-define-common-keys texinfo-mode-map) (define-key texinfo-mode-map "" (quote kill-compilation)) (define-key texinfo-mode-map "" (quote makeinfo-recenter-compilation-buffer)) (define-key texinfo-mode-map "" (quote makeinfo-region)) (define-key texinfo-mode-map "" (quote makeinfo-buffer)) (define-key texinfo-mode-map "" (quote texinfo-format-region)) (define-key texinfo-mode-map "" (quote texinfo-format-buffer)) (define-key texinfo-mode-map "m" (quote texinfo-master-menu)) (define-key texinfo-mode-map "" (quote texinfo-make-menu)) (define-key texinfo-mode-map "" (quote texinfo-update-node)) (define-key texinfo-mode-map "" (quote texinfo-every-node-update)) (define-key texinfo-mode-map "" (quote texinfo-all-menus-update)) (define-key texinfo-mode-map "" (quote texinfo-show-structure)) (define-key texinfo-mode-map "}" (quote up-list)) (define-key texinfo-mode-map "{" (quote texinfo-insert-braces)) (define-key texinfo-mode-map "" (quote texinfo-start-menu-description)) (define-key texinfo-mode-map "v" (quote texinfo-insert-@var)) (define-key texinfo-mode-map "t" (quote texinfo-insert-@table)) (define-key texinfo-mode-map "s" (quote texinfo-insert-@samp)) (define-key texinfo-mode-map "o" (quote texinfo-insert-@noindent)) (define-key texinfo-mode-map "n" (quote texinfo-insert-@node)) (define-key texinfo-mode-map "k" (quote texinfo-insert-@kbd)) (define-key texinfo-mode-map "i" (quote texinfo-insert-@item)) (define-key texinfo-mode-map "f" (quote texinfo-insert-@file)) (define-key texinfo-mode-map "x" (quote texinfo-insert-@example)) (define-key texinfo-mode-map "e" (quote texinfo-insert-@end)) (define-key texinfo-mode-map "d" (quote texinfo-insert-@dfn)) (define-key texinfo-mode-map "c" (quote texinfo-insert-@code)))
(defvar texinfo-chapter-level-regexp "chapter\\|unnumbered \\|appendix \\|majorheading\\|chapheading" "\
Regular expression matching Texinfo chapter-level headings.
This does not match `@node' and does not match the `@top' command.")
(defun texinfo-mode nil "\
Major mode for editing Texinfo files.
It has these extra commands:
\\{texinfo-mode-map}
These are files that are used as input for TeX to make printed manuals
and also to be turned into Info files with \\[makeinfo-buffer] or
the `makeinfo' program. These files must be written in a very restricted and
modified version of TeX input format.
Editing commands are like text-mode except that the syntax table is
set up so expression commands skip Texinfo bracket groups. To see
what the Info version of a region of the Texinfo file will look like,
use \\[makeinfo-region], which runs `makeinfo' on the current region.
You can show the structure of a Texinfo file with \\[texinfo-show-structure].
This command shows the structure of a Texinfo file by listing the
lines with the @-sign commands for @chapter, @section, and the like.
These lines are displayed in another window called the *Occur* window.
In that window, you can position the cursor over one of the lines and
use \\[occur-mode-goto-occurrence], to jump to the corresponding spot
in the Texinfo file.
In addition, Texinfo mode provides commands that insert various
frequently used @-sign commands into the buffer. You can use these
commands to save keystrokes. And you can insert balanced braces with
\\[texinfo-insert-braces] and later use the command \\[up-list] to
move forward past the closing brace.
Also, Texinfo mode provides functions for automatically creating or
updating menus and node pointers. These functions
* insert the `Next', `Previous' and `Up' pointers of a node,
* insert or update the menu for a section, and
* create a master menu for a Texinfo source file.
Here are the functions:
texinfo-update-node \\[texinfo-update-node]
texinfo-every-node-update \\[texinfo-every-node-update]
texinfo-sequential-node-update
texinfo-make-menu \\[texinfo-make-menu]
texinfo-all-menus-update \\[texinfo-all-menus-update]
texinfo-master-menu
texinfo-indent-menu-description (column &optional region-p)
The `texinfo-column-for-description' variable specifies the column to
which menu descriptions are indented.
Passed an argument (a prefix argument, if interactive), the
`texinfo-update-node' and `texinfo-make-menu' functions do their jobs
in the region.
To use the updating commands, you must structure your Texinfo file
hierarchically, such that each `@node' line, with the exception of the
Top node, is accompanied by some kind of section line, such as an
`@chapter' or `@section' line.
If the file has a `top' node, it must be called `top' or `Top' and
be the first node in the file.
Entering Texinfo mode calls the value of text-mode-hook, and then the
value of texinfo-mode-hook." (interactive) (byte-code "ÉÕ Ö×Ø
!Ù!ÚÄ!ÛÜQÚÆ!ÇÚÈ!ÉÚÊ!Ý
P
ÚË!ÝPÚÌ!ÞÚÍ!ßÚÎ!àÚÏ!ÇÚÐ!ÚÒ!áÚÓ!âÚÔ!ãäåæ\"" [mode-name major-mode texinfo-mode-map texinfo-mode-syntax-table page-delimiter texinfo-chapter-level-regexp require-final-newline t indent-tabs-mode nil paragraph-separate paragraph-start fill-column comment-start comment-start-skip words-include-escapes imenu-generic-expression texinfo-imenu-generic-expression font-lock-defaults tex-start-of-header tex-end-of-header text-mode "Texinfo" texinfo-mode use-local-map set-syntax-table make-local-variable "^@node [ ]*[Tt]op\\|^@\\(" "\\)" "\\|@[a-zA-Z]*[
]\\|" 72 "@c " "@c +" (texinfo-font-lock-keywords t) "%**start" "%**end" run-hooks text-mode-hook texinfo-mode-hook] 19))
(defconst texinfo-environment-regexp "^[ ]*@\\(f?table\\|enumerate\\|itemize\\|ifhtml\\|ifinfo\\|iftex\\|ifset\\|ifclear\\|example\\|quotation\\|lisp\\|smallexample\\|smalllisp\\|display\\|format\\|flushleft\\|flushright\\|ignore\\|group\\|tex\\|html\\|cartouche\\|menu\\|titlepage\\|end\\|def[a-z]*[a-wyz]\\>\\)" "\
Regexp for environment-like Texinfo list commands.
Subexpression 1 is what goes into the corresponding `@end' statement.")
(defun texinfo-insert-@end nil "\
Insert the matching `@end' for the last Texinfo command that needs one." (interactive) (byte-code "ÃÅÃÆV &