;ELC ;;; compiled by roland@churchy.gnu.ai.mit.edu on Mon May 29 17:10:54 1995 ;;; from file /gd/gnu/emacs/19.0/lisp/texnfo-upd.el ;;; emacs version 19.28.92.2. ;;; bytecomp version FSF 2.10 ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "`/gd/gnu/emacs/19.0/lisp/texnfo-upd.el' was compiled for Emacs 19")) #@471 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. (defalias 'texinfo-make-menu #[(&optional region-p) " \n!!) \" b  \n \nU1!~\n \"G \n!5` Wk\n \"k \n \"G \n!Y-!" [region-p texinfo-hierarchic-level level texinfo-make-one-menu message "Done...updated the menu. You may save the buffer." "Making or updating menus in %s... " buffer-name region-beginning region-end beginning error "Please mark a region!" texinfo-find-lower-level-node texinfo-find-higher-level-node "Done...updated menus. You may save the buffer."] 3 (#$ . 495) "P"]) #@192 Make a menu of all the appropriate nodes in this section. `Appropriate nodes' are those associated with sections that are at the level specified by LEVEL. Point is left at the end of menu. (defalias 'texinfo-make-one-menu #[(level) " !b`) ! \" by \f  #  \"D!!  \"\f\"." [t case-fold-search texinfo-update-menu-region-beginning level nil beginning texinfo-update-menu-region-end end texinfo-menu-first-node first 0 texinfo-copy-node-name node-name texinfo-make-menu-list new-menu-list texinfo-old-menu-p texinfo-incorporate-descriptions texinfo-incorporate-menu-entry-names texinfo-delete-old-menu texinfo-insert-menu] 4 (#$ . 1523)]) #@215 Update every regular menu in a Texinfo file. Update 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. (defalias 'texinfo-all-menus-update #[(&optional update-all-nodes-p) "d\"eb \" #8ʔb byu`) ` |))X \"!d\"eb!) \"!d\"eb!)\n \"!!)!*" [t nil master-menu-p case-fold-search push-mark message "Checking for a master menu in %s ... " buffer-name re-search-forward texinfo-master-menu-header 0 texinfo-menu-end -1 end-of-detailed-menu-descriptions update-all-nodes-p "Updating all nodes in %s ... " sleep-for 2 mark-active texinfo-update-node "Updating all menus in %s ... " texinfo-make-menu "Updating the master menu in %s... " texinfo-master-menu "Done...updated all the menus. You may save the buffer."] 4 (#$ . 2214) "P"]) #@305 Search forward from point for node at any level lower than LEVEL. Search is limited to the end of the marked region, REGION-END, and to the end of the menu region for the level. Return t if the node is found, else nil. Leave point at the beginning of the node if one is found; else do not move point. (defalias 'texinfo-find-lower-level-node #[(level region-end) "`\nW$\n \"A!\n!#$͔b)" [t case-fold-search region-end re-search-forward "\\(^@node\\).*\n" "\\(\\(\\(^@c\\).*\n\\)" "\\|" "\\(^@ifinfo[ ]*\n\\)\\)?" eval assoc level texinfo-update-menu-lower-regexps texinfo-update-menu-region-end 1] 9 (#$ . 3143)]) #@265 Search forward from point for node at any higher level than argument LEVEL. Search is limited to the end of the marked region, REGION-END. Return t if the node is found, else nil. Leave point at the beginning of the node if one is found; else do not move point. (defalias 'texinfo-find-higher-level-node #[(level region-end) "\nØ\nĘ#8y8\n\"A!#8y)" [t case-fold-search level "top" "chapter" re-search-forward "^@node [ ]*top[ ]*\\(,\\|$\\)" region-end 0 "\\(^@node\\).*\n" "\\(\\(\\(^@c\\).*\n\\)" "\\|" "\\(^@ifinfo[ ]*\n\\)\\)?" eval assoc texinfo-update-menu-higher-regexps] 9 (#$ . 3788)]) #@500 Make a list of node names and their descriptions. Point is left at the end of the menu region, but the menu is not inserted. First argument is position from which to start making menu list; second argument is end of region in which to try to locate entries; third argument is the level of the nodes that are the entries. Node names and descriptions are dotted pairs of strings. Each pair is an element of the list. If the description does not exist, the element consists only of the node name. (defalias 'texinfo-make-menu-list #[(beginning end level) "b\f \" yB\nB\n!)" [beginning nil new-menu-list texinfo-menu-locate-entry-p level end texinfo-copy-node-name "" 1 reverse] 3 (#$ . 4434)]) #@477 Find a node that will be part of menu for this section. First argument is a string such as "section" specifying the general hierarchical level of the menu; second argument is a position specifying the end of the search. The function returns t if the node is found, else nil. It searches forward from point, and leaves point at the beginning of the node. The function finds entries of the same type. Thus `subsections' and `unnumberedsubsecs' will appear in the same menu. (defalias 'texinfo-menu-locate-entry-p #[(level search-end) " \n\"A! #̔b)" [t case-fold-search re-search-forward "\\(^@node\\).*\n" "\\(\\(\\(^@c\\).*\n\\)" "\\|" "\\(^@ifinfo[ ]*\n\\)\\)?" eval assoc level texinfo-update-menu-same-level-regexps search-end 1] 9 (#$ . 5155)]) #@297 Return the node name as a string. Start with point at the beginning of the node line; copy the text after the node command up to the first comma on the line, if any, and return the text as a string. Leaves point at the beginning of the line. If there is no node name, returns an empty string. (defalias 'texinfo-copy-node-name #[nil "vw`Ċ`)#`S`{)" [1 " " nil search-forward "," t] 5 (#$ . 5934)]) #@323 Return the title of the section as a string. The title is used as a description line in the menu when one does not already exist. Move point to the beginning of the appropriate section line by going to the start of the text matched by last regexp searched for, which must have been done by `texinfo-menu-locate-entry-p'. (defalias 'texinfo-copy-section-title #[nil "bvw``{" [7 1 " " nil] 2 (#$ . 6364)]) #@488 Move point to the beginning of the menu for this section, if any. Otherwise move point to the end of the first node of this section. Return t if a menu is found, nil otherwise. First argument is the position of the beginning of the section in which the menu will be located; second argument is the position of the first node within the section. If no menu is found, the function inserts two newlines just before the end of the section, and leaves point there where a menu ought to be. (defalias 'texinfo-old-menu-p #[(beginning first) "b #cyLJȇ" [beginning re-search-forward "^@menu" first goto-end "\n\n" -2 nil t] 4 (#$ . 6789)]) #@485 Copy the old menu line descriptions that exist to the new menu. Point must be at beginning of old menu. If the node-name of the new menu is found in the old menu, insert the old description into the new entry. For this function, the new menu is a list made up of lists of dotted pairs in which the first element of the pair is the node name and the second element the description. The new menu is changed destructively. The old menu is the menu as it appears in the texinfo file. (defalias 'texinfo-incorporate-descriptions #[(new-menu-list) " .@@@@ʰ\n#&@\n!)A *" [new-menu-list texinfo-menu-end end-of-menu new-menu-list-pointer re-search-forward "\\* \\(" "::" "\\|" ".*: " "[., \n]" "\\)" t texinfo-menu-copy-old-description] 10 (#$ . 7443)]) #@637 Copy any old menu entry names to the new menu. Point must be at beginning of old menu. If the node-name of the new menu entry cannot be found in the old menu, do nothing. For this function, the new menu is a list made up of lists of dotted pairs in which the first element of the pair is the node name and the second element is the description (or nil). If we find an existing menu entry name, we change the first element of the pair to be another dotted pair in which the car is the menu entry name and the cdr is the node name. NEW-MENU-LIST is changed destructively. The old menu is the menu as it appears in the texinfo file. (defalias 'texinfo-incorporate-menu-entry-names #[(new-menu-list) " ,@@R\n#%@ɔɕ{@@BA) *" [new-menu-list texinfo-menu-end end-of-menu new-menu-list-pointer re-search-forward "\\* " "\\(.*\\): " "[., \n]" t 1] 5 (#$ . 8234)]) #@193 Return description field of old menu line as string. Point must be located just after the node name. Point left before description. Single argument, END-OF-MENU, is position limiting search. (defalias 'texinfo-menu-copy-old-description #[(end-of-menu) "w!#!#`#y`){ɇ" ["[:., \n ]+" nil looking-at "\\(\\w+\\|@\\)" "\\(^\\* \\|^@end menu\\)" re-search-forward end-of-menu t -1 ""] 5 (#$ . 9131)]) #@104 Return position of end of menu. Does not change location of point. Signal an error if not end of menu. (defalias 'texinfo-menu-end #[nil "# `!)" [re-search-forward "^@end menu" nil t error "Menu does not have an end."] 4 (#$ . 9559)]) #@219 Delete the old menu. Point must be in or after menu. First argument is position of the beginning of the section in which the menu will be located; second argument is the position of the first node within the section. (defalias 'texinfo-delete-old-menu #[(beginning first) "\n\"` \"`)|" [re-search-backward "^@menu" beginning re-search-forward "^@end menu" first] 4 (#$ . 9814)]) #@56 *Column at which descriptions start in a Texinfo menu. (defvar texinfo-column-for-description 32 (#$ . -10208)) #@471 Insert formatted menu at point. Indents the first line of the description, if any, to the value of texinfo-column-for-description. MENU-LIST has form: (("node-name1" . "description") ("node-name2" . "description") ... ) However, the description field might be nil. Also, the node-name field might itself be a dotted pair (call it P) of strings instead of just a string. In that case, the car of P is the menu entry name, and the cdr of P is the node name. (defalias 'texinfo-insert-menu #[(menu-list node-name) "c Dc @@; \"c% @ A#c) @A:\" @A\"cc Ac#" ["@menu\n" menu-list "* " node-part format "%s::" "%s: %s." indent-to texinfo-column-for-description 2 "%s" "\n" "@end menu" message "Updated \"%s\" level menu following node: %s ... " level node-name] 5 (#$ . 10327)]) #@336 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. (defalias 'texinfo-start-menu-description #[nil "yNJ`)#\"w`&!̊`)#H!=!x\f`{ъ`)#w`ӊy`)#}!r!x\f`{֊y`)#x\f`{GU!c!\n߰#vw`x`{!)`x`)|\"\" c-" [nil title node-name end beginning 0 search-forward "* " t " " error "This is not a line in a menu!" "::" looking-at "[ ]*[^ \n]+" "Descriptive text already exists." ": " ":" re-search-forward "[., ]" 1 "., " ".*\n" " \n" "No node name on this line." "." "^@node[ ]+" "\\(" "\\(\\(^@c \\|^@comment\\).*\n\\)" "\\|" "\\(^@ifinfo[ ]*\n\\)" "\\)?" "Cannot find node to match node name in menu entry." indent-to texinfo-column-for-description 2] 10 (#$ . 11163) nil]) #@239 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. (defalias 'texinfo-indent-menu-description #[(column &optional region-p) "~!\f!!7! b` W4 4y\f!!*" [region-p re-search-forward "^@menu" texinfo-menu-indent-description column message "Indented descriptions in menu. You may save the buffer." "Indenting every menu description in region... " region-beginning region-end texinfo-locate-menu-p 1 "Indenting done. You may save the buffer."] 2 (#$ . 12269) "nIndent menu descriptions to (column number): \nP"]) #@258 Indent the Texinfo file menu description to TO-COLUMN-NUMBER. Start with point just after the word `menu' in the `@menu' line and leave point on the line before the `@end menu' line. Does not indent second and subsequent lines of a multi-line description. (defalias 'texinfo-menu-indent-description #[(to-column-number) "` by`)W: #1`w!0`| j)y`)" [beginning-of-next-line texinfo-menu-end 0 re-search-forward "\\* \\(.*::\\|.*: [^., \n]+[., ]\\)" t beginning-white-space " " nil looking-at "\\(@\\|\\w\\)+" to-column-number 1] 5 (#$ . 13007)]) #@1450 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. (defalias 'texinfo-master-menu #[(update-all-nodes-menus-p) "~eb#!# !`) \n #G˔b byu`)`|))y \"!d\"eb! \"!d\"eb! \"!eb !eb\n#˔bc eb!y !y )!)" [t case-fold-search re-search-forward "^@node [ ]*top[ ]*\\(,\\|$\\)" nil error "This buffer needs a Top node!" "^@node" "Too few nodes for a master menu!" first-chapter texinfo-master-menu-header 0 texinfo-menu-end -1 end-of-detailed-menu-descriptions update-all-nodes-menus-p message "Making a master menu in %s ...first updating all nodes... " buffer-name sleep-for 2 push-mark texinfo-update-node "Updating all menus in %s ... " texinfo-make-menu "Now making the master menu in %s... " texinfo-insert-master-menu-list texinfo-master-menu-list "\n" delete-blank-lines "^@menu" "^@end menu" 1 "Done...completed making master menu. You may save the buffer."] 4 (#$ . 13596) "P"]) #@391 Return a list of menu entries and header lines for the master menu. Start with the menu for chapters and indices and then find each following menu and the title of the node preceding that menu. The master menu list has this form: (((... "entry-1-2" "entry-1") "title-1") ((... "entry-2-2" "entry-2-1") "title-2") ...) However, there does not need to be a title field. (defalias 'texinfo-master-menu-list #[nil "  D B !)" [nil master-menu-list texinfo-locate-menu-p texinfo-copy-menu texinfo-copy-menu-title reverse] 2 (#$ . 15997)]) #@58 Format and insert the master menu in the current buffer. (defalias 'texinfo-insert-master-menu-list #[(master-menu-list) "eb#!!`)#%!)y`!`)|c@@!\"[@ӱAJA@@jc@A@\"@A@ֱ@@!@ӱAAoc)" [re-search-forward "^@node [ ]*top[ ]*\\(,\\|$\\)" nil t error "This buffer needs a Top node!" "^@node\\|^@include" first-chapter "^@menu" "Buffer lacks ordinary `Top' menu in which to insert master." 0 "^@end menu" "\n@menu\n" reverse master-menu-list this-very-menu-list message "Inserting chapter menu entry: %s ... " "* " "\n" texinfo-master-menu-header "Inserting menu for %s .... " "\n\n" "@end menu\n\n"] 5 (#$ . 16573)]) #@115 String inserted before lower level entries in Texinfo master menu. It comes after the chapter-level menu entries. (defvar texinfo-master-menu-header "\n --- The Detailed Node Listing ---\n" (#$ . 17309)) #@174 Find the next menu in the texinfo file. If found, leave point after word `menu' on the `@menu' line, and return t. If a menu is not found, do not move point and return nil. (defalias 'texinfo-locate-menu-p #[nil "#" [re-search-forward "\\(^@menu\\)" nil t] 4 (#$ . 17520)]) #@142 Return the title of the section preceding the menu as a string. If such a title cannot be found, return an empty string. Do not move point. (defalias 'texinfo-copy-menu-title #[nil " R#\"yvw``{#*" [t case-fold-search re-search-backward "\\(^@top" "\\|" texinfo-section-types-regexp "\\)" nil 0 1 " " ""] 5 (#$ . 17806)]) #@172 Return the entries of an existing menu as a list. Start with point just after the word `menu' in the `@menu' line and leave point on the line before the `@end menu' line. (defalias 'texinfo-copy-menu #[nil "  b#!`) ` W; #`#`Z){ B +" [nil this-menu-list texinfo-menu-end end-of-menu re-search-backward "^* " t error "No entries in menu." last-entry re-search-forward "\\(^* \\|^@e\\)" 3] 5 (#$ . 18161)]) #@316 Return the specific type of next section, as a string. For example, "unnumberedsubsec". Return "top" for top node. Searches forward for a section. Hence, point must be before the section whose type will be found. Does not move point. Signal an error if the node is not the top node and a section is not found. (defalias 'texinfo-specific-section-type #[nil "#ł(#%y`Tv`{(!*" [t case-fold-search re-search-forward "^@node [ ]*top[ ]*\\(,\\|$\\)" nil "top" texinfo-section-types-regexp 0 1 error "texinfo-specific-section-type: Chapter or section not found."] 4 (#$ . 18610)]) #@133 Return the general hierarchal level of the next node in a texinfo file. Thus, a subheading or appendixsubsec is of type subsection. (defalias 'texinfo-hierarchic-level #[nil " \f\"A)" [t case-fold-search assoc texinfo-specific-section-type texinfo-section-to-generic-alist] 3 (#$ . 19226)]) #@266 Locate beginning of higher level section this section is within. Return position of the beginning of the node line; do not move point. Thus, if this level is subsection, searches backwards for section node. Only argument is a string of the general type of section. (defalias 'texinfo-update-menu-region-beginning #[(level) "\nØ\nĘ eb#y`)6\n\"A!#`))" [t case-fold-search level "top" "chapter" re-search-forward "^@node [ ]*top[ ]*\\(,\\|$\\)" nil 0 re-search-backward "\\(^@node\\).*\n" "\\(\\(\\(^@c\\).*\n\\)" "\\|" "\\(^@ifinfo[ ]*\n\\)\\)?" eval assoc texinfo-update-menu-higher-regexps goto-beginning] 9 (#$ . 19529)]) #@299 Locate end of higher level section this section is within. Return position; do not move point. Thus, if this level is a subsection, find the node for the section this subsection is within. If level is top or chapter, returns end of file. Only argument is a string of the general type of section. (defalias 'texinfo-update-menu-region-end #[(level) " \n\"A!#͔d*" [t case-fold-search re-search-forward "\\(^@node\\).*\n" "\\(\\(\\(^@c\\).*\n\\)" "\\|" "\\(^@ifinfo[ ]*\n\\)\\)?" eval assoc level texinfo-update-menu-higher-regexps nil goto-end 1] 9 (#$ . 20197)]) #@334 Locate first node of the section the menu will be placed in. Return position; do not move point. The menu will be located just before this position. First argument is the position of the beginning of the section in which the menu will be located; second argument is the position of the end of that region; it limits the search. (defalias 'texinfo-menu-first-node #[(beginning end) "by\f#y`)" [beginning 1 re-search-forward "^@node" end t 0] 4 (#$ . 20792)]) #@192 *An alist of specific and corresponding generic Texinfo section types. The keys are strings specifying specific types of section; the values are strings of their corresponding general types. (defvar texinfo-section-to-generic-alist (quote (("top" . "top") ("chapter" . "chapter") ("unnumbered" . "chapter") ("majorheading" . "chapter") ("chapheading" . "chapter") ("appendix" . "chapter") ("section" . "section") ("unnumberedsec" . "section") ("heading" . "section") ("appendixsec" . "section") ("subsection" . "subsection") ("unnumberedsubsec" . "subsection") ("subheading" . "subsection") ("appendixsubsec" . "subsection") ("subsubsection" . "subsubsection") ("unnumberedsubsubsec" . "subsubsection") ("subsubheading" . "subsubsection") ("appendixsubsubsec" . "subsubsection"))) (#$ . -21274)) #@74 Regexp matching chapter, section, other headings (but not the top node). (defvar texinfo-section-types-regexp "^@\\(chapter \\|sect\\|subs\\|subh\\|unnum\\|major\\|chapheading \\|heading \\|appendix\\)" (#$ . 22076)) #@70 Regular expression matching just the Texinfo chapter level headings. (defvar texinfo-chapter-level-regexp "chapter\\|unnumbered \\|appendix \\|majorheading\\|chapheading" (#$ . 22299)) #@70 Regular expression matching just the Texinfo section level headings. (defvar texinfo-section-level-regexp "section\\|unnumberedsec\\|heading \\|appendixsec" (#$ . 22490)) #@73 Regular expression matching just the Texinfo subsection level headings. (defvar texinfo-subsection-level-regexp "subsection\\|unnumberedsubsec\\|subheading\\|appendixsubsec" (#$ . 22667)) #@76 Regular expression matching just the Texinfo subsubsection level headings. (defvar texinfo-subsubsection-level-regexp "subsubsection\\|unnumberedsubsubsec\\|subsubheading\\|appendixsubsubsec" (#$ . 22861)) #@183 *Regexps for searching for same level sections in a Texinfo file. The keys are strings specifying the general hierarchical level in the document; the values are regular expressions. (defvar texinfo-update-menu-same-level-regexps (quote (("top" . "top[ ]+") ("chapter" concat "\\(^@\\)\\(" texinfo-chapter-level-regexp "\\)[ ]*") ("section" concat "\\(^@\\)\\(" texinfo-section-level-regexp "\\)[ ]*") ("subsection" concat "\\(^@\\)\\(" texinfo-subsection-level-regexp "\\)[ ]+") ("subsubsection" concat "\\(^@\\)\\(" texinfo-subsubsection-level-regexp "\\)[ ]+"))) (#$ . -23074)) #@185 *Regexps for searching for higher level sections in a Texinfo file. The keys are strings specifying the general hierarchical level in the document; the values are regular expressions. (defvar texinfo-update-menu-higher-regexps (quote (("top" . "^@node [ ]*DIR") ("chapter" . "^@node [ ]*top[ ]*\\(,\\|$\\)") ("section" concat "\\(^@\\(" texinfo-chapter-level-regexp "\\)[ ]*\\)") ("subsection" concat "\\(^@\\(" texinfo-section-level-regexp "\\|" texinfo-chapter-level-regexp "\\)[ ]*\\)") ("subsubsection" concat "\\(^@\\(" texinfo-subsection-level-regexp "\\|" texinfo-section-level-regexp "\\|" texinfo-chapter-level-regexp "\\)[ ]*\\)"))) (#$ . -23666)) #@184 *Regexps for searching for lower level sections in a Texinfo file. The keys are strings specifying the general hierarchical level in the document; the values are regular expressions. (defvar texinfo-update-menu-lower-regexps (quote (("top" concat "\\(^@\\(" texinfo-chapter-level-regexp "\\|" texinfo-section-level-regexp "\\|" texinfo-subsection-level-regexp "\\|" texinfo-subsubsection-level-regexp "\\)[ ]*\\)") ("chapter" concat "\\(^@\\(" texinfo-section-level-regexp "\\|" texinfo-subsection-level-regexp "\\|" texinfo-subsubsection-level-regexp "\\)[ ]*\\)") ("section" concat "\\(^@\\(" texinfo-subsection-level-regexp "\\|" texinfo-subsubsection-level-regexp "\\)[ ]+\\)") ("subsection" concat "\\(^@\\(" texinfo-subsubsection-level-regexp "\\)[ ]+\\)") ("subsubsection" . "nothing lower"))) (#$ . -24337)) #@822 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 32. (defalias 'texinfo-update-node #[(&optional region-p) "e#! !* U4!}b`\"d#Uy D!-" [region-p nil auto-fill-hook auto-fill-function re-search-backward "^@node" t error "Node line not found before this position." texinfo-update-the-node message "Done...updated the node. You may save the buffer." region-beginning region-end end beginning "Please mark a region!" push-mark re-search-forward 0 "Done...updated nodes in region. You may save the buffer."] 4 (#$ . 25164) "P"]) #@38 Update every node in a Texinfo file. (defalias 'texinfo-every-node-update #[nil "d\"eb!)!)" [push-mark t mark-active texinfo-update-node message "Done...updated every node. You may save the buffer."] 3 (#$ . 26530) nil]) #@107 Update one node. Point must be at the beginning of node line. Leave point at the end of the node line. (defalias 'texinfo-update-the-node #[nil " \"~ !\n!\f͘. N\n\f$\n\f$\n\f$ -" [texinfo-check-for-node-name texinfo-delete-existing-pointers message "Updating node: %s ... " texinfo-copy-node-name t case-fold-search texinfo-hierarchic-level level texinfo-update-menu-region-beginning beginning texinfo-update-menu-region-end end "top" texinfo-top-pointer-case texinfo-insert-pointer next previous up texinfo-clean-up-node-line] 5 (#$ . 26777)]) #@300 Insert pointers in the Top node. This is a special case. The `Next' pointer is a pointer to a chapter or section at a lower hierarchical level in the file. The `Previous' and `Up' pointers are to `(dir)'. Point must be at the beginning of the node line, and is left at the end of the node line. (defalias 'texinfo-top-pointer-case #[nil " #y )ɱ" [texinfo-clean-up-node-line ", " re-search-forward "^@node" nil t 0 texinfo-copy-node-name " " ", (dir), (dir)"] 5 (#$ . 27389)]) #@132 Determine whether the node has a node name. Prompt for one if not. Point must be at beginning of node line. Does not move point. (defalias 'texinfo-check-for-node-name #[nil " vw!? \"  )*" [texinfo-copy-next-section-title initial 1 " " nil looking-at "[^, \n ]+" read-from-minibuffer "Node name (use no @, commas, colons, or apostrophes): " node-name " "] 3 (#$ . 27897)]) #@250 Delete `Next', `Previous', and `Up' pointers. Starts from the current position of the cursor, and searches forward on the line for a comma and if one is found, deletes the rest of the line, including the comma. Leaves point at beginning of line. (defalias 'texinfo-delete-existing-pointers #[nil "`) #`S |)y" [nil eol-point search-forward "," t 0] 4 (#$ . 28301)]) #@840 Move point to section associated with next, previous, or up pointer. Return type of pointer (either 'normal or 'no-pointer). The first and second arguments bound the search for a pointer to the beginning and end, respectively, of the enclosing higher level section. The third argument is a string specifying the general kind of section such as "chapter or "section". When looking for the `Next' pointer, the section found will be at the same hierarchical level in the Texinfo file; when looking for the `Previous' pointer, the section found will be at the same or higher hierarchical level in the Texinfo file; when looking for the `Up' pointer, the section found will be at some level higher in the Texinfo file. The fourth argument (one of 'next, 'previous, or 'up) specifies whether to find the `Next', `Previous', or `Up' pointer. (defalias 'texinfo-find-pointer #[(beginning end level direction) "\n='y\n \"A!Q\f##͂΂\n=Z\n \"A!\n\"A!հ #V͂΂\n=\n\"A!հby`)#͂΂!)" [t case-fold-search direction next 3 re-search-forward "\\(^@node\\).*\n" "\\(\\(\\(^@c\\).*\n\\)\\|\\(^@ifinfo[ ]*\n\\)\\)?" eval assoc level texinfo-update-menu-same-level-regexps end normal no-pointer previous re-search-backward "\\(" "\\|" texinfo-update-menu-higher-regexps "^@node [ ]*top[ ]*\\(,\\|$\\)" "\\)" beginning up 0 error "texinfo-find-pointer: lack proper arguments"] 12 (#$ . 28692)]) #@119 Return the node name preceding the section command. The argument is the kind of section, either normal or no-pointer. (defalias 'texinfo-pointer-name #[(kind) "\n=Ŋy)# \"\n=\" )" [nil name kind normal re-search-backward "^@node" -3 t texinfo-copy-node-name no-pointer " "] 4 (#$ . 30166)]) #@424 Insert the `Next', `Previous' or `Up' node name at point. Move point forward. The first and second arguments bound the search for a pointer to the beginning and end, respectively, of the enclosing higher level section. The third argument is the hierarchical level of the Texinfo file, a string such as "section". The fourth argument is direction towards which the pointer is directed, one of `next, `previous, or 'up. (defalias 'texinfo-insert-pointer #[(beginning end level direction) "\f $!)" [nil ", " texinfo-pointer-name texinfo-find-pointer beginning end level direction] 7 (#$ . 30487)]) #@51 Remove extra commas, if any, at end of node line. (defalias 'texinfo-clean-up-node-line #[nil "x``)|" [nil ", "] 2 (#$ . 31107)]) #@717 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. (defalias 'texinfo-sequential-node-update #[(&optional region-p) "e#! !* U4!}b`\"d#Uy D!-" [region-p nil auto-fill-hook auto-fill-function re-search-backward "^@node" t error "Node line not found before this position." texinfo-sequentially-update-the-node message "Done...sequentially updated the node . You may save the buffer." region-beginning region-end end beginning "Please mark a region!" push-mark re-search-forward 0 "Done...updated the nodes in sequence. You may save the buffer."] 4 (#$ . 31255) "P"]) #@169 Update one node such that the pointers are sequential. A `Next' or `Previous' pointer points to any preceding or following node, regardless of its hierarchical level. (defalias 'texinfo-sequentially-update-the-node #[nil " \"~ ɘ! 5\"\"\" +" [texinfo-check-for-node-name texinfo-delete-existing-pointers message "Sequentially updating node: %s ... " texinfo-copy-node-name t case-fold-search texinfo-hierarchic-level level "top" texinfo-top-pointer-case texinfo-sequentially-insert-pointer next previous up texinfo-clean-up-node-line] 4 (#$ . 32561)]) #@591 Find next or previous pointer sequentially in Texinfo file, or up pointer. Move point to section associated with the pointer. Find point even if it is in a different section. Return type of pointer (either 'normal or 'no-pointer). The first argument is a string specifying the general kind of section such as "chapter or "section". The section found will be at the same hierarchical level in the Texinfo file, or, in the case of the up pointer, some level higher. The second argument (one of 'next, 'previous, or 'up) specifies whether to find the `Next', `Previous', or `Up' pointer. (defalias 'texinfo-sequentially-find-pointer #[(level direction) "\n=yd#ǂUȂU\n=3e#/ǂUȂU\n=R\"A!#NǂUȂU!)" [t case-fold-search direction next 3 re-search-forward texinfo-section-types-regexp normal no-pointer previous re-search-backward up eval assoc level texinfo-update-menu-higher-regexps beginning error "texinfo-sequential-find-pointer: lack proper arguments"] 5 (#$ . 33162)]) #@244 Insert the `Next', `Previous' or `Up' node name at point. Move point forward. The first argument is the hierarchical level of the Texinfo file, a string such as "section". The second argument is direction, one of `next, `previous, or 'up. (defalias 'texinfo-sequentially-insert-pointer #[(level direction) "\f \"!)" [nil ", " texinfo-pointer-name texinfo-sequentially-find-pointer level direction] 5 (#$ . 34194)]) #@251 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. (defalias 'texinfo-insert-node-lines #[(beginning end &optional title-p) "\"  b #\f6yvw``){ By`)#MvWyc!\fvw!vyv\n\n\" y`)#`y !\f!!," [nil last-section-position title end-marker beginning-marker push-mark end t mark-marker beginning re-search-forward texinfo-section-types-regexp title-p 0 1 " " re-search-backward "^@node" -2 "@node\n" backward-char looking-at "[^, \n ]+" " " message "Inserted title %s ... " 3 set-mark "Done inserting node lines and titles. You may save the buffer." "Done inserting node lines. You may save the buffer."] 4 (#$ . 34630) "r\nP"]) #@52 Return a list of the included files in OUTER-FILE. (defalias 'texinfo-multi-file-included-list #[(outer-file) "C!!~eb#/w`x\n`{ B +" [outer-file nil start included-file-list switch-to-buffer find-file-noselect re-search-forward "^@include" t " "] 4 (#$ . 35563)]) #@200 Return the name of the immediately following section as a string. Start with point at the beginning of the node line. Leave point at the same place. If there is no title, returns an empty string. (defalias 'texinfo-copy-next-section-title #[nil "#Ĕ)d #1yvw``{2*" [nil re-search-forward "\\(^@node\\)" t 0 node-end texinfo-section-types-regexp 1 " " ""] 5 (#$ . 35867)]) #@744 Update first node pointers in each file in FILES. Return a list of the node names. The first file in the list is an outer file; the remaining are files included in the outer file with `@include' commands. If optional arg UPDATE-EVERYTHING non-nil, update every menu and pointer in each of the included files. Also update the `Top' level node pointers of the outer file. Requirements: * the first file in the FILES list must be the outer file, * each of the included files must contain exactly one highest hierarchical level node, * this 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. (defalias 'texinfo-multi-file-update #[(files &optional update-everything) "A@!!~eb# \"y yB\nB@!!eb#J!y ֱyAAuA@!!~eb# \"y yB\nB@!!eb# \"y!y y Ai\n*" [t nil menu-list case-fold-search switch-to-buffer find-file-noselect files re-search-forward "^@node" error "No `@node' line found in %s !" buffer-name 0 texinfo-check-for-node-name texinfo-copy-node-name next-node-name "" 1 "^@node [ ]*top[ ]*\\(,\\|$\\)" "This buffer needs a Top node!" texinfo-delete-existing-pointers ", " ", (dir), (dir)" "Top" previous-node-name update-everything texinfo-all-menus-update up-node-name] 7 (#$ . 36285)]) #@137 Insert formatted main menu at point. Indents the first line of the description, if any, to the value of texinfo-column-for-description. (defalias 'texinfo-multi-files-insert-main-menu #[(menu-list) "c Dc @@; \"c% @ A#c) @A:\" @A\"cc Ac" ["@menu\n" menu-list "* " node-part format "%s::" "%s: %s." indent-to texinfo-column-for-description 2 "%s" "\n" "@end menu"] 5 (#$ . 37807)]) #@257 Return master menu list from files in FILES-LIST. Menu entries in each file collected using `texinfo-master-menu-list'. The first file in FILES-LIST must be the outer file; the others must be the files included within it. A main menu must already exist. (defalias 'texinfo-multi-file-master-menu-list #[(files-list) "\n#\n@!!p\"eb \"\nA *" [nil master-menu-list files-list switch-to-buffer find-file-noselect message "Working on: %s " append texinfo-master-menu-list] 4 (#$ . 38232)]) #@1503 Update first node pointers in each file included in OUTER-FILE; create or update the `Top' level node pointers and the 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 in addition to creating or updating pointers in the first @node line in each included file and creating or updating the `Top' level node pointers of the outer file. This does not create or update other menus and 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. Also, update 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. (defalias 'texinfo-multiple-files-update #[(outer-file &optional update-everything make-master-menu) " !  \"\n@!!e!y`)\"F !y`!`)| !J !zeb#tєb byu`)`|)\n!!.eb!yc !yc )!" [texinfo-multi-file-included-list outer-file included-file-list files nil main-menu-list next-node-name previous-node-name "Top" up-node-name texinfo-multi-file-update update-everything switch-to-buffer find-file-noselect texinfo-old-menu-p re-search-forward "^@include" 0 texinfo-incorporate-descriptions "^@end menu" texinfo-multi-files-insert-main-menu make-master-menu texinfo-master-menu-header t texinfo-menu-end -1 end-of-detailed-menu-descriptions texinfo-insert-master-menu-list texinfo-multi-file-master-menu-list "^@menu" "\n" delete-blank-lines 1 message "Multiple files updated."] 5 (#$ . 38749) (byte-code " \" Ă <ł B" [read-string "Name of outer `include' file: " buffer-file-name current-prefix-arg (nil nil) (t nil) (t t)] 3)]) (provide (quote texnfo-upd))