texinfmt.elc 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. (defvar texinfo-format-syntax-table nil)
  2. (defvar texinfo-vindex)
  3. (defvar texinfo-findex)
  4. (defvar texinfo-cindex)
  5. (defvar texinfo-pindex)
  6. (defvar texinfo-tindex)
  7. (defvar texinfo-kindex)
  8. (defvar texinfo-last-node)
  9. (defvar texinfo-node-names)
  10. (if texinfo-format-syntax-table nil (setq texinfo-format-syntax-table (make-syntax-table)) (modify-syntax-entry 34 " " texinfo-format-syntax-table) (modify-syntax-entry 92 " " texinfo-format-syntax-table) (modify-syntax-entry 64 "\\" texinfo-format-syntax-table) (modify-syntax-entry 17 "\\" texinfo-format-syntax-table) (modify-syntax-entry 91 "." texinfo-format-syntax-table) (modify-syntax-entry 93 "." texinfo-format-syntax-table) (modify-syntax-entry 40 "." texinfo-format-syntax-table) (modify-syntax-entry 41 "." texinfo-format-syntax-table) (modify-syntax-entry 123 "(}" texinfo-format-syntax-table) (modify-syntax-entry 125 "){" texinfo-format-syntax-table) (modify-syntax-entry 39 "." texinfo-format-syntax-table))
  11. (defun texinfo-format-buffer (&optional notagify) "\
  12. Process the current buffer as texinfo code, into an Info file.
  13. The Info file output is generated in a buffer
  14. visiting the Info file names specified in the @setfilename command.
  15. Non-nil argument (prefix, if interactive) means don't make tag table
  16. and don't split the file if large. You can use Info-tagify and
  17. Info-split to do these manually." (interactive "P") (byte-code "ˆÃÄ!ˆÅ ˆ ƒ‚2Æ ÇV…\"Äȉ!ˆÉ ˆÆ ÊV…2Äˉ!ˆÌ ˆÄtƒ=Í‚>ÎP!)‡" [lastmessage notagify nil "Formatting Info file..." message texinfo-format-buffer-1 buffer-size 30000 "Making tags table for Info file..." Info-tagify 100000 "Splitting Info file..." Info-split "done. Now save it." "done."] 11))
  18. (defun texinfo-format-buffer-1 nil (byte-code "ÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔp   
  19.  ŠebˆØÙ!ˆ`‰ˆÚ ‰)ˆÛ!ˆÜ ˆÝ!ˆÞ ˆß!ˆebˆØÙ!ˆà ˆáe`\"ˆdbˆâãÔÕ#…xá`d\"ˆebˆØäÔÕ#…‹åæ!ˆ‚|ˆebˆØçÔÕ#…žåæ!ˆ‚�ˆebˆØèÔÕ#…-`éZfê=…ÊŠëì!ˆ`íî!ˆïð`Z\"ðU))ƒÑÔ‚)ñò!ƒðgóUƒæá`S`T\"‚íôì!ˆëð!‚)`S‰ˆõg!öUƒ÷ð!‚ëð!ˆ`‰ˆøù
  20. T \"!‰ˆ úNƒ&û!‚(ü )ˆ‚¢ˆ …Aé @8bˆýþ @@\"ˆebˆØîÔÕ#…Xôì!ˆëð!ˆ‚Eˆebˆÿ 
  21.  &.‡" [texinfo-format-filename texinfo-example-start texinfo-command-start texinfo-command-end texinfo-command-name texinfo-last-node texinfo-vindex texinfo-findex texinfo-cindex texinfo-pindex texinfo-tindex texinfo-kindex texinfo-stack texinfo-node-names outfile fill-column input-buffer input-directory default-directory texinfo-format-syntax-table nil t opoint cmd search-forward "@setfilename" texinfo-parse-line-arg find-file texinfo-mode set-syntax-table erase-buffer insert-buffer-substring beginning-of-line delete-region search-backward "@bye" "``" replace-match "\"" "''" "@" 2 17 forward-char -1 skip-chars-backward "" logand 1 looking-at "[@{}'` *]" 42 delete-char char-syntax 119 forward-word intern buffer-substring texinfo-format funcall texinfo-unsupported error "Unterminated @%s" list] 43))
  22. (put (quote begin) (quote texinfo-format) (quote texinfo-format-begin))
  23. (defun texinfo-format-begin nil (byte-code "ÀÁ!‡" [texinfo-format-begin-end texinfo-format] 2))
  24. (put (quote end) (quote texinfo-format) (quote texinfo-format-end))
  25. (defun texinfo-format-end nil (byte-code "ÀÁ!‡" [texinfo-format-begin-end texinfo-end] 2))
  26. (defun texinfo-format-begin-end (prop) (byte-code "ÃÄ !‰ˆ
  27. N‰ˆ ƒÅ !‚Æ ‡" [texinfo-command-name cmd prop intern texinfo-parse-line-arg funcall texinfo-unsupported] 5))
  28. (defun texinfo-parse-line-arg nil (byte-code "bˆ`ÃÄ!ƒÅÄ!ˆ`‰ˆÆ ˆ`T‰‚9ÃÇ!ƒ6`T‰ˆÈÉ!ˆ`‰ˆÊË!‚9ÌÍ!ˆÎ `\"l…EÊÉ!ˆ)‡" [texinfo-command-end start t looking-at " " skip-chars-forward end-of-line "{" forward-list 1 forward-char -1 error "Invalid texinfo command arg format" buffer-substring] 11))
  29. (defun texinfo-parse-arg-discard nil (byte-code "À Á ˆ‡" [texinfo-parse-line-arg texinfo-discard-command] 4))
  30. (defun texinfo-discard-command nil (byte-code "Â \"‡" [texinfo-command-start texinfo-command-end delete-region] 3))
  31. (defun texinfo-format-parse-line-args nil (byte-code "`SÆÆÆÆÇÈ!ˆl?…N`‰ˆÉÊ!ˆ`‰ˆn…( S‰ˆËÌ!ˆÍÈ!ˆ`‰ˆ
  32. V…?Î
  33. \" B‰ˆ bˆÇÈ!ˆ‚ˆl…VËÏ!ˆ`‰ˆÐ !-‡" [start next beg end args texinfo-command-end nil skip-chars-forward " " re-search-forward "[
  34. ,]" forward-char -1 skip-chars-backward buffer-substring 1 nreverse] 9))
  35. (defun texinfo-format-parse-args nil (byte-code "`SÇÇÇÇÈÉ!ˆÊhË\"…`ÌÍ!ˆ`‰ˆÎÏ!ˆ`‰ˆÐÑ!ˆÒÍ!ˆ`‰ˆ
  36. W…J
  37. bˆÈÓ Å#…JÔÕ!ˆ‚;ˆ
  38. V…UÖ
  39. \" B‰ˆ bˆ‚ˆl…hÐ×!ˆ`‰ˆØ !-‡" [start next beg end args t texinfo-command-end nil search-forward "{" /= 125 skip-chars-forward "
  40. " re-search-forward "[},]" forward-char -1 skip-chars-backward "
  41. " replace-match " " buffer-substring 1 nreverse] 12))
  42. (put (quote setfilename) (quote texinfo-format) (quote texinfo-format-setfilename))
  43. (defun texinfo-format-setfilename nil (byte-code "à Ä!‰ˆÅÆ ÇÈ
  44. !ƒÉÄÈ
  45. !!P‚\"ÊË
  46. !PÌ%)‡" [arg texinfo-format-filename input-buffer texinfo-parse-arg-discard file-name-nondirectory insert "Info file " ", produced by texinfo-format-buffer -*-Text-*-
  47. from " buffer-file-name "file " "buffer " buffer-name 10] 12))
  48. (put (quote node) (quote texinfo-format) (quote texinfo-format-node))
  49. (defun texinfo-format-node nil (byte-code "É Ê8Ë8Ì8Í8Î ˆ ‰ˆÏ !Ð\"ƒ/ÑÒ \"‚7B‰)ˆn†?ÓcˆÔÕÖ $ˆ …PÔ× \"ˆ …YÔØ \"ˆ
  50. …bÔÙ
  51. \"ˆÓc-‡" [args name next prev up texinfo-last-node tem texinfo-node-names texinfo-format-filename texinfo-format-parse-line-args 0 1 2 3 texinfo-discard-command downcase assoc error "Duplicate node name: %s" 10 insert "
  52. File: " " Node: " ", Prev: " ", Up: " ", Next: "] 11))
  53. (put (quote menu) (quote texinfo-format) (quote texinfo-format-menu))
  54. (defun texinfo-format-menu nil (byte-code "À ˆÁc‡" [texinfo-discard-line "* Menu:
  55. "] 2))
  56. (put (quote menu) (quote texinfo-end) (quote texinfo-discard-command))
  57. (defun texinfo-discard-line nil (byte-code "bˆÂÃ!ˆl†ÄÅ!ˆ bˆn†ÄÆ!ˆÇ`ÈÉ!ˆ`\"‡" [texinfo-command-end texinfo-command-start skip-chars-forward " " error "Extraneous text at end of command line." "Extraneous text at beginning of command line." delete-region forward-line 1] 7))
  58. (put (quote xref) (quote texinfo-format) (quote texinfo-format-xref))
  59. (defun texinfo-format-xref nil (byte-code " à ˆÄcˆÅ8†Æ8 †Ç8?ƒ&È@É\"‚AÈ †-@Ê\"ˆÇ8…=ÈËÇ8Ì#ˆ@c))‡" [args fname texinfo-format-parse-args texinfo-discard-command "*Note " 1 2 3 insert "::" ": " "(" ")"] 8))
  60. (put (quote pxref) (quote texinfo-format) (quote texinfo-format-pxref))
  61. (defun texinfo-format-pxref nil (byte-code "À ˆŠÁÂ!ˆÃÄ!)†Åc‡" [texinfo-format-xref forward-char -2 looking-at "::" "."] 4))
  62. (put (quote inforef) (quote texinfo-format) (quote texinfo-format-inforef))
  63. (defun texinfo-format-inforef nil (byte-code "Á  ˆÃÄÅ8ÆÇ8È@&)‡" [args texinfo-format-parse-args texinfo-discard-command insert "*Note " 1 ": (" 2 ")"] 9))
  64. (put (quote chapheading) (quote texinfo-format) (quote texinfo-format-chapter))
  65. (put (quote ichapter) (quote texinfo-format) (quote texinfo-format-chapter))
  66. (put (quote chapter) (quote texinfo-format) (quote texinfo-format-chapter))
  67. (put (quote iappendix) (quote texinfo-format) (quote texinfo-format-chapter))
  68. (put (quote appendix) (quote texinfo-format) (quote texinfo-format-chapter))
  69. (put (quote iunnumbered) (quote texinfo-format) (quote texinfo-format-chapter))
  70. (put (quote unnumbered) (quote texinfo-format) (quote texinfo-format-chapter))
  71. (defun texinfo-format-chapter nil (byte-code "ÀÁ!‡" [texinfo-format-chapter-1 42] 2))
  72. (put (quote heading) (quote texinfo-format) (quote texinfo-format-section))
  73. (put (quote isection) (quote texinfo-format) (quote texinfo-format-section))
  74. (put (quote section) (quote texinfo-format) (quote texinfo-format-section))
  75. (put (quote iappendixsection) (quote texinfo-format) (quote texinfo-format-section))
  76. (put (quote appendixsection) (quote texinfo-format) (quote texinfo-format-section))
  77. (put (quote iappendixsec) (quote texinfo-format) (quote texinfo-format-section))
  78. (put (quote appendixsec) (quote texinfo-format) (quote texinfo-format-section))
  79. (put (quote iunnumberedsec) (quote texinfo-format) (quote texinfo-format-section))
  80. (put (quote unnumberedsec) (quote texinfo-format) (quote texinfo-format-section))
  81. (defun texinfo-format-section nil (byte-code "ÀÁ!‡" [texinfo-format-chapter-1 61] 2))
  82. (put (quote subheading) (quote texinfo-format) (quote texinfo-format-subsection))
  83. (put (quote isubsection) (quote texinfo-format) (quote texinfo-format-subsection))
  84. (put (quote subsection) (quote texinfo-format) (quote texinfo-format-subsection))
  85. (put (quote iappendixsubsec) (quote texinfo-format) (quote texinfo-format-subsection))
  86. (put (quote appendixsubsec) (quote texinfo-format) (quote texinfo-format-subsection))
  87. (put (quote iunnumberedsubsec) (quote texinfo-format) (quote texinfo-format-subsection))
  88. (put (quote unnumberedsubsec) (quote texinfo-format) (quote texinfo-format-subsection))
  89. (defun texinfo-format-subsection nil (byte-code "ÀÁ!‡" [texinfo-format-chapter-1 45] 2))
  90. (put (quote subsubheading) (quote texinfo-format) (quote texinfo-format-subsubsection))
  91. (put (quote isubsubsection) (quote texinfo-format) (quote texinfo-format-subsubsection))
  92. (put (quote subsubsection) (quote texinfo-format) (quote texinfo-format-subsubsection))
  93. (put (quote iappendixsubsubsec) (quote texinfo-format) (quote texinfo-format-subsubsection))
  94. (put (quote appendixsubsubsec) (quote texinfo-format) (quote texinfo-format-subsubsection))
  95. (put (quote iunnumberedsubsubsec) (quote texinfo-format) (quote texinfo-format-subsubsection))
  96. (put (quote unnumberedsubsubsec) (quote texinfo-format) (quote texinfo-format-subsubsection))
  97. (defun texinfo-format-subsubsection nil (byte-code "ÀÁ!‡" [texinfo-format-chapter-1 46] 2))
  98. (defun texinfo-format-chapter-1 (belowchar) (byte-code " ÃÄÄÅ Ä&ˆÆÇ!)‡" [arg belowchar texinfo-parse-arg-discard insert 10 "@SectionPAD " forward-line -2] 8))
  99. (put (quote SectionPAD) (quote texinfo-format) (quote texinfo-format-sectionpad))
  100. (defun texinfo-format-sectionpad nil (byte-code " ÃÄ!ˆiÃÅ!ˆ ÆV…cˆ S‰ˆ‚ )ˆÇc)‡" [str column texinfo-parse-arg-discard forward-char -1 1 0 10] 6))
  101. (put (quote \.) (quote texinfo-format) (quote texinfo-format-\.))
  102. (defun texinfo-format-\. nil (byte-code "À ˆÁc‡" [texinfo-discard-command "."] 2))
  103. (put (quote :) (quote texinfo-format) (quote texinfo-format-:))
  104. (defun texinfo-format-: nil (byte-code "À ‡" [texinfo-discard-command] 2))
  105. (put (quote center) (quote texinfo-format) (quote texinfo-format-center))
  106. (defun texinfo-format-center nil (byte-code " ˆÁà )‡" [indent-tabs-mode nil texinfo-discard-command center-line] 3))
  107. (defun texinfo-push-stack (check arg) (byte-code "
  108. EB‰‡" [texinfo-stack check arg texinfo-command-start] 3))
  109. (defun texinfo-pop-stack (check) (byte-code "?… Âà \"ˆ@@ =?…ÂÄ @@#ˆ@AA‰ˆ‡" [texinfo-stack check error "Unmatched @end %s" "@end %s matches @%s"] 5))
  110. (put (quote itemize) (quote texinfo-format) (quote texinfo-itemize))
  111. (defun texinfo-itemize nil (byte-code "ÁÂà \"ˆÄZ‰‡" [fill-column texinfo-push-stack itemize texinfo-parse-arg-discard 5] 4))
  112. (put (quote itemize) (quote texinfo-end) (quote texinfo-end-itemize))
  113. (defun texinfo-end-itemize nil (byte-code "Â\\‰ˆÃ ˆÄÅ!ÆÇ 8!)‡" [fill-column stacktop 5 texinfo-discard-command texinfo-pop-stack itemize texinfo-do-itemize 1] 5))
  114. (put (quote enumerate) (quote texinfo-format) (quote texinfo-enumerate))
  115. (defun texinfo-enumerate nil (byte-code "ÁÂÃ\"ˆÄZ‰ˆÅ ‡" [fill-column texinfo-push-stack enumerate 0 5 texinfo-discard-line] 3))
  116. (put (quote enumerate) (quote texinfo-end) (quote texinfo-end-enumerate))
  117. (defun texinfo-end-enumerate nil (byte-code "Â\\‰ˆÃ ˆÄÅ!ÆÇ 8!)‡" [fill-column stacktop 5 texinfo-discard-command texinfo-pop-stack enumerate texinfo-do-itemize 1] 5))
  118. (put (quote table) (quote texinfo-format) (quote texinfo-table))
  119. (defun texinfo-table nil (byte-code "ÁÂà \"ˆÄZ‰‡" [fill-column texinfo-push-stack table texinfo-parse-arg-discard 5] 4))
  120. (put (quote ftable) (quote texinfo-format) (quote texinfo-ftable))
  121. (defun texinfo-ftable nil (byte-code "ÁÂÃ\"ˆÄZ‰ˆÅ ‡" [fill-column texinfo-push-stack table "@code" 5 texinfo-discard-line] 3))
  122. (put (quote description) (quote texinfo-format) (quote texinfo-description))
  123. (defun texinfo-description nil (byte-code "ÁÂÃ\"ˆÄZ‰ˆÅ ‡" [fill-column texinfo-push-stack table "@asis" 5 texinfo-discard-line] 3))
  124. (put (quote table) (quote texinfo-end) (quote texinfo-end-table))
  125. (put (quote ftable) (quote texinfo-end) (quote texinfo-end-table))
  126. (put (quote description) (quote texinfo-end) (quote texinfo-end-table))
  127. (defun texinfo-end-table nil (byte-code "Â\\‰ˆÃ ˆÄÅ!ÆÇ 8!)‡" [fill-column stacktop 5 texinfo-discard-command texinfo-pop-stack table texinfo-do-itemize 1] 5))
  128. (defun texinfo-do-itemize (from) (byte-code "ŠÁÂ!ˆ`Y…(gÃUƒ ŠÄÅ!ˆÆ ˆÄÇ!)‚$ŠÈc)ˆ‚)‡" [from forward-line -1 8 delete-char 1 end-of-line 6 " "] 6))
  129. (put (quote item) (quote texinfo-format) (quote texinfo-item))
  130. (put (quote itemx) (quote texinfo-format) (quote texinfo-item))
  131. (defun texinfo-item nil (byte-code "Á@@ÂN!‡" [texinfo-stack funcall texinfo-item] 3))
  132. (put (quote itemize) (quote texinfo-item) (quote texinfo-itemize-item))
  133. (defun texinfo-itemize-item nil (byte-code "Á ˆÂÃÄ@8Å#ˆÆÇ!‡" [texinfo-stack texinfo-discard-line insert " " 1 "
  134. " forward-line -1] 5))
  135. (put (quote enumerate) (quote texinfo-item) (quote texinfo-enumerate-item))
  136. (defun texinfo-enumerate-item nil (byte-code " ˆ @A@Tà @A\"ˆÄÅÆÇ\"È#)ˆÉÊ!‡" [next texinfo-stack texinfo-discard-line setcar insert 8 format "%3d. " 10 forward-line -1] 7))
  137. (put (quote table) (quote texinfo-item) (quote texinfo-table-item))
  138. (defun texinfo-table-item nil (byte-code "Ã
  139. @A@ÄÅ ÆÇ%*ˆÈÉ!‡" [arg itemfont texinfo-stack texinfo-parse-arg-discard insert 8 123 "}
  140. " forward-line -2] 7))
  141. (put (quote ifinfo) (quote texinfo-format) (quote texinfo-discard-command))
  142. (put (quote ifinfo) (quote texinfo-end) (quote texinfo-discard-command))
  143. (put (quote iftex) (quote texinfo-format) (quote texinfo-format-iftex))
  144. (defun texinfo-format-iftex nil (byte-code "ÁÂÃ!ˆ`\"‡" [texinfo-command-start delete-region re-search-forward "@end iftex
  145. "] 4))
  146. (put (quote tex) (quote texinfo-format) (quote texinfo-format-tex))
  147. (defun texinfo-format-tex nil (byte-code "ÁÂÃ!ˆ`\"‡" [texinfo-command-start delete-region re-search-forward "@end tex
  148. "] 4))
  149. (put (quote titlepage) (quote texinfo-format) (quote texinfo-format-titlepage))
  150. (defun texinfo-format-titlepage nil (byte-code "ÁÂÃ!ˆ`\"‡" [texinfo-command-start delete-region search-forward "@end titlepage
  151. "] 4))
  152. (put (quote endtitlepage) (quote texinfo-format) (quote texinfo-discard-line))
  153. (put (quote ignore) (quote texinfo-format) (quote texinfo-format-ignore))
  154. (defun texinfo-format-ignore nil (byte-code "ÁÂÃ!ˆ`\"‡" [texinfo-command-start delete-region search-forward "@end ignore
  155. "] 4))
  156. (put (quote endignore) (quote texinfo-format) (quote texinfo-discard-line))
  157. (put (quote var) (quote texinfo-format) (quote texinfo-format-var))
  158. (defun texinfo-format-var nil (byte-code "ÁÂ !cˆb‡" [texinfo-command-start upcase texinfo-parse-arg-discard] 3))
  159. (put (quote asis) (quote texinfo-format) (quote texinfo-format-noop))
  160. (put (quote b) (quote texinfo-format) (quote texinfo-format-noop))
  161. (put (quote t) (quote texinfo-format) (quote texinfo-format-noop))
  162. (put (quote i) (quote texinfo-format) (quote texinfo-format-noop))
  163. (put (quote r) (quote texinfo-format) (quote texinfo-format-noop))
  164. (put (quote key) (quote texinfo-format) (quote texinfo-format-noop))
  165. (put (quote w) (quote texinfo-format) (quote texinfo-format-noop))
  166. (defun texinfo-format-noop nil (byte-code "Á cˆb‡" [texinfo-command-start texinfo-parse-arg-discard] 2))
  167. (put (quote code) (quote texinfo-format) (quote texinfo-format-code))
  168. (put (quote samp) (quote texinfo-format) (quote texinfo-format-code))
  169. (put (quote file) (quote texinfo-format) (quote texinfo-format-code))
  170. (put (quote kbd) (quote texinfo-format) (quote texinfo-format-code))
  171. (put (quote cite) (quote texinfo-format) (quote texinfo-format-code))
  172. (defun texinfo-format-code nil (byte-code "ÁÂÃ Ä#ˆb‡" [texinfo-command-start insert "`" texinfo-parse-arg-discard "'"] 5))
  173. (put (quote emph) (quote texinfo-format) (quote texinfo-format-emph))
  174. (put (quote strong) (quote texinfo-format) (quote texinfo-format-emph))
  175. (defun texinfo-format-emph nil (byte-code "ÀÁÂ Á#‡" [insert "*" texinfo-parse-arg-discard] 5))
  176. (put (quote defn) (quote texinfo-format) (quote texinfo-format-defn))
  177. (put (quote dfn) (quote texinfo-format) (quote texinfo-format-defn))
  178. (defun texinfo-format-defn nil (byte-code "ÁÂÃ Â#ˆb‡" [texinfo-command-start insert "\"" texinfo-parse-arg-discard] 5))
  179. (put (quote bullet) (quote texinfo-format) (quote texinfo-format-bullet))
  180. (defun texinfo-format-bullet nil (byte-code "À ˆÁc‡" [texinfo-discard-command "*"] 2))
  181. (put (quote smallexample) (quote texinfo-format) (quote texinfo-format-example))
  182. (put (quote example) (quote texinfo-format) (quote texinfo-format-example))
  183. (put (quote quotation) (quote texinfo-format) (quote texinfo-format-example))
  184. (put (quote lisp) (quote texinfo-format) (quote texinfo-format-example))
  185. (put (quote display) (quote texinfo-format) (quote texinfo-format-example))
  186. (put (quote format) (quote texinfo-format) (quote texinfo-format-example))
  187. (put (quote flushleft) (quote texinfo-format) (quote texinfo-format-example))
  188. (defun texinfo-format-example nil (byte-code "ÂÃÀ\"ˆ ÄZ‰ˆÅ ‡" [nil fill-column texinfo-push-stack example 5 texinfo-discard-line] 3))
  189. (put (quote smallexample) (quote texinfo-end) (quote texinfo-end-example))
  190. (put (quote example) (quote texinfo-end) (quote texinfo-end-example))
  191. (put (quote quotation) (quote texinfo-end) (quote texinfo-end-example))
  192. (put (quote lisp) (quote texinfo-end) (quote texinfo-end-example))
  193. (put (quote display) (quote texinfo-end) (quote texinfo-end-example))
  194. (put (quote format) (quote texinfo-end) (quote texinfo-end-example))
  195. (put (quote flushleft) (quote texinfo-end) (quote texinfo-end-example))
  196. (defun texinfo-end-example nil (byte-code "Â\\‰ˆÃ ˆÄÅ!ÆÇ 8!)‡" [fill-column stacktop 5 texinfo-discard-command texinfo-pop-stack example texinfo-do-itemize 1] 5))
  197. (put (quote exdent) (quote texinfo-format) (quote texinfo-format-exdent))
  198. (defun texinfo-format-exdent nil (byte-code "À ˆÁ`ÂÃ!ˆ`\"ˆÄcˆŠÅ ˆÆc)‡" [texinfo-discard-command delete-region skip-chars-forward " " 8 end-of-line "
  199. "] 5))
  200. (put (quote ctrl) (quote texinfo-format) (quote texinfo-format-ctrl))
  201. (defun texinfo-format-ctrl nil (byte-code "Á ÂÃÄH\"c)‡" [str texinfo-parse-arg-discard logand 31 0] 5))
  202. (put (quote TeX) (quote texinfo-format) (quote texinfo-format-TeX))
  203. (defun texinfo-format-TeX nil (byte-code "À ˆÁc‡" [texinfo-parse-arg-discard "TeX"] 2))
  204. (put (quote copyright) (quote texinfo-format) (quote texinfo-format-copyright))
  205. (defun texinfo-format-copyright nil (byte-code "À ˆÁc‡" [texinfo-parse-arg-discard "(C)"] 2))
  206. (put (quote minus) (quote texinfo-format) (quote texinfo-format-minus))
  207. (defun texinfo-format-minus nil (byte-code "À ˆÁc‡" [texinfo-parse-arg-discard "-"] 2))
  208. (put (quote dots) (quote texinfo-format) (quote texinfo-format-dots))
  209. (defun texinfo-format-dots nil (byte-code "À ˆÁc‡" [texinfo-parse-arg-discard "..."] 2))
  210. (put (quote refill) (quote texinfo-format) (quote texinfo-format-refill))
  211. (defun texinfo-format-refill nil (byte-code "Á ˆÂÀ!‡" [nil texinfo-discard-command fill-paragraph] 3))
  212. (put (quote vindex) (quote texinfo-format) (quote texinfo-format-vindex))
  213. (defun texinfo-format-vindex nil (byte-code "ÀÁ!‡" [texinfo-index texinfo-vindex] 2))
  214. (put (quote cindex) (quote texinfo-format) (quote texinfo-format-cindex))
  215. (defun texinfo-format-cindex nil (byte-code "ÀÁ!‡" [texinfo-index texinfo-cindex] 2))
  216. (put (quote findex) (quote texinfo-format) (quote texinfo-format-findex))
  217. (defun texinfo-format-findex nil (byte-code "ÀÁ!‡" [texinfo-index texinfo-findex] 2))
  218. (put (quote pindex) (quote texinfo-format) (quote texinfo-format-pindex))
  219. (defun texinfo-format-pindex nil (byte-code "ÀÁ!‡" [texinfo-index texinfo-pindex] 2))
  220. (put (quote tindex) (quote texinfo-format) (quote texinfo-format-tindex))
  221. (defun texinfo-format-tindex nil (byte-code "ÀÁ!‡" [texinfo-index texinfo-tindex] 2))
  222. (put (quote kindex) (quote texinfo-format) (quote texinfo-format-kindex))
  223. (defun texinfo-format-kindex nil (byte-code "ÀÁ!‡" [texinfo-index texinfo-kindex] 2))
  224. (defun texinfo-index (indexvar) (byte-code "Â DJBL‡" [indexvar texinfo-last-node texinfo-parse-arg-discard] 4))
  225. (defconst texinfo-indexvar-alist (quote (("cp" . texinfo-cindex) ("fn" . texinfo-findex) ("vr" . texinfo-vindex) ("tp" . texinfo-tindex) ("pg" . texinfo-pindex) ("ky" . texinfo-kindex))))
  226. (put (quote printindex) (quote texinfo-format) (quote texinfo-format-printindex))
  227. (defun texinfo-format-printindex nil (byte-code "ÄÅ \"AJÃÆcˆ`‰ˆÇÃ\"ˆÈ
  228. `ÉÊ$*‡" [indexelts texinfo-indexvar-alist opoint nil assoc texinfo-parse-arg-discard "
  229. * Menu:
  230. " texinfo-print-index shell-command-on-region "sort -f" 1] 8))
  231. (defun texinfo-print-index (file indexelts) (byte-code "…:@@;ƒ'ÂÃ@@Ä ƒÅ ÆQ‚ÇÈ@8É&‚1ÊÈ@8Ë@8\"ˆA‰ˆ‚‡" [indexelts file insert "* " ": " "(" ")" "" 1 ".
  232. " texinfo-print-index 2] 8))
  233. (put (quote include) (quote texinfo-format) (quote texinfo-format-include))
  234. (defun texinfo-format-include nil (byte-code "Å
  235. ÆŠÇÈÉP!ƒÉP‚3ÈÊP!ƒ%ÊP‚3È!ƒ/‚3ËÌ\"!ˆÍ )‰ˆÎÏ @Ð 8#ˆÎÑ @Ò 8#ˆÎÓ @Ô 8#ˆÎÕ @Ö 8#ˆÎ× @Ø 8#ˆÎÙ @Ú 8#+‡" [filename default-directory input-directory subindex t texinfo-parse-arg-discard nil find-file file-readable-p ".texinfo" ".tex" error "@include'd file %s not found" texinfo-format-buffer-1 texinfo-subindex texinfo-vindex 1 texinfo-findex 2 texinfo-cindex 3 texinfo-pindex 4 texinfo-tindex 5 texinfo-kindex 6] 17))
  236. (defun texinfo-subindex (indexvar file content) (byte-code "Ã
  237. EJBL‡" [indexvar file content recurse] 4))
  238. (put (quote page) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  239. (put (quote c) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  240. (put (quote comment) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  241. (put (quote setchapternewpage) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  242. (put (quote contents) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  243. (put (quote summarycontents) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  244. (put (quote nopara) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  245. (put (quote noindent) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  246. (put (quote setx) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  247. (put (quote setq) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  248. (put (quote settitle) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  249. (put (quote defindex) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  250. (put (quote synindex) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  251. (put (quote hsize) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  252. (put (quote parindent) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  253. (put (quote lispnarrowing) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  254. (put (quote itemindent) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  255. (put (quote headings) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  256. (put (quote group) (quote texinfo-format) (quote texinfo-discard-line-with-args))
  257. (put (quote group) (quote texinfo-end) (quote texinfo-discard-line-with-args))
  258. (put (quote bye) (quote texinfo-format) (quote texinfo-discard-line))
  259. (put (quote smallbook) (quote texinfo-format) (quote texinfo-discard-line))
  260. (defun texinfo-discard-line-with-args nil (byte-code "bˆÁ`ÂÃ!ˆ`\"‡" [texinfo-command-start delete-region forward-line 1] 4))
  261. (defun texinfo-unsupported nil (byte-code "ÂÃÄ \"\"‡" [texinfo-command-start texinfo-command-end error "%s is not handled by texinfo" buffer-substring] 5))
  262. (defun batch-texinfo-format nil "\
  263. Runs texinfo-format-buffer on the files remaining on the command line.
  264. Must be used only with -batch, and kills emacs on completion.
  265. Each file will be processed even if an error occurred previously.
  266. For example, invoke
  267. \"emacs -batch -funcall batch-texinfo-format $docs/ ~/*.texinfo\"." (byte-code "?…ÈÌ!ˆÂÄÄÍÍÎÄÄ
  268.   …mÏ @!‰ ˆÐ !?ƒFÑÒ \"ˆÓ A‰ ‚iÔ !ƒ\\ÕÖ ! A\"‰ ‚i 
  269. B
  270.  A‰ ˆ‚ˆ
  271. …‡
  272. @ 
  273. A‰
  274. ˆ×ØÙ�ˆ‚nˆÚ!+-‡" [noninteractive version-control t auto-save-default nil find-file-run-dired kept-old-versions kept-new-versions error file files command-line-args-left "batch-texinfo-format may only be used -batch." 259259 0 expand-file-name file-exists-p message ">> %s does not exist!" 1 file-directory-p nconc directory-files err (byte-code "…Ãp!ˆÄ !ˆÅp!ˆÆÂ!ˆÇ ˆÈÉ \"ˆÊÂ!ˆË …-ÈÌÀ \"ˆÍ ‡" [buffer-file-name file nil kill-buffer find-file buffer-flush-undo set-buffer-modified-p texinfo-mode message "texinfo formatting %s..." texinfo-format-buffer buffer-modified-p "Saving modified %s" save-buffer] 12) ((error (byte-code "ÃÄÅ!\"ˆÃÆ!ˆÇ``È\\d^\"ÉÊË
  275. #‰…7 ÉÌÉ!OÍ ÎÉ!ÏOQ
  276. T‰ˆ‚ˆÃÐ \"*‡" [err s tem message ">> Error: %s" prin1-to-string ">> point at" buffer-substring 100 0 string-match "
  277. +" match-beginning "
  278. >> " match-end nil ">> %s"] 13)) (setq (byte-code "ˆÁ‡" [error 1] 1))) kill-emacs] 11))