Current File : //kunden/usr/share/emacs/27.2/lisp/org/org-ctags.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\302\303\304\305\306\307\310\311&\207" [require org custom-declare-group org-ctags nil "Options concerning use of ctags within org mode." :tag "Org-Ctags" :group org-link] 8)
#@37 Activate ctags support in org mode?
(defvar org-ctags-enabled-p t (#$ . 609))
#@193 Regexp expression used by ctags external program.
The regexp matches tag destinations in Org files.
Format is: /REGEXP/TAGNAME/FLAGS,TAGTYPE/
See the ctags documentation for more information.
(defvar org-ctags-tag-regexp "/<<([^>]+)>>/\\1/d,definition/" (#$ . 694))
(byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313& \210\300\314\302\303\315DD\316\306\307\310\311\312\317\320\321&\207" [custom-declare-variable org-ctags-path-to-ctags funcall function #[0 "\300\301!\203 \301\207\302\207" [executable-find "ctags-exuberant" "ctags"] 2] "Name of the ctags executable file." :group org-ctags :version "24.1" :type file org-ctags-open-link-functions #[0 "\300\207" [(org-ctags-find-tag org-ctags-ask-rebuild-tags-file-then-find-tag org-ctags-ask-append-topic)] 1] "List of functions to be prepended to ORG-OPEN-LINK-FUNCTIONS when ORG-CTAGS is active." hook :options (org-ctags-find-tag org-ctags-ask-rebuild-tags-file-then-find-tag org-ctags-rebuild-tags-file-then-find-tag org-ctags-ask-append-topic org-ctags-append-topic org-ctags-ask-visit-buffer-or-file org-ctags-visit-buffer-or-file org-ctags-fail-silently)] 12)
#@87 List of all tags in the active TAGS file.
Created as a local variable in each buffer.
(defvar org-ctags-tag-list nil (#$ . 1833))
(byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313& \210\314\315\316\"\210\317\320\321\322\323$\210\324\320\325\"\207" [custom-declare-variable org-ctags-new-topic-template funcall function #[0 "\300\207" [#1="* <<%t>>\n\n\n\n\n\n"] 1 #1#] "Text to insert when creating a new org file via opening a hyperlink.\nThe following patterns are replaced in the string:\n `%t' - replaced with the capitalized title of the hyperlink" :group org-ctags :version "24.1" :type string add-hook org-mode-hook #[0 "\205 \301 \205 \302\303\301 !\304P!\305!\205 \306!\262\207" [org-ctags-enabled-p buffer-file-name expand-file-name file-name-directory "/TAGS" file-exists-p visit-tags-table] 3] ad-add-advice visit-tags-table (org-ctags-load-tag-list nil t (advice lambda nil (when (and org-ctags-enabled-p tags-file-name) (setq-local org-ctags-tag-list (org-ctags-all-tags-in-current-tags-table))))) after nil ad-activate t] 10)
(defalias 'org-ctags-enable #[0 "\302\303\304\305#\210\306 \211\205 \211@\307\310\306#\210A\266\202\202 \207" [org-ctags-enabled-p org-ctags-open-link-functions put org-mode find-tag-default-function org-ctags-find-tag-at-point t add-hook org-open-link-functions] 6])
#@194 TAG is a string. Search the active TAGS file for a matching tag.
If the tag is found, return a list containing the filename, line number, and
buffer position where the tag is found.
(fn TAG)
(defalias 'org-ctags-get-filename-for-tag #[257 "\204 \301\302 !\210\212\303\304!\210\205M r\305!q\210eb\210\306\307\310\311!\"\312\313#\203K \314\315\316!!\314\315\317!!\320\321!\203A \315\316!E\202F \322\323\324 \"\266\202\202L \312))\207" [tags-file-name call-interactively visit-tags-table visit-tags-table-buffer same get-file-buffer re-search-forward format "^.*%s\\([0-9]+\\),\\([0-9]+\\)$" regexp-quote nil t string-to-number match-string 1 2 re-search-backward "\f\n\\(.*\\),[0-9]+\n" error "Malformed TAGS file: %s" buffer-name] 6 (#$ . 3177) "sTag: "])
#@89 Read all tags defined in the active TAGS file, into a list of strings.
Return the list.
(defalias 'org-ctags-all-tags-in-current-tags-table #[0 "\301\204\n \302\303 !\210\212\304\305!\210r\306!q\210eb\210\307\310\301\311#\203, \312\313\314!!B\262\202 *\211\207" [tags-file-name nil call-interactively visit-tags-table visit-tags-table-buffer same get-file-buffer re-search-forward "^.*\\(.*\\)\\([0-9]+\\),\\([0-9]+\\)$" t substring-no-properties match-string 1] 5 (#$ . 3949) nil])
#@85 Replace all instances of SEARCH with REPLACE in STRING.
(fn SEARCH REPLACE STRING)
(defalias 'org-ctags-string-search-and-replace #[771 "\300\301!\302\211%\207" [replace-regexp-in-string regexp-quote t] 9 (#$ . 4445)])
#@152 Visit or create a file called `NAME.org', and insert a new topic.
The new topic will be titled NAME (or TITLE if supplied).
(fn NAME &optional TITLE)
(defalias 'org-ctags-open-file #[513 "\3011% \302\303\"\210\304\305!\210db\210\306\307\310\206 !#c\210\304\311!\210\312 0\207\313\314\"\207" [org-ctags-new-topic-template (error) org-open-file t message "Opened file OK" org-ctags-string-search-and-replace "%t" capitalize "Inserted new file text OK" org-mode-restart error "Error %S in org-ctags-open-file"] 6 (#$ . 4675) "sFile name: "])
(byte-code "\300\301\302\303\304$\210\305\301\306\"\207" [ad-add-advice xref-find-definitions (org-ctags-set-org-mark-before-finding-tag nil t (advice lambda nil "Before trying to find a tag, save our current position on org mark ring." (save-excursion (when (and (derived-mode-p 'org-mode) org-ctags-enabled-p) (org-mark-ring-push))))) before nil ad-activate t] 5)
#@108 Determine default tag to search for, based on text at point.
If there is no plausible default, return nil.
(defalias 'org-ctags-find-tag-at-point #[0 "\300\211\211\30112 \212\302\303!\210\304`\\\262)\212b\210\305\306!\210`S\262)V\205. `Y\205. `X0\2026 \210\2029 \204\237 \212\307\310!\210`\262)\212\311\310!\210`\262)V\204\237 \212\312 \211\262\205t \307\313\"\205t `\211\262V\205t \307\310!\205t `\211\262)\204\237 \212\314 \211\262\205\233 \311\313\"\205\233 `\211\262W\205\233 \311\310!\205\233 `\211\262)\205\243 \315\"\207" [nil (error) search-backward "[[" 2 search-forward "]" skip-syntax-backward "w_" skip-syntax-forward line-beginning-position "^w_" line-end-position buffer-substring-no-properties] 6 (#$ . 5594)])
#@202 This function is intended to be used in ORG-OPEN-LINK-FUNCTIONS.
Look for a tag called `NAME' in the current TAGS table. If it is found,
visit the file and location where the tag is found.
(fn NAME)
(defalias 'org-ctags-find-tag #[257 "p\300 \301\302 !\3031 \304!\210\3050\202\"