%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/cedet/semantic/ |
Current File : //usr/local/share/emacs/27.2/lisp/cedet/semantic/texi.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\207" [require semantic/db-find semantic/format semantic/ctxt texinfo] 2) #@69 Regular expression used to find special sections in a Texinfo file. (defvar semantic-texi-super-regex "^@\\(top\\|chapter\\|\\(sub\\)*section\\|unnumbered\\(\\(sub\\)*sec\\)?\\|\\(chap\\|\\(sub\\)+\\|major\\)?heading\\|appendix\\(\\(sub\\)*sec\\)?\\|centerchap\\|def\\(var\\|un\\|fn\\|opt\\)x?\\)" (#$ . 542)) #@141 List of definition commands, and the field position. The field position is the field number (based at 1) where the name of this section is. (defvar semantic-texi-name-field-list '(("defvar" . 1) ("defvarx" . 1) ("defun" . 1) ("defunx" . 1) ("defopt" . 1) ("deffn" . 2) ("deffnx" . 2)) (#$ . 859)) #@318 Parse the current texinfo buffer for semantic tags. IGNORE any arguments, always parse the whole buffer. Each tag returned is of the form: ("NAME" section (:members CHILDREN)) or ("NAME" def) It is an override of `semantic-parse-region' and must be installed by the function `semantic-install-function-overrides'. (defalias 'semantic-texi-parse-region #[(&rest ignore) "\300\301\302 \"\207" [mapcar semantic-texi-expand-tag semantic-texi-parse-headings] 3 (#$ . 1163)]) #@46 Parse changes in the current texinfo buffer. (defalias 'semantic-texi-parse-changes #[nil "\301\211\207" [semantic-parse-tree-state needs-rebuild] 2 (#$ . 1642)]) #@29 Expand the texinfo tag TAG. (defalias 'semantic-texi-expand-tag #[(tag) "\305!\211\203+ \306\307\310 \"\211\211AA)\211:\203( \f\311\312\f@\n#!\240\210,\210\313!@)\207" [tag chil value attribute plist-cdr semantic-tag-components :members mapcar semantic-texi-expand-tag semantic-tag-make-plist plist-put semantic--tag-expand] 7 (#$ . 1812)]) #@61 Parse the current texinfo buffer for all semantic tags now. (defalias 'semantic-texi-parse-headings #[nil "\304\212eb\210\305\306\307\310 !\"ed#\311\304\312#\2037 \313\224B\n`\304\247\203- @Y\2052 \314#\266\202 \315\n!\210*\237\316\313\"@)\207" [pass1 buffer-file-name semantic--progress-reporter semantic-texi-super-regex nil make-progress-reporter format "Parsing %s..." file-name-nondirectory re-search-forward t 0 progress-reporter-do-update progress-reporter-done semantic-texi-recursive-combobulate-list] 7 (#$ . 2170)]) #@227 Create a semantic tag of class section. NAME is the name of this section. MEMBERS is a list of semantic tags representing the elements that make up this section. START and END define the location of data described by the tag. (defalias 'semantic-texi-new-section-tag #[(name members start end) "\306\307\310 D\211\311\n!\312\211\257+\f D\"\207" [name members attributes class start end append section :members semantic-tag-make-plist nil] 7 (#$ . 2720)]) (put 'semantic-texi-new-section-tag 'byte-optimizer 'byte-compile-inline-expand) #@138 Create a semantic tag of class def. NAME is the name of this definition. START and END define the location of data described by the tag. (defalias 'semantic-texi-new-def-tag #[(name start end) "\305\306\307\211\n\310 !\307\211\257+\fD\"\207" [name attributes class start end append def nil semantic-tag-make-plist] 7 (#$ . 3269)]) (put 'semantic-texi-new-def-tag 'byte-optimizer 'byte-compile-inline-expand) #@186 Set the end point of the first section tag in METATAGLIST to PNT. METATAGLIST is a list of tags in the intermediate tag format used by the texinfo parser. PNT is the new point to set. (defalias 'semantic-texi-set-endpoint #[(metataglist pnt) "\304 \203 @\211A@)\305=\204 A\211\204 @\211\205) GS\233\240\210)\207" [metatag metataglist tag pnt nil section] 3 (#$ . 3690)]) #@262 Rearrange SECTIONLIST to be a hierarchical tag list starting at LEVEL. Return the rearranged new list, with all remaining tags from SECTIONLIST starting at ELT 2. Sections not are not dealt with as soon as a tag with greater section value than LEVEL is found. (defalias 'semantic-texi-recursive-combobulate-list #[(sectionlist level) "\306\306\212\3072:\n\2030\n@b\210\310\311!\203)\312\313!\314\f \"\306\211 !\306\"`!\203M A@#X\203M \203H \315!\"\210\316\307\317\"\210\203\313 \313\225$\212\320\306x\210\321 \210\310\322!\203g `!)$b\210\323\306w\210\324`\306\210`\" \325\nAA@\"\" \"@!`$%&'\326'\327\330&D()\211')\331(!\306\211\257+%$D\",\203\277 \315!\"\210 B\"A)\202%\314\f*\"\211A\206\330 \313\"\332\"!\210\323\306w\210\324`\332\313!\210`\" !b\210\333 \210 !`$%'\326'\334\306()\211')\331(!\306\211\257+%$D\"+\211B\nA-\202 \335\336!\210\202 \n?\2059\315d\"0\210)\237\n+B\207" [sectionlist tag oldl newl word texinfo-section-list nil level-jump looking-at "@\\(\\w+\\)" match-string 1 assoc semantic-texi-set-endpoint throw t "\n " beginning-of-line "@node\\>" " " buffer-substring-no-properties semantic-texi-recursive-combobulate-list append section :members semantic-tag-make-plist forward-sexp semantic-texi-forward-deffn def error "Problem finding section in semantic/texi parser" levelmatch text begin tmp level end start members name attributes class semantic-texi-name-field-list] 7 (#$ . 4083)]) #@82 Move forward over one deffn type definition. The cursor should be on the @ sign. (defalias 'semantic-texi-forward-deffn #[nil "\302\303!\205 \304\305!\306\307!P\310 \311\312#*\207" [type seek looking-at "@\\(\\w+\\)" match-string 1 "^@end\\s-+" regexp-quote re-search-forward nil t] 4 (#$ . 5586)]) #@98 Return components belonging to TAG. Override semantic-tag-components in `texinfo-mode' buffers. (defalias 'semantic-tag-components-texinfo-mode #[(tag) "\302\303\3048) \"*\207" [tag attribute :members plist-get 2] 3 (#$ . 5895)]) (byte-code "\300\301\302\303#\210\304\305\306\307#\207" [put semantic-tag-components-texinfo-mode definition-name semantic-tag-components mode-local-bind ((semantic-tag-components . semantic-tag-components-texinfo-mode)) (override-flag t) texinfo-mode] 4) #@147 Regular expression for matching texinfo environments. uses `texinfo-environment-regexp', but makes sure that it can handle the @menu environment. (defvar semantic-texi-environment-regexp (byte-code "\301\302\"\203 \207\301\303\"\205 \304\305\211\224#\306\304\305\224\"Q\207" [texinfo-environment-regexp string-match "@menu" "cartouche" substring 0 "menu\\|"] 5) (#$ . 6395)) #@124 Handle texinfo constructs which do not use parenthetical nesting. Override semantic-up-context in `texinfo-mode' buffers. (defalias 'semantic-up-context-texinfo-mode #[nil "\304\212\305 \211\204 \306\307!\210\310\311!\203 `*\212\204>