home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / msdos / winemacs / lisp / modes / texnfo-u.elc < prev    next >
Encoding:
Text File  |  1993-06-08  |  30.1 KB  |  378 lines

  1. ;;; compiled by @win386 on Sat Mar 13 14:33:43 1993
  2. ;;; from file c:/src/lucid-19.4/lisp/modes/texnfo-u.el
  3. ;;; emacs version 19.3 Lucid.
  4. ;;; bytecomp version 2.08; 27-aug-92.
  5. ;;; optimization is on.
  6. ;;; this file uses opcodes which do not exist in Emacs18.
  7.  
  8. (if (and (boundp 'emacs-version)
  9.      (or (and (boundp 'epoch::version) epoch::version)
  10.          (string-lessp emacs-version "19")))
  11.     (error "This file was compiled for Emacs19."))
  12.  
  13. (provide 'texnfo-upd)
  14. (fset 'texinfo-make-menu #[(&optional region-p) "¼î┴ ├\n!ê─┼!)ç─╞!ê╟ ╚ ╟ bê┴         U½ä╩╦!êèî~ê╠\n\"½ë┴ ├\n!ê¬p`W½Ü═\n\"½ô┴ ╠\n\"½i┴ ├\n!ê¬p-─╬!ç" [region-p texinfo-hierarchic-level level texinfo-make-one-menu message "Done...updated the menu.  You may save the buffer." "Making or updating menus... " 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 "\
  15. Without any prefix argument, make or update a menu.
  16. Make the menu for the section enclosing the node found following point.
  17.  
  18. Non-nil argument (prefix, if interactive) means make or update menus
  19. for nodes within or part of the marked region.
  20.  
  21. Whenever a menu exists, and is being updated, the descriptions that
  22. are associated with node names in the pre-existing menu are
  23. incorporated into the new menu.  Otherwise, the nodes' section titles
  24. are inserted as descriptions." "P"])
  25. (fset 'texinfo-make-one-menu #[(level) "└┬ !┼ !╟ \" bê╔ \n╦  # ═ \"½ï╬ !ê╧ \"ê╨ \n\".ç" [t case-fold-search texinfo-update-menu-region-beginning level beginning texinfo-update-menu-region-end end texinfo-menu-first-node first texinfo-copy-node-name node-name texinfo-make-menu-list new-menu-list texinfo-old-menu-p texinfo-incorporate-descriptions texinfo-delete-old-menu texinfo-insert-menu] 4 "\
  26. Make a menu of all the appropriate nodes in this section.
  27. `Appropriate nodes' are those associated with sections that are 
  28. at the level specified by LEVEL.  Point is left at the end of menu."])
  29. (fset 'texinfo-all-menus-update #[(&optional update-all-nodes-p) "è└ ê┴┬!êè├ ┼╞#½ä╟╚!ê)    ½Å┴╩!ê╦╠!ê└ ê═╞!ê┴╬!ê╦╠!ê╧╞!ê┴╨!)ç" [mark-whole-buffer message "Checking for a master menu... " re-search-forward texinfo-master-menu-header nil t error "Please remove existing master menu, lest it be partly duplicated!" update-all-nodes-p "First updating all nodes... " sleep-for 2 texinfo-update-node "Updating all menus... " texinfo-make-menu "Done...updated all the menus.  You may save the buffer."] 4 "\
  30. Update every regular menu in a Texinfo file.
  31. You must remove the detailed part of a pre-existing master menu before
  32. running this command, lest it be partly duplicated.
  33.  
  34. If called with a non-nil argument, this function first updates all the
  35. nodes in the buffer before updating the menus." "P"])
  36. (fset 'texinfo-find-lower-level-node #[(level region-end) "`W¡ÿ┴┬├─┼\"A!Q╚!╔#¡â╩öbç" [region-end re-search-forward "\\(^@node\\).*\n" "\\(\\(^@c\\).*\n\\)?" eval assoc level texinfo-update-menu-lower-regexps texinfo-update-menu-region-end t 1] 7 "\
  37. Search forward from point for node at any level lower than LEVEL.
  38. Search is limited to the end of the marked region, REGION-END, 
  39. and to the end of the menu region for the level.
  40.  
  41. Return t if the node is found, else nil.  Leave point at the beginning
  42. of the node if one is found; else do not move point."])
  43. (fset 'texinfo-find-higher-level-node #[(level region-end) "`W¡ò┴┬├─┼\"A!Q╚╔#¡â╩öbç" [region-end re-search-forward "\\(^@node\\).*\n" "\\(\\(^@c\\).*\n\\)?" eval assoc level texinfo-update-menu-higher-regexps nil t 1] 7 "\
  44. Search forward from point for node at any higher level than argument LEVEL.
  45. Search is limited to the end of the marked region, REGION-END.
  46.  
  47. Return t if the node is found, else nil.  Leave point at the beginning
  48. of the node if one is found; else do not move point."])
  49. (fset 'texinfo-make-menu-list #[(beginning end level) "bê┴├
  50. \"½è╞ ╟ B\nB¬p╚\n!)ç" [beginning nil new-menu-list texinfo-menu-locate-entry-p level end texinfo-copy-node-name texinfo-copy-section-title reverse] 3 "\
  51. Make a list of node names and their descriptions.
  52. Point is left at the end of the menu region, but the menu is not inserted.
  53.  
  54. First argument is position from which to start making menu list; 
  55. second argument is end of region in which to try to locate entries;
  56. third argument is the level of the nodes that are the entries.
  57.  
  58. Node names and descriptions are dotted pairs of strings.  Each pair is
  59. an element of the list.  If the description does not exist, the
  60. element consists only of the node name."])
  61. (fset 'texinfo-menu-locate-entry-p #[(level search-end) "└┴┬├─
  62. \"A!Q╚#¡â╔öbç" [re-search-forward "\\(^@node\\).*\n" "\\(\\(^@c\\).*\n\\)?" eval assoc level texinfo-update-menu-same-level-regexps search-end t 1] 7 "\
  63. Find a node that will be part of menu for this section.
  64. First argument is a string such as \"section\" specifying the general
  65. hierarchical level of the menu; second argument is a postion
  66. specifying the end of the search.
  67.  
  68. The function returns t if the node is found, else nil.  It searches
  69. forward from point, and leaves point at the beginning of the node.
  70.  
  71. The function finds entries of the same type.  Thus `subsections' and
  72. `unnumberedsubsecs' will appear in the same menu."])
  73. (fset 'texinfo-copy-node-name #[nil "è└vê┴┬wê`├─è┬ê`)┼#½ä`S¬ä┬ê`{)ç" [1 "     " nil search-forward "," t] 5 "\
  74. Return the node name as a string.
  75.  
  76. Start with point at the beginning of the node line; copy the text
  77. after the node command up to the first comma on the line, if any, and
  78. return the text as a string.  Leaves point at the beginning of the
  79. line.  If there is no node name, returns an empty string."])
  80. (fset 'texinfo-copy-section-title #[nil "└öbê┴vê┬├wê`├ê`{ç" [4 1 "     " nil] 2 "\
  81. Return the title of the section as a string.
  82. The title is used as a description line in the menu when one does not
  83. already exist.
  84.  
  85. Move point to the beginning of the appropriate section line by going
  86. to the start of the text matched by last regexp searched for, which
  87. must have been done by `texinfo-menu-locate-entry-p'."])
  88. (fset 'texinfo-old-menu-p #[(beginning first) "bê┴┬ ─#¼ê┼cê╞yê╟ç╚ç" [beginning re-search-forward "^@menu" first goto-end "\n\n" -2 nil t] 4 "\
  89. Move point to the beginning of the menu for this section, if any.
  90. Otherwise move point to the end of the first node of this section.
  91. Return t if a menu is found, nil otherwise.
  92.  
  93. First argument is the position of the beginning of the section in which
  94. the menu will be located; second argument is the position of the first
  95. node within the section.
  96.  
  97. If no menu is found, the function inserts two newlines just before the
  98. end of the section, and leaves point there where a menu ought to be."])
  99. (fset 'texinfo-incorporate-descriptions #[(new-menu-list) "┴ ½Üè─┼@@P\n╞#½ç@╟\n!íê)Aë¼f ë*ç" [new-menu-list texinfo-menu-end end-of-menu new-menu-list-pointer search-forward "* " t texinfo-menu-copy-old-description] 5 "\
  100. Copy the old menu line descriptions that exist to the new menu.
  101.  
  102. Point must be at beginning of old menu.
  103.  
  104. If the node-name of the new menu entry cannot be found in the old
  105. menu, use the new section title for the description, but if the
  106. node-name of the new menu is found in the old menu, replace the
  107. section title with the old description, whatever it may be.
  108.  
  109. For this function, the new menu is a list made up of lists of dotted
  110. pairs in which the first element of the pair is the node name and the
  111. second element the description. The new menu is changed destructively.
  112. The old menu is the menu as it appears in the texinfo file."])
  113. (fset '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 "\
  114. Return description field of old menu line as string.
  115. Point must be located just after the node name.  Point left before description.
  116. Single argument, END-OF-MENU, is position limiting search."])
  117. (fset 'texinfo-menu-end #[nil "è└┴┬├#½â`¬â─┼!)ç" [re-search-forward "^@end menu" nil t error "Menu does not have an end."] 4 "\
  118. Return position of end of menu. Does not change location of point.
  119. Signal an error if not end of menu."])
  120. (fset 'texinfo-delete-old-menu #[(beginning first) "└┴\n\"ê`è├─
  121. \"ê`)|ç" [re-search-backward "^@menu" beginning re-search-forward "^@end menu" first] 4 "\
  122. Delete the old menu.  Point must be in or after menu.
  123. First argument is position of the beginning of the section in which
  124. the menu will be located; second argument is the position of the first
  125. node within the section."])
  126. (defvar texinfo-column-for-description 32 "\
  127. *Column at which descriptions start in a Texinfo menu.")
  128. (fset 'texinfo-insert-menu #[(menu-list node-name) "└cê    ½¬    @A½ù┬├    @@\"cê─
  129. ╞\"ê┬╟    @A\"cê¬ê┬╚    @@\"cê    Aë¼V╔cê╩╦ 
  130. #ç" ["@menu\n" menu-list format "* %s::" indent-to texinfo-column-for-description 2 "%s\n" "* %s::\n" "@end menu" message "Updated \"%s\" level menu following node: %s ... " level node-name] 5 "\
  131. Insert formatted menu at point.
  132. Indents the first line of the description, if any, to the value of
  133. texinfo-column-for-description.
  134.  
  135. MENU-LIST has form:
  136.  
  137.     ((\"node-name1\" . \"description\") 
  138.     (\"node-name\" . \"description\") ... )
  139.  
  140. However, there does not need to be a description field."])
  141. (fset 'texinfo-indent-menu-description #[(column &optional region-p) "èî~ê¼ì┴┬!ê├ !ê┼╞!¬₧┼╟!ê╚ bê`╔ W½ì╩ ½ë╦yê├ !ê¬m┼╠!*ç" [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 "\
  142. Indent every description in menu following point to COLUMN.  
  143. Non-nil argument (prefix, if interactive) means indent every
  144. description in every menu in the region.  Does not indent second and
  145. subsequent lines of a multi-line description." "nIndent menu descriptions to (column number): \nP"])
  146. (fset 'texinfo-menu-indent-description #[(to-column-number) "`ëè┴ bê┬yê`)W¡ª├─┴ ┼#½û`╟╚wê╔╩!½ë`|ê jê)╠yê`ë¬M)ç" [beginning-of-next-line texinfo-menu-end 0 search-forward "::" t beginning-white-space "     " nil looking-at "\\(@\\|\\w\\)+" to-column-number 1] 5 "\
  147. Indent the Texinfo file menu description to TO-COLUMN-NUMBER.
  148. Start with point just after the word `menu' in the `@menu' line and
  149. leave point on the line before the `@end menu' line.  Does not indent
  150. second and subsequent lines of a multi-line description."])
  151. (fset 'texinfo-master-menu #[(update-all-nodes-menus-p) "~êebê└┴┬├#¼ä─┼!êè└╞!ê`)└├#½Ö╔öbêè╩ bê╔yê╦uê`) ` |ê))
  152. ½₧╬╧!ê╨╤!ê╥ ê╙├!ê╬╘!ê╨╤!ê╥ ê╒├!ê╬╓!ê╨╤!êebê╫╪ !êèebê└!ê╔öbê┘cê┌ ê█▄!ê╦yê┌ ê└▌!ê▐yê┌ ê)╬▀!ç" [re-search-forward "^@node [     ]*top" nil t error "This buffer needs a Top node!" "^@node" 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...first updating all nodes... " sleep-for 2 mark-whole-buffer texinfo-update-node "Updating all menus... " texinfo-make-menu "Now making the master menu... " texinfo-insert-master-menu-list texinfo-master-menu-list "\n" delete-blank-lines re-search-backward "^@menu" "^@end menu" 1 "Done...completed making master menu.  You may save the buffer."] 4 "\
  153. Make a master menu for a whole Texinfo file.
  154. Non-nil argument (prefix, if interactive) means first update all
  155. existing nodes and menus.  Remove pre-existing master menu, if there is one.
  156.  
  157. This function creates a master menu that follows the top node.  The
  158. master menu includes every entry from all the other menus.  It
  159. replaces any existing ordinary menu that follows the top node.
  160.  
  161. If called with a non-nil argument, this function first updates all the
  162. menus in the buffer (incorporating descriptions from pre-existing
  163. menus) before it constructs the master menu.
  164.  
  165. The function removes the detailed part of an already existing master
  166. menu.  This action depends on the pre-exisitng master menu using the
  167. standard `texinfo-master-menu-header'.
  168.  
  169. The master menu has the following format, which is adapted from the
  170. recommendation in the Texinfo Manual:
  171.  
  172.    * The first part contains the major nodes in the Texinfo file: the
  173.      nodes for the chapters, chapter-like sections, and the major
  174.      appendices.  This includes the indices, so long as they are in
  175.      chapter-like sections, such as unnumbered sections.
  176.  
  177.    * The second and subsequent parts contain a listing of the other,
  178.      lower level menus, in order.  This way, an inquirer can go
  179.      directly to a particular node if he or she is searching for
  180.      specific information.
  181.  
  182. Each of the menus in the detailed node listing is introduced by the
  183. title of the section containing the menu." "P"])
  184. (fset 'texinfo-master-menu-list #[nil "└┬ ½è├ ─ D    B¬r┼    !)ç" [nil master-menu-list texinfo-locate-menu-p texinfo-copy-menu texinfo-copy-menu-title reverse] 2 "\
  185. Return a list of menu entries and header lines for the master menu.
  186.  
  187. Start with the menu for chapters and indices and then find each
  188. following menu and the title of the node preceding that menu.
  189.  
  190. The master menu list has this form:
  191.  
  192.     (((... \"entry-1-2\"  \"entry-1\") \"title-1\")
  193.       ((... \"entry-2-2\"  \"entry-2-1\") \"title-2\")
  194.       ...)
  195.  
  196. However, there does not need to be a title field."])
  197. (fset 'texinfo-insert-master-menu-list #[(master-menu-list) "ebê└┴!ê┬yê`è└├!ê`)|êè─cê┼@@!╚╔\"ê½É╩@╦▒êAë¼pA cê½╢╚═@A@\"ê╦@A@╬▒ê┼@@!ë½É╩@╦▒êAë¼pAë¼J╧c)ç" [re-search-forward "^@menu" 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"] 4 "\
  198. Format and insert the master menu in the current buffer."])
  199. (defvar texinfo-master-menu-header "\n --- The Detailed Node Listing ---\n" "\
  200. String inserted before lower level entries in Texinfo master menu.
  201. It comes after the chapter-level menu entries.")
  202. (fset 'texinfo-locate-menu-p #[nil "└┴┬├#ç" [re-search-forward "\\(^@menu\\)" nil t] 4 "\
  203. Find the next menu in the texinfo file.
  204. If found, leave point after word `menu' on the `@menu' line, and return t.
  205. If a menu is not found, do not move point and return nil."])
  206. (fset 'texinfo-copy-menu-title #[nil "è└┴┬├─┼ \"A!Q╟╚#½ä╔ ¬ü╩)ç" [re-search-backward "\\(^@node\\).*\n" "\\(\\(^@c\\).*\n\\)?" eval assoc texinfo-hierarchic-level texinfo-update-menu-higher-regexps nil t texinfo-copy-section-title " "] 7 "\
  207. Return the title of the section preceding the menu as a string.
  208. If such a title cannot be found, return an empty string.  Do not move
  209. point."])
  210. (fset 'texinfo-copy-menu #[nil "└┬ è bê─┼!ê`)`W½Ö╟┼ ╚#½s`è╟╔└╚#ê`╩Z){    B¬a    +ç" [nil this-menu-list texinfo-menu-end end-of-menu re-search-backward "^* " last-entry re-search-forward t "\\(^* \\|^@e\\)" 3] 5 "\
  211. Return the entries of an existing menu as a list.
  212. Start with point just after the word `menu' in the `@menu' line
  213. and leave point on the line before the `@end menu' line."])
  214. (fset 'texinfo-specific-section-type #[nil "è└┴┬├#½â─¬û└
  215. ┬├#½î╞yê`T╟vê`{¬â╚╔!)ç" [re-search-forward "^@node [     ]*top" nil t "top" texinfo-section-types-regexp 0 1 error "texinfo-specific-section-type: Chapter or section not found."] 4 "\
  216. Return the specific type of next section, as a string.
  217. For example, \"unnumberedsubsec\".  Return \"top\" for top node.
  218.  
  219. Searches forward for a section.  Hence, point must be before the
  220. section whose type will be found.  Does not move point.  Signal an
  221. error if the node is not the top node and a section is not found."])
  222. (fset 'texinfo-hierarchic-level #[nil "└┴ \n\"Aç" [assoc texinfo-specific-section-type texinfo-section-to-generic-alist] 3 "\
  223. Return the general hierarchal level of the next node in a texinfo file.
  224. Thus, a subheading or appendixsubsec is of type subsection."])
  225. (fset 'texinfo-update-menu-region-beginning #[(level) "┴ÿ½èè┬├─┼#ê`)ç╞ÿ½èè╟├─┼#ê`)çè╟╚╔╩╦ \"A!Q─═#ê`)ç" [level "top" re-search-forward "^@node [     ]*top" nil t "chapter" re-search-backward "\\(^@node\\).*\n" "\\(\\(^@c\\).*\n\\)?" eval assoc texinfo-update-menu-higher-regexps goto-beginning] 7 "\
  226. Locate beginning of higher level section this section is within.
  227. Return position of the beginning of the node line; do not move point.
  228. Thus, if this level is subsection, searches backwards for section node.
  229. Only argument is a string of the general type of section."])
  230. (fset 'texinfo-update-menu-region-end #[(level) "è└┴┬├─
  231. \"A!Q╟╚#½ä╔ö¬üd)ç" [re-search-forward "\\(^@node\\).*\n" "\\(\\(^@c\\).*\n\\)?" eval assoc level texinfo-update-menu-higher-regexps nil goto-end 1] 7 "\
  232. Locate end of higher level section this section is within.
  233. Return position; do not move point.  Thus, if this level is a
  234. subsection, find the node for the section this subsection is within.
  235. If level is top or chapter, returns end of file.  Only argument is a
  236. string of the general type of section."])
  237. (fset 'texinfo-menu-first-node #[(beginning end) "èbê┴yê┬├ ┼#ê╞yê`)ç" [beginning 1 re-search-forward "^@node" end t 0] 4 "\
  238. Locate first node of the section the menu will be placed in.  
  239. Return position; do not move point.
  240. The menu will be located just before this position.  
  241.  
  242. First argument is the position of the beginning of the section in
  243. which the menu will be located; second argument is the position of the
  244. end of that region; it limits the search."])
  245. (defvar texinfo-section-to-generic-alist '(("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")) "\
  246. *An alist of specific and corresponding generic Texinfo section types.
  247. The keys are strings specifying specific types of section; the values
  248. are strings of their corresponding general types.")
  249. (defvar texinfo-section-types-regexp "^@\\(chapter \\|sect\\|sub\\|unnum\\|major\\|heading \\|appendix\\)" "\
  250. Regexp matching chapter, section, other headings (but not the top node).")
  251. (defvar texinfo-chapter-level-regexp "chapter\\|unnumbered \\|appendix \\|majorheading\\|chapheading" "\
  252. Regular expression matching just the Texinfo chapter level headings.")
  253. (defvar texinfo-section-level-regexp "section\\|unnumberedsec\\|heading \\|appendixsec" "\
  254. Regular expression matching just the Texinfo section level headings.")
  255. (defvar texinfo-subsection-level-regexp "subsection\\|unnumberedsubsec\\|subheading\\|appendixsubsec" "\
  256. Regular expression matching just the Texinfo subsection level headings.")
  257. (defvar texinfo-subsubsection-level-regexp "subsubsection\\|unnumberedsubsubsec\\|subsubheading\\|appendixsubsubsec" "\
  258. Regular expression matching just the Texinfo subsubsection level headings.")
  259. (defvar texinfo-update-menu-same-level-regexps '(("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 "\\)[     ]+")) "\
  260. *Regexps for searching for same level sections in a Texinfo file.
  261. The keys are strings specifying the general hierarchical level in the
  262. document; the values are regular expressions.")
  263. (defvar texinfo-update-menu-higher-regexps '(("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 "\\)[     ]*\\)")) "\
  264. *Regexps for searching for higher level sections in a Texinfo file.
  265. The keys are strings specifying the general hierarchical level in the
  266. document; the values are regular expressions.")
  267. (defvar texinfo-update-menu-lower-regexps '(("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")) "\
  268. *Regexps for searching for lower level sections in a Texinfo file.
  269. The keys are strings specifying the general hierarchical level in the
  270. document; the values are regular expressions.")
  271. (fset 'texinfo-update-node #[(&optional region-p) "¼ò┴├─e┼#¼ä╞╟!ê╚ ê╔╩!)ç┴╦ ╠ 
  272. 
  273. U½ä╞╧!êî
  274. }êbê╨ ê╤─d┼#½ê╥yê╚ ê¬q╔╙!,ç" [region-p nil auto-fill-hook 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 "\
  275. Without any prefix argument, update the node in which point is located.
  276. Non-nil argument (prefix, if interactive) means update the nodes in the
  277. marked region.
  278.  
  279. The functions for creating or updating nodes and menus, and their
  280. keybindings, are:
  281.  
  282.     texinfo-update-node (&optional region-p)    \\[texinfo-update-node]
  283.     texinfo-every-node-update ()                \\[texinfo-every-node-update]
  284.     texinfo-sequential-node-update (&optional region-p)
  285.  
  286.     texinfo-make-menu (&optional region-p)      \\[texinfo-make-menu]
  287.     texinfo-all-menus-update ()                 \\[texinfo-all-menus-update]
  288.     texinfo-master-menu ()
  289.  
  290.     texinfo-indent-menu-description (column &optional region-p)
  291.  
  292. The `texinfo-column-for-description' variable specifies the column to
  293. which menu descriptions are indented. Its default value is 24." "P"])
  294. (fset 'texinfo-every-node-update #[nil "è└ ê┴┬!ê├─!)ç" [mark-whole-buffer texinfo-update-node t message "Done...updated every node.       You may save the buffer."] 2 "\
  295. Update every node in a Texinfo file." nil])
  296. (fset 'texinfo-update-the-node #[nil "└ ê┴ ê┬├─ \"êî~ê┼╟ ╔!\n╦! ═ÿ½ä╬ ¬á╧\n ╨$ê╧\n ╤$ê╧\n ╥$ê╙ -ç" [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 "\
  297. Update one node.  Point must be at the beginning of node line.  
  298. Leave point at the end of the node line."])
  299. (fset '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 "\
  300. Insert pointers in the Top node.  This is a special case.
  301.  
  302. The `Next' pointer is a pointer to a chapter or section at a lower
  303. hierarchical level in the file.  The `Previous' and `Up' pointers are
  304. to `(dir)'.  Point must be at the beginning of the node line, and is
  305. left at the end of the node line."])
  306. (fset 'texinfo-check-for-node-name #[nil "è└vê┴┬wê├─!?¡ï┼╞!╚▒))ç" [1 "     " nil looking-at "[^,    \n ]+" read-from-minibuffer "Node name: " node-name " "] 2 "\
  307. Determine whether the node has a node name.  Prompt for one if not.
  308. Point must be at beginning of node line.  Does not move point."])
  309. (fset 'texinfo-delete-existing-pointers #[nil "└┴è┬ê`)├#½ê`Sbê─┬!ê┼yê┬ç" [search-forward "," nil t kill-line 0] 4 "\
  310. Delete `Next', `Previous', and `Up' pointers.  
  311. Starts from the current position of the cursor, and searches forward
  312. on the line for a comma and if one is found, deletes the rest of the
  313. line, including the comma.  Leaves point at beginning of line."])
  314. (fset 'texinfo-find-pointer #[(beginning end level direction) "┴=½ù┬yê├─┼\"A!╔#½é╩ç╦ç╠=½ó═╬─┼\"A!╧─┼\"A!╤░╔#½é╩ç╦ç╙=½ö═─┼\"A!╔#½é╩ç╦ç╘╒!ç" [direction next 3 re-search-forward eval assoc level texinfo-update-menu-same-level-regexps end t normal no-pointer previous re-search-backward "\\(" "\\|" texinfo-update-menu-higher-regexps "\\)" beginning up error "texinfo-find-pointer: lack proper arguments"] 8 "\
  315. Move point to section associated with next, previous, or up pointer.
  316. Return type of pointer (either 'normal or 'no-pointer).
  317.  
  318. The first and second arguments bound the search for a pointer to the
  319. beginning and end, respectively, of the enclosing higher level
  320. section.  The third argument is a string specifying the general kind
  321. of section such as \"chapter or \"section\".  When looking for the
  322. `Next' pointer, the section found will be at the same hierarchical
  323. level in the Texinfo file; when looking for the `Previous' pointer,
  324. the section found will be at the same or higher hierarchical level in
  325. the Texinfo file; when looking for the `Up' pointer, the section found
  326. will be at some level higher in the Texinfo file.  The fourth argument
  327. (one of 'next, 'previous, or 'up) specifies whether to find the
  328. `Next', `Previous', or `Up' pointer."])
  329. (fset 'texinfo-pointer-name #[(kind) "└\n├=½æ└ê─┼è╞y)╟#ê╚ ¬ç\n╔=½é╩    )ç" [nil name kind normal re-search-backward "^@node" -3 t texinfo-copy-node-name no-pointer " "] 4 "\
  330. Return the node name preceding the section command.
  331. The argument is the kind of section, either normal or no-pointer."])
  332. (fset 'texinfo-insert-pointer #[(beginning end level direction) "└ê┴è┬├
  333. $!)▒ç" [nil ", " texinfo-pointer-name texinfo-find-pointer beginning end level direction] 7 "\
  334. Insert the `Next', `Previous' or `Up' node name at point.
  335. Move point forward.  
  336.  
  337. The first and second arguments bound the search for a pointer to the
  338. beginning and end, respectively, of the enclosing higher level
  339. section.  The third argument is the hierarchical level of the Texinfo
  340. file, a string such as \"section\".  The fourth argument is direction
  341. towards which the pointer is directed, one of `next, `previous, or
  342. 'up."])
  343. (fset 'texinfo-clean-up-node-line #[nil "└ê┴└xê`è└ê`)|ç" [nil ", "] 2 "\
  344. Remove extra commas, if any, at end of node line."])
  345. (fset 'texinfo-sequential-node-update #[(&optional region-p) "¼ò┴├─e┼#¼ä╞╟!ê╚ ê╔╩!)ç┴╦ ╠ 
  346. 
  347. U½ä╞╧!êî
  348. }êbê╨ ê╤─d┼#½ê╥yê╚ ê¬q╔╙!,ç" [region-p nil auto-fill-hook 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 "\
  349. Update one node (or many) in a Texinfo file with sequential pointers.
  350.  
  351. This function causes the `Next' or `Previous' pointer to point to the
  352. immediately preceding or following node, even if it is at a higher or
  353. lower hierarchical level in the document.  Continually pressing `n' or
  354. `p' takes you straight through the file.
  355.  
  356. Without any prefix argument, update the node in which point is located.
  357. Non-nil argument (prefix, if interactive) means update the nodes in the
  358. marked region.
  359.  
  360. This command makes it awkward to navigate among sections and
  361. subsections; it should be used only for those documents that are meant
  362. to be read like a novel rather than a reference, and for which the
  363. Info `g*' command is inadequate." "P"])
  364. (fset 'texinfo-sequentially-update-the-node #[nil "└ ê┴ ê┬├─ \"êî~ê┼╟ ë╔ÿ½ä╩ ¬ö╦╠\"ê╦═\"ê╦╬\"ê╧ +ç" [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 "\
  365. Update one node such that the pointers are sequential. 
  366. A `Next' or `Previous' pointer points to any preceding or following node,
  367. regardless of its hierarchical level."])
  368. (fset 'texinfo-sequentially-find-pointer #[(level direction) "┴=½Ä┬yê├ d┼#½é╞ç╟ç╚=½ï╔ e┼#½é╞ç╟ç╩=½ö╔╦╠
  369. \"A!┼#½é╞ç╟ç╨╤!ç" [direction next 3 re-search-forward texinfo-section-types-regexp t 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 "\
  370. Find next or previous pointer sequentially in Texinfo file, or up pointer.
  371. Move point to section associated with the pointer.  Find point even if
  372. it is in a different section.
  373.  
  374. Return type of pointer (either 'normal or 'no-pointer).
  375.  
  376. The first argument is a string specifying the general kind of section
  377. such as \"chapter or \"section\".  The section found will be at the
  378. same hierarchical level in the Texinfo file, or, in the case of the up
  379. pointer, some level higher.  The second argument (one of 'next,
  380. 'previous, or 'up) specifies whether to find the `Next', `Previous',
  381. or `Up' pointer."])
  382. (fset 'texinfo-sequentially-insert-pointer #[(level direction) "└ê┴è┬├
  383. \"!)▒ç" [nil ", " texinfo-pointer-name texinfo-sequentially-find-pointer level direction] 5 "\
  384. Insert the `Next', `Previous' or `Up' node name at point.
  385. Move point forward.  
  386.  
  387. The first argument is the hierarchical level of the Texinfo file, a
  388. string such as \"section\".  The second argument is direction, one of
  389. `next, `previous, or 'up."])
  390. (fset 'texinfo-insert-node-lines #[(&optional title-p) "è└ ┴ ëbê`\nW½┌─
  391. ╞╟#ê╚yê╔vê╩╞wê`è╞ê`){ ╠═è╬yê`)╧#½à╔vê¬è╚yê╨cê╤╔!ê½¢╩╞wê╙╘!¼Æ╚yê╔vê╒ ▒ê╓╫ \"ê╪yê)¬!+½ä╓┘!ç╓┌!ç" [region-beginning region-end end-region begin-region re-search-forward texinfo-section-types-regexp nil end 0 1 "     " title re-search-backward "^@node" -3 t "@node\n" backward-char title-p looking-at "[^,    \n ]+" " " message "Inserted title %s ... " 3 "Done inserting node lines and titles.  You may save the buffer." "Done inserting node lines.  You may save the buffer."] 5 "\
  392. Insert missing `@node' lines in region of Texinfo file.
  393. Non-nil argument (prefix, if interactive) means also to insert the
  394. section titles as node names; and also to insert the section titles as
  395. node names in pre-existing @node lines that lack names." "P"])
  396.