%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/cedet/semantic/ |
Current File : //usr/local/share/emacs/27.2/lisp/cedet/semantic/senator.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!\210\300\305!\210\300\306!\210\307\310\311\312\313\302%\210\314\315\311\316\313\310\317\320&\210\321\315!\210\314\322\311\323\313\310\317\324&\210\321\322!\210\314\325\311\326\313\310\317\327&\210\321\325!\210\330\331\332\333\313\334%\207" [require ring semantic semantic/ctxt semantic/decorate semantic/format semantic/analyze custom-declare-group senator nil "Semantic Navigator." :group custom-declare-variable senator-step-at-tag-classes "List of tag classes recognized by Senator's navigation commands.\nA tag class is a symbol, such as `variable', `function', or `type'.\n\nAs a special exception, if the value is nil, Senator's navigation\ncommands recognize all tag classes." :type (repeat (symbol)) make-variable-buffer-local senator-step-at-start-end-tag-classes "List of tag classes at which Senator's navigation commands should stop.\nA tag class is a symbol, such as `variable', `function', or `type'.\nThe navigation commands stop at the start and end of each tag\nclass in this list, provided the tag class is recognized (see\n`senator-step-at-tag-classes').\n\nAs a special exception, if the value is nil, the navigation\ncommands stop at the beginning of every tag.\n\nIf t, the navigation commands stop at the start and end of any\ntag, where possible." (choice :tag "Identifiers" (repeat :menu-tag "Symbols" (symbol)) (const :tag "All" t)) senator-highlight-found "If non-nil, Senator commands momentarily highlight found tags." boolean custom-declare-face senator-momentary-highlight-face ((((class color) (background dark)) (:background "gray30")) (((class color) (background light)) (:background "gray70"))) "Face used to momentarily highlight tags." semantic-faces] 8) #@78 Momentarily highlight TAG. Does nothing if `senator-highlight-found' is nil. (defalias 'senator-momentary-highlight-tag #[(tag) "\205 \302 \303\"\207" [senator-highlight-found tag semantic-momentary-highlight-tag senator-momentary-highlight-face] 3 (#$ . 2163)]) #@54 Return non-nil if must step at start and end of TAG. (defalias 'senator-step-at-start-end-p #[(tag) "\205 \302=\206 \211A@) >\207" [tag senator-step-at-start-end-tag-classes t] 3 (#$ . 2434)]) #@34 Return non-nil if must skip TAG. (defalias 'senator-skip-p #[(tag) "\205 \205 \211A@) >?\207" [tag senator-step-at-tag-classes] 3 (#$ . 2639)]) #@56 Return non-nil if POS is between start and end of TAG. (defalias 'senator-middle-of-tag-p #[(pos tag) " \211\303 8)\304\n!\203 \305\n!\202 \n\306H*V\2059 \211\303 8)\304\n!\2034 \307\n!\2027 \n\310H*W\207" [pos tag o 4 overlayp overlay-start 0 overlay-end 1] 4 (#$ . 2795)]) #@86 Return TAG's outermost parent if must step at start/end of it. Return nil otherwise. (defalias 'senator-step-at-parent #[(tag) "\205K \304\211\305\211\3068)\307!\203 \310!\202! \311H*! \203I \n\204I @ A\n=\204D \312\n!\204D \313\n!\204$ \304\202$ \n*\207" [tag parents parent o nil semantic-find-tag-by-overlay 4 overlayp overlay-start 0 senator-skip-p senator-step-at-start-end-p] 4 (#$ . 3087)]) #@63 Return the tag before POS or one of its parent where to step. (defalias 'senator-previous-tag-or-parent #[(pos) "\304\211\n\203\250 \neV\203\250 \204\250 \305\n!\211\203 \306\n! \203 \204 \307 @\310\"\211\203\237 \3111] :\205Y @;\205Y A@9\205Y A@\205Y \3128<\205Y \3138<0\202_ \210\304)\203\237 \211\3148)\315!\203x \316!\202{ \317H*\nU\204 \211\3148)\315!\203\226 \320!\202\231 \321H*\nU\204 \304 A\211\202 \322!\206\257 *\207" [tag ol pos o nil previous-overlay-change overlays-at overlay-get semantic (error) 2 3 4 overlayp overlay-start 0 overlay-end 1 senator-step-at-parent] 4 (#$ . 3509)]) #@263 Search for TAG name in current buffer. Limit the search to TAG bounds. If found, set point to the end of the name, and return point. The beginning of the name is at (match-beginning 0). Return nil if not found, that is if TAG name doesn't come from the source. (defalias 'senator-search-tag-name #[(tag) "\211@)\303\304 \"\203 \305\306 \"\202 \211\3078)\310\n!\203+ \311\n!\202. \n\312H*b\210\313\314\315 !\316Q\211\3078)\310\n!\203M \317\n!\202P \n\306H*\320#\205] \312\224b\210\321 !)\207" [tag name o string-match "\\`\\([^[]+\\)[[]" match-string 1 4 overlayp overlay-start 0 re-search-forward "\\(\\<\\|\\s-+\\|\\s.\\)" regexp-quote "\\(\\>\\|\\s-+\\|\\s.\\)" overlay-end t search-forward] 5 (#$ . 4154)]) #@78 List of ignored tag classes. Tags of those classes are excluded from search. (custom-declare-variable 'senator-search-ignore-tag-classes ''(code block) '(#$ . 4888) :group 'senator :type '(repeat (symbol :tag "class"))) #@109 Default function that filters searched tags. Ignore tags of classes in `senator-search-ignore-tag-classes'. (defalias 'senator-search-default-tag-filter #[(tag) "\211A@) >?\207" [tag senator-search-ignore-tag-classes] 3 (#$ . 5115)]) #@154 List of functions to be called to filter searched tags. Each function is passed a tag. If one of them returns nil, the tag is excluded from the search. (defvar senator-search-tag-filter-functions '(senator-search-default-tag-filter) (#$ . 5358)) #@342 Use the SEARCHER function to search from point for TEXT in a tag name. SEARCHER is typically the function `search-forward', `search-backward', `word-search-forward', `word-search-backward', `re-search-forward', or `re-search-backward'. See one of the above function to see how the TEXT, BOUND, NOERROR, and COUNT arguments are interpreted. (defalias 'senator-search #[(searcher text &optional bound noerror count) "` \206 \306\211\307V\203 \306\202 \307W\203 [\310\202 \307\311\211\311\211\311\211\311\n\307U\204\231 \204\231 \312\n$\211\203\231 \307\224\307\225 U\203_ \312\211\202: \313 \211\203\223 \314\315\"\203\223 \316!\211\203\223 \307\224 Y\205\222 X\205\222 S\211\307U\fb\210\2029 \204\245 \202\266 \f U\203\264 \202\266 \fb\210\n$.\n\207" [origin count step found next sstart 1 0 -1 nil t semantic-current-tag run-hook-with-args-until-failure senator-search-tag-filter-functions senator-search-tag-name send tag tstart tend searcher text bound noerror] 6 (#$ . 5612)]) #@79 Navigate to the next Semantic tag. Return the tag or nil if at end of buffer. (defalias 'senator-next-tag #[nil "\204 \305\306!\210`\307 \310\n\203D \311\n!\204D \312\n!\203D \n\211\313\n8)\314\f!\2035 \315\f!\2028 \f\316H*U\204z \317\n\"\204z \320\n!\211\204z \321!\211\203z \311\n!\203z \321\n\211\313\n8)\314\f!\203p \315\f!\202s \f\316H*!\211\204T \n\204\210 db\210\322\323!\210\202\312\n!\203\323 \n\211\313\n8)\314\f!\203\244 \315\f!\202\247 \f\316H*U\204\263 \317\n\"\203\323 \324\n\211\313\n8)\314\f!\203\312 \325\f!\202\315 \f\326H*b\210\202\360 \327\n\211\313\n8)\314\f!\203\352 \315\f!\202\355 \f\316H*b\210\330\n!\210\322\331\n\211A@)\n\211@) $\210\n+\207" [semantic-new-buffer-fcn-was-run where tag pos o error "Buffer was not parsed by Semantic." semantic-current-tag nil senator-skip-p senator-step-at-start-end-p 4 overlayp overlay-start 0 senator-middle-of-tag-p senator-step-at-parent semantic-find-tag-by-overlay-next message "End of buffer" "end" overlay-end 1 "start" senator-momentary-highlight-tag "%S: %s (%s)"] 6 (#$ . 6676) nil]) #@89 Navigate to the previous Semantic tag. Return the tag or nil if at beginning of buffer. (defalias 'senator-previous-tag #[nil "\204 \305\306!\210`\307 \310\n\203D \311\n!\204D \312\n!\203D \n\211\313\n8)\314\f!\2035 \315\f!\2028 \f\316H*U\204z \317\n\"\204z \320\n!\211\204z \321!\211\203z \311\n!\203z \321\n\211\313\n8)\314\f!\203p \322\f!\202s \f\323H*!\211\204T \n\204\210 eb\210\324\325!\210\202\312\n!\203\263 \n\211\313\n8)\314\f!\203\244 \315\f!\202\247 \f\316H*U\204\263 \317\n\"\203\323 \326\n\211\313\n8)\314\f!\203\312 \322\f!\202\315 \f\323H*b\210\202\360 \327\n\211\313\n8)\314\f!\203\352 \315\f!\202\355 \f\316H*b\210\330\n!\210\324\331\n\211A@)\n\211@) $\210\n+\207" [semantic-new-buffer-fcn-was-run where tag pos o error "Buffer was not parsed by Semantic." semantic-current-tag nil senator-skip-p senator-step-at-start-end-p 4 overlayp overlay-end 1 senator-middle-of-tag-p senator-step-at-parent senator-previous-tag-or-parent overlay-start 0 message "Beginning of buffer" "start" "end" senator-momentary-highlight-tag "%S: %s (%s)"] 6 (#$ . 7772) nil]) #@210 Search in tag names forward from point for STRING. Set point to the end of the occurrence found, and return point. See also the function `search-forward' for details on the BOUND, NOERROR and COUNT arguments. (defalias 'senator-search-forward #[(string &optional bound noerror count) "\304\305 \n%\207" [string bound noerror count senator-search search-forward] 6 (#$ . 8886) "sSemantic search: "]) #@232 Search in tag names forward from point for regular expression REGEXP. Set point to the end of the occurrence found, and return point. See also the function `re-search-forward' for details on the BOUND, NOERROR and COUNT arguments. (defalias 'senator-re-search-forward #[(regexp &optional bound noerror count) "\304\305 \n%\207" [regexp bound noerror count senator-search re-search-forward] 6 (#$ . 9294) "sSemantic regexp search: "]) #@213 Search in tag names forward from point for WORD. Set point to the end of the occurrence found, and return point. See also the function `word-search-forward' for details on the BOUND, NOERROR and COUNT arguments. (defalias 'senator-word-search-forward #[(word &optional bound noerror count) "\304\305 \n%\207" [word bound noerror count senator-search word-search-forward] 6 (#$ . 9737) "sSemantic word search: "]) #@218 Search in tag names backward from point for STRING. Set point to the beginning of the occurrence found, and return point. See also the function `search-backward' for details on the BOUND, NOERROR and COUNT arguments. (defalias 'senator-search-backward #[(string &optional bound noerror count) "\304\305 \n%\207" [string bound noerror count senator-search search-backward] 6 (#$ . 10159) "sSemantic backward search: "]) #@240 Search in tag names backward from point for regular expression REGEXP. Set point to the beginning of the occurrence found, and return point. See also the function `re-search-backward' for details on the BOUND, NOERROR and COUNT arguments. (defalias 'senator-re-search-backward #[(regexp &optional bound noerror count) "\304\305 \n%\207" [regexp bound noerror count senator-search re-search-backward] 6 (#$ . 10587) "sSemantic backward regexp search: "]) #@221 Search in tag names backward from point for WORD. Set point to the beginning of the occurrence found, and return point. See also the function `word-search-backward' for details on the BOUND, NOERROR and COUNT arguments. (defalias 'senator-word-search-backward #[(word &optional bound noerror count) "\304\305 \n%\207" [word bound noerror count senator-search word-search-backward] 6 (#$ . 11050) "sSemantic backward word search: "]) #@53 Type of last non-incremental search command called. (defvar senator-last-search-type nil (#$ . 11491)) #@58 Search forward for the previous search string or regexp. (defalias 'senator-nonincremental-repeat-search-forward #[nil "\303=\203 \203 \304 @!\207\305=\203 \n\203 \306\n@!\207\307\310!\207" [senator-last-search-type search-ring regexp-search-ring string senator-search-forward regexp senator-re-search-forward error "No previous search"] 2 (#$ . 11600) nil]) #@59 Search backward for the previous search string or regexp. (defalias 'senator-nonincremental-repeat-search-backward #[nil "\303=\203 \203 \304 @!\207\305=\203 \n\203 \306\n@!\207\307\310!\207" [senator-last-search-type search-ring regexp-search-ring string senator-search-backward regexp senator-re-search-backward error "No previous search"] 2 (#$ . 11972) nil]) #@37 Search for STRING nonincrementally. (defalias 'senator-nonincremental-search-forward #[(string) "\301 \303\232\203 \304\n@!\207\305 \306\"\210\304 !\207" [senator-last-search-type string search-ring "" senator-search-forward isearch-update-ring nil] 3 (#$ . 12348) "sSemantic search for string: "]) #@46 Search backward for STRING nonincrementally. (defalias 'senator-nonincremental-search-backward #[(string) "\301 \303\232\203 \304\n@!\207\305 \306\"\210\304 !\207" [senator-last-search-type string search-ring "" senator-search-backward isearch-update-ring nil] 3 (#$ . 12655) "sSemantic search for string: "]) #@60 Search for the regular expression STRING nonincrementally. (defalias 'senator-nonincremental-re-search-forward #[(string) "\303 \304\232\203 \305\n@!\207\306 \307\"\210\305 !\207" [senator-last-search-type string regexp-search-ring regexp "" senator-re-search-forward isearch-update-ring t] 3 (#$ . 12973) "sSemantic search for regexp: "]) #@69 Search backward for the regular expression STRING nonincrementally. (defalias 'senator-nonincremental-re-search-backward #[(string) "\303 \304\232\203 \305\n@!\207\306 \307\"\210\305 !\207" [senator-last-search-type string regexp-search-ring regexp "" senator-re-search-backward isearch-update-ring t] 3 (#$ . 13321) "sSemantic search for regexp: "]) (defvar senator--search-filter nil) #@186 In current buffer, limit search scope to tag CLASSES. CLASSES is a list of tag class symbols or nil. If nil only global filters in `senator-search-tag-filter-functions' remain active. (defalias 'senator-search-set-tag-class-filter #[(&optional classes) "\204 \304\202% 9\203 C\202% ;\203 \305\306\307!\"\202% \310\311C\"\312\313 \314#\210\315\301!\210\203\\ \316\317!\320\321\322#\323\301!\210\324C\325\326D\327DEE\330\313 \304\314$\210\331\332\n\"*\207\331\333!\207" [classes senator--search-filter names tag nil mapcar read split-string signal wrong-type-argument remove-hook senator-search-tag-filter-functions t kill-local-variable make-symbol "tag" mapconcat symbol-name "', `" make-local-variable lambda memq semantic-tag-class quote add-hook message "Limit search to `%s' tags" "Default search filter restored"] 6 (#$ . 13717) "sClasses: "]) #@23 Fold the current TAG. (defalias 'senator-fold-tag #[(&optional tag) "\301\206 \302 \303\"\207" [tag semantic-set-tag-folded semantic-current-tag t] 3 (#$ . 14591) nil]) #@23 Fold the current TAG. (defalias 'senator-unfold-tag #[(&optional tag) "\301\206 \302 \303\"\207" [tag semantic-set-tag-folded semantic-current-tag nil] 3 (#$ . 14768) nil]) #@23 Fold the current TAG. (defalias 'senator-fold-tag-toggle #[(&optional tag) "\206 \301 \302!\203 \303!\202 \304!)\207" [tag semantic-current-tag semantic-tag-folded-p senator-unfold-tag senator-fold-tag] 2 (#$ . 14949) nil]) #@304 Return a tag that is referred to by TAG. A "reference" could be any interesting feature of TAG. In C++, a function may have a `parent' which is non-local. If that parent which is only a reference in the function tag is found, we can jump to it. Some tags such as includes have other reference features. (defalias 'semantic-up-reference #[(tag) "\305\211\306\307\310!\306\204\"