| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/textmodes/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
(require 'reftex)
#@61 The history list of regular expressions used for citations.
(defvar reftex-cite-regexp-hist nil (#$ . 102))
#@48 Prompt and help string for citation selection.
(defconst reftex-citation-prompt "Select: [n]ext [p]revious [r]estrict [ ]full_entry [q]uit RET [?]Help+more" (#$ . 216))
(defconst reftex-citation-help " n / p Go to next/previous entry (Cursor motion works as well).\n g / r Start over with new regexp / Refine with additional regexp.\n SPC Show full database entry in other window.\n f Toggle follow mode: Other window will follow with full db entry.\n . Show insertion point.\n q Quit without inserting \\cite macro into buffer.\n TAB Enter citation key with completion.\n RET Accept current entry (also on mouse-2) and create \\cite macro.\n m / u Mark/Unmark the entry.\n e / E Create BibTeX file with all (marked/unmarked) entries\n a / A Put all (marked) entries into one/many \\cite commands.")
#@19
(fn &rest BODY)
(defalias 'reftex-with-special-syntax-for-bib '(macro . #[128 "\300\301\302\303\304BB\305BBE\207" [let ((saved-syntax (syntax-table))) unwind-protect progn (set-syntax-table reftex-syntax-table-for-bib) ((set-syntax-table saved-syntax))] 7 (#$ . 1095)]))
#@100 Return the expanded value of variable `reftex-default-bibliography'.
The expanded value is cached.
(defalias 'reftex-default-bibliography #[0 "\300\302N=\204 \303\300\304\305 \"#\210\303\300\302#\210\300\304N\207" [reftex-default-bibliography default-directory :reftex-raw put :reftex-expanded reftex-locate-bibliography-files] 6 (#$ . 1376)])
#@110 Test if BibTeX or \begin{thebibliography} should be used for the citation.
Find the bof of the current file.
(defalias 'reftex-bib-or-thebib #[0 "J\301\302 D\235\206\f \211\303\236\304\236>>\2048 \2048 \303\236\262\304\236\262>\262>\262GGV\203F \205K \303\207\205K \304\207" [reftex-docstruct-symbol bof buffer-file-name bib thebib] 8 (#$ . 1731)])
#@310 Return list of bibfiles for current document.
When using the chapterbib or bibunits package you should either
use the same database files everywhere, or separate parts using
different databases into different files (included into the mater file).
Then this function will return the applicable database files.
(defalias 'reftex-get-bibfile-list #[0 "\301 \210\302\303\304\305 D\306\305 DJ\235#A\206- \303\306\305 DJ\235\236A\206- \303J\236A\206- \307\310!\207" [reftex-docstruct-symbol reftex-access-scan-info reftex-last-assoc-before-elt bib eof buffer-file-name bof error "\\bibliography statement missing or .bib files not found"] 5 (#$ . 2115)])
#@354 Find BibTeX KEY in any file in FILE-LIST in another window.
If MARK-TO-KILL is non-nil, mark new buffer to kill.
If HIGHLIGHT is non-nil, highlight the match.
If ITEM in non-nil, search for bibitem instead of database entry.
If RETURN is non-nil, just return the entry and restore point.
(fn KEY FILE-LIST &optional MARK-TO-KILL HIGHLIGHT ITEM RETURN)
(defalias 'reftex-pop-to-bibtex-entry #[1538 "\203 \300\301!\302Q\202 \303\301!\304Qp\305\211\211\211\3062\267 \n\203\241 \n@\262\nA\262\307\"\211\262\204= \310\311\"\210q\210`\262~\210eb\210\312\305\313#\204W \211b\210\202 \314\224b\210`\262\203\200 \203l \314\225b\210`\315 !{\262\211b\210q\210\316\306\"\210\317!\210b\210\320\314!\210\203\230 \321\314\211\224\314\225#\210\316\306\322 \"\210\202 q\210\203\261 \310\323
\"\202\266 \310\324
\"0\207" ["\\\\bibitem[ ]*\\(\\[[^]]*\\]\\)?[ ]*{" regexp-quote "}" "@\\(?:\\w\\|\\s_\\)+[ \n
]*[{(][ \n
]*" "[,
\n}]" nil exit reftex-get-file-buffer-force error "No such file %s" re-search-forward t 0 reftex-end-of-bib-entry throw switch-to-buffer-other-window recenter reftex-highlight selected-window "No \\bibitem with citation key %s" "No BibTeX entry with citation key %s"] 16 (#$ . 2774)])
#@13
(fn ITEM)
(defalias 'reftex-end-of-bib-entry #[257 "\212\3001 \211\203 \301\210\302\303!\210\304\224S\202 \305\306!\210`0\202% \210d\307`\\^)\207" [(error) nil re-search-forward "\\\\bibitem\\|\\\\end{thebibliography}" 0 forward-list 1 300] 4 (#$ . 4021)])
#@119 Query for regexps for searching entries using DEFAULT as default.
Return a list of regular expressions.
(fn DEFAULT)
(defalias 'reftex--query-search-regexps #[257 "\302\303\304\305Q\205\f C\205 \306\307!\203 \307 \202 \310 J\236A\2030 \235\2030 \211\266\202\2025 B\266\202\311\211\211\312&\313\"\207" [reftex-mode reftex-docstruct-symbol split-string completing-read "Regex { && Regex...}: [" "]: " fboundp LaTeX-bibitem-list bibview-cache nil reftex-cite-regexp-hist "[ ]*&&[ ]*"] 9 (#$ . 4291)])
#@139 Extract bib entries which match regexps from BUFFERS.
BUFFERS is a list of buffers or file names.
Return list with entries.
(fn BUFFERS)
(defalias 'reftex-extract-bib-entries #[257 "\303\211\211<\203\f \202 C\303\211\211\211\211\211\211\211\211\304\305 !\262\306!\262
\f\203. \f\307\232\2032 \211C\262
\f@\262\f\fA\262\310\311
\206D \312\"\203L \313\314!\210\310\f\312\"\203X \313\315!\210\212\316 \317\320\"\216\n\203\254\n@\262\nA\262\321!\203\204 \322!\203\204 \262\202\214 \323?\"\262\204\232 \324\325\"\210\202\300 \324\326 \"\210\327!\204\300 \330\331\332\333\334\f!!\"!\203\300 rq\210\335\336\211\"\210)q\210\337 \317\340\"\216\341 !\210\212eb\210\342\303\336#\203\244\3432\240`\262\344\345\303\336#\204\360 \346\343\303\"\210`\262\347\225b\210\3501\351\352!0\210\202\f\210b\210\346\343\303\"\210`\262\353\354!\227\355\230\2041\353\354!\227\356\230\2041\353\354!\227\357\230\2041`W\2039b\210\346\343\303\"\210`{\262\n\f\262\203^\310@\"\204V\346\343\303\"\210A\262\202B\360\303#\262\361\nBB\262\362\363\"\203\202\364\365 !\"\262\366\367!BB\262\370\371\"B\262B\211\262\f0\210\202\323 *\210\372 \210\202` )\210)\237\262 \n\373\267\202\314\374 \375\"\207\374 \376\"\207\374 \377\"\207\207" [reftex-keep-temporary-buffers reftex-syntax-table-for-bib reftex-sort-bibtex-matches nil regexp-quote reftex-get-bibkey-default reftex--query-search-regexps (#1="") string-match "\\`[ ]*\\'" #1# user-error "Empty regular expression" "Regular expression matches the empty string" current-window-configuration make-closure #[0 "\301\300!\207" [V0 set-window-configuration] 2] bufferp buffer-live-p reftex-get-file-buffer-force message "No such BibTeX file %s (ignored)" "Scanning bibliography database %s" verify-visited-file-modtime y-or-n-p format "File %s changed on disk. Reread from disk? " file-name-nondirectory buffer-file-name revert-buffer t syntax-table #[0 "\301\300!\207" [V0 set-syntax-table] 2] set-syntax-table re-search-forward search-again re-search-backward "\\(\\`\\|[\n
]\\)[ ]*@\\(\\(?:\\w\\|\\s_\\)+\\)[ \n
]*[{(]" throw 0 (error) up-list 1 match-string 2 "string" "comment" "c" reftex-parse-bibtex-entry "&entry" assoc "crossref" append reftex-get-crossref-alist "&formatted" reftex-format-bib-entry reftex-get-bib-field "&key" reftex-kill-temporary-buffers #s(hash-table size 3 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (author 442 year 448 reverse-year 454)) sort reftex-bib-sort-author reftex-bib-sort-year reftex-bib-sort-year-reverse] 21 (#$ . 4812)])
#@109 Compare bib entries E1 and E2 by author.
The name of the first different author/editor is used.
(fn E1 E2)
(defalias 'reftex-bib-sort-author #[514 "\300\301\"\300\301\"\203# \211\203# @@\230\203# A\262\211A\262\202 @;\2035 \211@;\2035 @@\231\207@;?\207" [reftex-get-bib-names "author"] 6 (#$ . 7434)])
#@71 Compare bib entries E1 and E2 by year in ascending order.
(fn E1 E2)
(defalias 'reftex-bib-sort-year #[514 "\300\301\302\"A\206\n \303!\300\301\302\"A\206 \303!W\207" [string-to-number assoc "year" "0"] 7 (#$ . 7756)])
#@72 Compare bib entries E1 and E2 by year in descending order.
(fn E1 E2)
(defalias 'reftex-bib-sort-year-reverse #[514 "\300\301\302\"A\206\n \303!\300\301\302\"A\206 \303!V\207" [string-to-number assoc "year" "0"] 7 (#$ . 7985)])
#@53 Return the alist from a crossref ENTRY.
(fn ENTRY)
(defalias 'reftex-get-crossref-alist #[257 "\300\301\"A\302\212\214~\210\303\304\305!\306Q\302\307#\205- \310\224\262\3111'