
(autoload (quote texinfo-format-region) "texinfmt" "\
Convert the current region of the Texinfo file to Info format.
This lets you see what that part of the file will look like in Info.
The command is bound to \\[texinfo-format-region].  The text that is
converted to Info is stored in a temporary buffer." t nil)

(autoload (quote texinfo-format-buffer) "texinfmt" "\
Process the current buffer as texinfo code, into an Info file.
The Info file output is generated in a buffer visiting the Info file
names specified in the @setfilename command.

Non-nil argument (prefix, if interactive) means don't make tag table
and don't split the file if large.  You can use Info-tagify and
Info-split to do these manually." t nil)

(autoload (quote makeinfo-region) "makeinfo" "\
Make Info file from region of current Texinfo source file.

The \\[next-error] command can be used to move to the next error (if
any are found)." t nil)

(autoload (quote makeinfo-buffer) "makeinfo" "\
Make Info file from current buffer.

The \\[next-error] command can be used to move to the next error 
(if any are found)." 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 that 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-tex-region) "texnfo-tex" "\
Run tex on the current region. 

A temporary file is written in the default directory, and tex is run
in that directory.  The first line of the file is copied to the
temporary file; and if the buffer has a header, it is written to the
temporary file before the region itself.  The buffer's header is all
lines between the strings defined by texinfo-start-of-header and
texinfo-end-of-header inclusive.  The header must start in the first 100
lines.  The value of texinfo-tex-trailer is appended to the temporary file
after the region." t nil)

(autoload (quote texinfo-tex-buffer) "texnfo-tex" "\
Run TeX on current buffer.
After running TeX the first time, you may have to run \\[texinfo-texindex]
and then \\[texinfo-tex-buffer] again." t nil)

(autoload (quote texinfo-kill-tex-job) "texnfo-tex" "\
Kill the currently running TeX job." t nil)

(autoload (quote texinfo-recenter-tex-output-buffer) "texnfo-tex" "\
Redisplay buffer of TeX job output so that 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-delete-from-tex-print-queue) "texnfo-tex" "\
Delete job from the line printer spooling queue.
You are prompted for the job number (shown by a previous
\\[texinfo-show-tex-print-queue] command." t nil)

(autoload (quote texinfo-show-tex-print-queue) "texnfo-tex" "\
Show the print queue that \\[texinfo-tex-print] put your job on.
Runs the shell command defined by texinfo-show-tex-queue-command." t nil)

(autoload (quote texinfo-tex-print) "texnfo-tex" "\
Print .dvi file made by \\[texinfo-tex-region] or \\[texinfo-tex-buffer].
Runs the shell command defined by texinfo-tex-dvi-print-command." t nil)

(autoload (quote texinfo-texindex) "texnfo-tex" "\
Run texindex on unsorted index files.
The index files are made by \\[texinfo-tex-region] or \\[texinfo-tex-buffer].
Runs the shell command defined by texinfo-texindex-command." 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-update-node) "texnfo-upd" "\
Without any prefix argument, update the node in which point is located.
Non-nil argument (prefix, if interactive) means update the nodes in the
marked region.

The functions for creating or updating nodes and menus, and their
keybindings, are:

    texinfo-update-node (&optional region-p)    \\[texinfo-update-node]
    texinfo-every-node-update ()                \\[texinfo-every-node-update]
    texinfo-sequential-node-update (&optional region-p)

    texinfo-make-menu (&optional region-p)      \\[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. Its default value is 24." t nil)

(autoload (quote texinfo-every-node-update) "texnfo-upd" "\
Update every node in a Texinfo file." 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-sequential-node-update) "texnfo-upd" "\
Update one node (or many) in a Texinfo file with sequential pointers.

This function causes the `Next' or `Previous' pointer to point to the
immediately preceding or following node, even if it is at a higher or
lower hierarchical level in the document.  Continually pressing `n' or
`p' takes you straight through the file.

Without any prefix argument, update the node in which point is located.
Non-nil argument (prefix, if interactive) means update the nodes in the
marked region.

This command makes it awkward to navigate among sections and
subsections; it should be used only for those documents that are meant
to be read like a novel rather than a reference, and for which the
Info `g*' command is inadequate." 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-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-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 "" texinfo-kill-tex-job "" texinfo-quit-tex-job "" texinfo-recenter-tex-output-buffer "" texinfo-delete-from-tex-print-queue "" texinfo-show-tex-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 texinfo-format-region)) (define-key texinfo-mode-map "" (quote texinfo-format-buffer)) (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 "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 up-list)) (define-key texinfo-mode-map "{" (quote texinfo-insert-braces)) (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" "\
*Regexp matching chapter-level headings (but not the top node).")

(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 by \\[texinfo-format-buffer] or
`makeinfo'.  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 \\[texinfo-format-region].  This command runs Info on the current region
of the Texinfo file and formats it properly.

  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 texinfo-start-of-header texinfo-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 +" "%**start" "%**end" run-hooks text-mode-hook texinfo-mode-hook] 17))

(defvar texinfo-start-of-header "%**start" "\
String to mark start of header for texinfo-tex-region.")

(defvar texinfo-end-of-header "%**end" "\
String to mark end of header for texinfo-tex-region.")

(defconst texinfo-environment-regexp "^@\\(f?table\\|enumerate\\|itemize\\|ifinfo\\|iftex\\|example\\|quotation\\|lisp\\|smallexample\\|smalllisp\\|display\\|format\\|flushleft\\|flushright\\|ignore\\|group\\|tex\\)" "\
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 a @table etc. in a texinfo buffer.
BUG: Does not understand nested lists." (interactive) (byte-code "ÂˆŠÄ	ÂÃ#… ÅÆÇ!ÈÇ!\")Écˆ… c)‡" [string texinfo-environment-regexp nil t re-search-backward buffer-substring match-beginning 1 match-end "@end "] 6))

(defun texinfo-insert-@-with-arg (string &optional arg) (byte-code "ƒ8 Â!‰ˆÃWƒ% ÄÅ!ˆŠÆ!ˆÇÈ	É#)ˆÊc‚5 ËÅ!ˆÇÈ	É#ˆÆ!ˆÊc‚@ ÇÈ	Ì#ˆÍ ‡" [arg string prefix-numeric-value 0 skip-chars-backward " 	
" forward-sexp insert "@" "{" "}" skip-chars-forward "{}" backward-char] 11))

(defun texinfo-insert-braces nil "\
Make a pair of braces and be poised to type inside of them.
Use \\[up-list] to move forward out of the braces." (interactive) (byte-code "ÀˆÁcˆÂ ‡" [nil "{}" backward-char] 2))

(defun texinfo-insert-@code (&optional arg) "\
Insert the string @code in a texinfo buffer." (interactive "P") (byte-code "ÁˆÂÃ\"‡" [arg nil texinfo-insert-@-with-arg "code"] 3))

(defun texinfo-insert-@dfn (&optional arg) "\
Insert the string @dfn in a texinfo buffer." (interactive "P") (byte-code "ÁˆÂÃ\"‡" [arg nil texinfo-insert-@-with-arg "dfn"] 3))

(defun texinfo-insert-@example nil "\
Insert the string @example in a texinfo buffer." (interactive) (byte-code "ÀˆÁc‡" [nil "@example
"] 1))

(defun texinfo-insert-@file (&optional arg) "\
Insert the string @file in a texinfo buffer." (interactive "P") (byte-code "ÁˆÂÃ\"‡" [arg nil texinfo-insert-@-with-arg "file"] 3))

(defun texinfo-insert-@item nil "\
Insert the string @item in a texinfo buffer." (interactive) (byte-code "ÀˆÁcˆÂ ‡" [nil "@item" newline] 2))

(defun texinfo-insert-@kbd (&optional arg) "\
Insert the string @kbd in a texinfo buffer." (interactive "P") (byte-code "ÁˆÂÃ\"‡" [arg nil texinfo-insert-@-with-arg "kbd"] 3))

(defun texinfo-insert-@node nil "\
Insert the string @node in a texinfo buffer, 
along with a comment indicating the arguments to @node." (interactive) (byte-code "ÀˆÁcˆÂÃ!ˆÄÅ!‡" [nil "@node 
@comment  node-name,  next,  previous,  up" forward-line -1 forward-char 6] 3))

(defun texinfo-insert-@noindent nil "\
Insert the string @noindent in a texinfo buffer." (interactive) (byte-code "ÀˆÁc‡" [nil "@noindent
"] 1))

(defun texinfo-insert-@samp (&optional arg) "\
Insert the string @samp in a texinfo buffer." (interactive "P") (byte-code "ÁˆÂÃ\"‡" [arg nil texinfo-insert-@-with-arg "samp"] 3))

(defun texinfo-insert-@table (&optional arg) "\
Insert the string @table in a texinfo buffer." (interactive "P") (byte-code "ÀˆÁc‡" [nil "@table "] 1))

(defun texinfo-insert-@var (&optional arg) "\
Insert the string @var in a texinfo buffer." (interactive "P") (byte-code "ÁˆÂÃ\"‡" [arg nil texinfo-insert-@-with-arg "var"] 3))

(defun texinfo-show-structure (&optional nodes-too) "\
Show the structure of a Texinfo file.
List the lines in the file that begin with the @-sign commands for
@chapter, @section, and the like.

With optional argument (prefix if interactive), list both the lines
with @-sign commands for @chapter, @section, and the like, and list
@node lines.

Lines with structuring commands beginning in them 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." (interactive "P") (byte-code "ÂˆÃÄ!ˆŠebˆƒ ÅÆ	P!‚ Å	!)ˆÇÈ!ˆebˆÉÊ!‡" [nodes-too texinfo-section-types-regexp nil require texnfo-upd occur "\\(^@node\\)\\|" pop-to-buffer "*Occur*" flush-lines "-----"] 6))

(provide (quote texinfo))
