Server IP : 111.118.215.189 / Your IP : 18.117.158.174 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/textmodes/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:11:52 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/textmodes/texnfo-upd.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'texinfo) #@115 String inserted before lower level entries in Texinfo master menu. It comes after the chapter-level menu entries. (defvar texinfo-master-menu-header " --- The Detailed Node Listing ---\n" (#$ . 583)) #@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\\)" (#$ . 789)) #@70 Regular expression matching just the Texinfo section level headings. (defvar texinfo-section-level-regexp (byte-code "\301\302\303\"!\207" [texinfo-section-list regexp-opt texinfo-filter 3] 4) (#$ . 1010)) #@73 Regular expression matching just the Texinfo subsection level headings. (defvar texinfo-subsection-level-regexp (byte-code "\301\302\303\"!\207" [texinfo-section-list regexp-opt texinfo-filter 4] 4) (#$ . 1223)) #@76 Regular expression matching just the Texinfo subsubsection level headings. (defvar texinfo-subsubsection-level-regexp (byte-code "\301\302\303\"!\207" [texinfo-section-list regexp-opt texinfo-filter 5] 4) (#$ . 1442)) #@182 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 '((1 . "top[ ]+") (2 concat "\\(^@\\)\\(" texinfo-chapter-level-regexp "\\)\\>[ ]*") (3 concat "\\(^@\\)\\(" texinfo-section-level-regexp "\\)\\>[ ]*") (4 concat "\\(^@\\)\\(" texinfo-subsection-level-regexp "\\)\\>[ ]+") (5 concat "\\(^@\\)\\(" texinfo-subsubsection-level-regexp "\\)\\>[ ]+")) (#$ . 1668)) #@184 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 '((1 . "^@node [ ]*DIR") (2 . "^@node [ ]*top[ ]*\\(,\\|$\\)") (3 concat "\\(^@\\(" texinfo-chapter-level-regexp "\\)\\>[ ]*\\)") (4 concat "\\(^@\\(" texinfo-section-level-regexp "\\|" texinfo-chapter-level-regexp "\\)\\>[ ]*\\)") (5 concat "\\(^@\\(" texinfo-subsection-level-regexp "\\|" texinfo-section-level-regexp "\\|" texinfo-chapter-level-regexp "\\)\\>[ ]*\\)")) (#$ . 2217)) #@183 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 '((1 concat "\\(^@\\(" texinfo-chapter-level-regexp "\\|" texinfo-section-level-regexp "\\|" texinfo-subsection-level-regexp "\\|" texinfo-subsubsection-level-regexp "\\)\\>[ ]*\\)") (2 concat "\\(^@\\(" texinfo-section-level-regexp "\\|" texinfo-subsection-level-regexp "\\|" texinfo-subsubsection-level-regexp "\\)\\>[ ]*\\)") (3 concat "\\(^@\\(" texinfo-subsection-level-regexp "\\|" texinfo-subsubsection-level-regexp "\\)\\>[ ]+\\)") (4 concat "\\(^@\\(" texinfo-subsubsection-level-regexp "\\)\\>[ ]+\\)") (5 . "a\\(^\\)")) (#$ . 2842)) #@607 Without any prefix argument, make or update a menu. Make the menu for the section enclosing the node found following point. A prefix argument 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. Leaves trailing whitespace in a menu that lacks descriptions, so descriptions will format well. In general, a menu should contain descriptions, because node names and section titles are often too short to explain a node well. (defalias 'texinfo-make-menu #[(&optional beginning end) "\204 \304 \305 !\210\306\307!)\207\306\310\311 \"\210\212\n^b\210\304 \312 \n]\313\223\210\214~\210\314 \315!\"\203? \304 \305 !\210\202, `\315!W\203i \316 \315!\"\203i \304 \317y\210\314 \315!\"\203? \304 \305 !\210\202V ,\306\320\311 \"\207" [beginning level end region-end-marker texinfo-hierarchic-level texinfo-make-one-menu message "Menu updated" "Making or updating menus in %s... " buffer-name make-marker nil texinfo-find-lower-level-node marker-position texinfo-find-higher-level-node 1 "Making or updating menus in %s...done"] 4 (#$ . 3621) (byte-code "\205 `\301 D\207" [prefix-arg mark] 2)]) #@191 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) "\306\212\307 !b\210\310\210`)\311 !\312\n\"\nb\210\313 \210\314 \315\n #\316\n\f\"\203= \317!\210\320!\210\321\n\f\"\210\322 \".\207" [case-fold-search level beginning end first node-name t texinfo-update-menu-region-beginning nil texinfo-update-menu-region-end texinfo-menu-first-node beginning-of-line texinfo-copy-node-name texinfo-make-menu-list texinfo-old-menu-p texinfo-incorporate-descriptions texinfo-incorporate-menu-entry-names texinfo-delete-old-menu texinfo-insert-menu new-menu-list] 4 (#$ . 4914)]) #@740 Update every regular menu in a Texinfo file. Update pre-existing master menu, if there is one. Only single-file manuals are supported by this function. For multi-file manuals, use `texinfo-multiple-files-update'. If called with a non-nil argument, this function first updates all the nodes in the buffer before updating the menus. Do NOT invoke this command with an argument if your Texinfo file uses @node lines without the `Next', `Previous', and `Up' pointers! Indents the first line of descriptions, and leaves trailing whitespace in a menu that lacks descriptions, so descriptions will format well. In general, a menu should contain descriptions, because node names and section titles are often too short to explain a node well. (defalias 'texinfo-all-menus-update #[(&optional update-all-nodes-p) "\305\306\212\307d\305\"\210eb\210\310\311\312 \"\210\212\313\n\306\305#\203= \314\315\316\317!\305#\210\305\320\224b\210\212\321 b\210\322 \210\323u\210`)`|\210))\f\203M \310\324\312 \"\210\325ed\"\210\310\326\312 \"\210\327de\"\210\203f \310\330\312 \"\210\331\306!\210)\310\332!*\207" [master-menu-p case-fold-search texinfo-master-menu-header end-of-detailed-menu-descriptions update-all-nodes-p t nil push-mark message "Checking for a master menu in %s ... " buffer-name search-forward search-backward "\n@detailmenu" line-beginning-position -2 0 texinfo-menu-end beginning-of-line -1 "Updating all nodes in %s ... " 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 (#$ . 5686) "P"]) #@304 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) "\304` W\205$ \305\306\307\310\311\310\312\313\314\315\n\"A!\260\316\n!\304#\205$ \317\224b)\207" [case-fold-search region-end level texinfo-update-menu-lower-regexps t re-search-forward "\\(^@node\\).*\n" "\\(\\(\\(^@c\\).*\n\\)" "\\|" "\\(^@ifinfo[ ]*\n\\)" "\\(^@ifnottex[ ]*\n\\)" "\\)?" eval assoc texinfo-update-menu-region-end 1] 12 (#$ . 7335)]) #@391 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. A `@node' line starting at point does count as a match; if the match is found there, the value is t and point does not move. (defalias 'texinfo-find-higher-level-node #[(level region-end) "\304 \305W\203 \306\307\n\304#\2052 \310 \210\304\2022 \306\311\312\313\314\313\315\316\317\320 \"A!\260\n\304#\2052 \310 \210\304)\207" [case-fold-search level region-end texinfo-update-menu-higher-regexps t 3 re-search-forward "^@node [ ]*top[ ]*\\(,\\|$\\)" beginning-of-line "\\(^@node\\).*\n" "\\(\\(\\(^@c\\).*\n\\)" "\\|" "\\(^@ifinfo[ ]*\n\\)" "\\(^@ifnottex[ ]*\n\\)" "\\)?" eval assoc] 12 (#$ . 8064)]) #@499 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\210\304\305\n\"\203 \306 \307\310y\210B B\202 \237)\207" [beginning new-menu-list level end nil texinfo-menu-locate-entry-p texinfo-copy-node-name "" 1] 3 (#$ . 8944)]) #@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) "\304\305\306\307\310\311\310\312\313\314\315 \n\"A!\260\304#\205 \316\224b)\207" [case-fold-search level texinfo-update-menu-same-level-regexps search-end t re-search-forward "\\(^@node\\).*\n" "\\(\\(\\(^@c\\).*\n\\)" "\\|" "\\(^@ifinfo[ ]*\n\\)" "\\(^@ifnottex[ ]*\n\\)" "\\)?" eval assoc 1] 12 (#$ . 9686)]) #@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 "\212\300v\210\301\302w\210`\303\304\305 \306#\203 `S\202 \302\210`{)\207" [1 " " nil search-forward "," line-end-position t] 5 (#$ . 10545)]) #@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 "\300\224b\210\301v\210\302\303w\210`\303\210`{\207" [7 1 " " nil] 2 (#$ . 11035)]) #@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\210\302\303 \304#\203 \305\207\306c\210\307y\210\310\207" [beginning first re-search-forward "^@menu" goto-end t "\n\n" -2 nil] 4 (#$ . 11494)]) #@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) "\304 \305\211\2034 @\212\306\307\310\n@!\311\312\313\310\n@!\314\315\260\316#\203, \n\317!\241\210)A\211\204 \305 +\207" [end-of-menu new-menu-list new-menu --dolist-tail-- texinfo-menu-end nil re-search-forward "\\* \\(" regexp-quote "::" "\\|" ".*: " "[., \n]" "\\)" t texinfo-menu-copy-old-description] 10 (#$ . 12188)]) #@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) "\304 \305\211\2031 @\212\306\307\310\311\n@!\312R\313#\203) \n\314\224\314\225{\n@B\240\210)A\211\204 \305 +\207" [end-of-menu new-menu-list new-menu --dolist-tail-- texinfo-menu-end nil re-search-forward "\\* " "\\(.*\\): " regexp-quote "[., \n]" t 1] 6 (#$ . 13079)]) #@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) "\301\302w\210\303\304!\203 \303\305!\204 `\212\306\307\310#\210\311\312!){\207\313\207" [end-of-menu "[:., \n ]+" nil looking-at "\\(\\w+\\|@\\)" "\\(^\\* \\|^@detailmenu\\|^@end menu\\|^@ignore\\)" re-search-forward "\\(^\\* \\|^@ignore\\|^@end menu\\)" t line-end-position 0 ""] 5 (#$ . 14070)]) #@91 Return position of end of menu, but don't move point. Signal an error if not end of menu. (defalias 'texinfo-menu-end #[nil "\212\300\301\302\303#\203 `\202 \304\305!)\207" [re-search-forward "^@end menu" nil t error "Menu does not have an end"] 4 (#$ . 14631)]) #@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) "\302\303\"\210`\212\304\305 \"\210`)|\207" [beginning first re-search-backward "^@menu" re-search-forward "^@end menu"] 4 (#$ . 14903)]) #@55 Column at which descriptions start in a Texinfo menu. (defvar texinfo-column-for-description 32 (#$ . 15321)) #@704 Insert formatted menu at point. Indents the first line of descriptions, if any, to the value of texinfo-column-for-description. Indenting leaves trailing whitespace in a menu that lacks descriptions, so descriptions will format well. In general, a menu should contain descriptions, because node names and section titles are often too short to explain a node well. 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) "\306c\210\307\211\203J \n@\310c\210 @\211;\203\"