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/org/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:07:18 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/org/org-footnote.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\207" [require org-macs org-compat] 2) #@44 Regular expression for matching footnotes. (defconst org-footnote-re "\\[\\(?:fn:\\([-_[:word:]]+\\)?:\\|\\(?:\\([0-9]+\\)\\]\\)\\|\\(fn:[-_[:word:]]+\\)\\)" (#$ . 632)) #@59 Regular expression matching the definition of a footnote. (defconst org-footnote-definition-re "^\\[\\([0-9]+\\|fn:[-_[:word:]]+\\)\\]" (#$ . 808)) #@50 Names of blocks where footnotes are not allowed. (defconst org-footnote-forbidden-blocks '("ascii" "beamer" "comment" "docbook" "example" "html" "latex" "odt" "src") (#$ . 962)) (byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\306\301\314\315&\210\310\316\317\320\306\301\314\321&\210\310\322\302\323\306\301\314\324&\210\310\325\326\327\306\301\314\330&\210\310\331\302\332\306\301\314\333&\210\310\334\302\335\306\301\314\324&\207" [custom-declare-group org-footnote nil "Footnotes in Org-mode." :tag "Org Footnote" :group org custom-declare-variable org-footnote-section "Footnotes" "Outline heading containing footnote definitions before export.\nThis can be nil, to place footnotes locally at the end of the current\noutline node. If can also be the name of a special outline heading\nunder which footnotes should be put.\nThis variable defines the place where Org puts the definition\nautomatically, i.e. when creating the footnote, and when sorting the notes.\nHowever, by hand you may place definitions *anywhere*.\nIf this is a string, during export, all subtrees starting with this\nheading will be removed after extracting footnote definitions." :type (choice (string :tag "Collect footnotes under heading") (const :tag "Define footnotes locally" nil)) org-footnote-tag-for-non-org-mode-files "Footnotes:" "Tag marking the beginning of footnote section.\nThe Org footnote engine can be used in arbitrary text files as well\nas in Org-mode. Outside Org mode, new footnotes are always placed at\nthe end of the file. When you normalize the notes, any line containing\nonly this tag will be removed, a new one will be inserted at the end\nof the file, followed by the collected and normalized footnotes.\n\nIf you don't want any tag in such buffers, set this variable to nil." (choice (string :tag "Collect footnotes under tag") (const :tag "Don't use a tag" nil)) org-footnote-define-inline "Non-nil means define footnotes inline, at reference location.\nWhen nil, footnotes will be defined in a special section near\nthe end of the document. When t, the [fn:label:definition] notation\nwill be used to define the footnote at the reference position." boolean org-footnote-auto-label t "Non-nil means define automatically new labels for footnotes.\nPossible values are:\n\nnil prompt the user for each label\nt create unique labels of the form [fn:1], [fn:2], ...\nconfirm like t, but let the user edit the created value. In particular,\n the label can be removed from the minibuffer, to create\n an anonymous footnote.\nrandom Automatically generate a unique, random label.\nplain Automatically create plain number labels like [1]" (choice (const :tag "Prompt for label" nil) (const :tag "Create automatic [fn:N]" t) (const :tag "Offer automatic [fn:N] for editing" confirm) (const :tag "Create a random label" random) (const :tag "Create automatic [N]" plain)) org-footnote-auto-adjust "Non-nil means automatically adjust footnotes after insert/delete.\nWhen this is t, after each insertion or deletion of a footnote,\nsimple fn:N footnotes will be renumbered, and all footnotes will be sorted.\nIf you want to have just sorting or just renumbering, set this variable\nto `sort' or `renumber'.\n\nThe main values of this variable can be set with in-buffer options:\n\n#+STARTUP: fnadjust\n#+STARTUP: nofnadjust" (choice (const :tag "Renumber" renumber) (const :tag "Sort" sort) (const :tag "Renumber and Sort" t)) org-footnote-fill-after-inline-note-extraction "Non-nil means fill paragraphs after extracting footnotes.\nWhen extracting inline footnotes, the lengths of lines can change a lot.\nWhen this option is set, paragraphs from which an inline footnote has been\nextracted will be filled again."] 8) #@52 Is point in a context where footnotes are allowed? (defalias 'org-footnote-in-valid-context-p #[nil "\303 \304\216\305 \206D \306 \206D \307 \206D \310`\311\"\206D \312 \206D \212\313 \210\314\315!)\206D \316\317!\203A \212\313 \210\314 !)\206D \320 \206D \321\n!*?\207" [save-match-data-internal message-cite-prefix-regexp org-footnote-forbidden-blocks match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) org-in-commented-line org-in-indented-comment-line org-inside-LaTeX-fragment-p get-text-property org-protected org-in-verbatim-emphasis beginning-of-line looking-at "[ ]*:[ ]+" derived-mode-p message-mode message-point-in-header-p org-in-block-p] 3 (#$ . 4762)]) #@150 Is the cursor at a footnote reference? If so, return a list containing its label, beginning and ending positions, and the definition, when inlined. (defalias 'org-footnote-at-reference-p #[nil "\306 \205\243 \307!\204 \310!\204 \212\311\312\313#)\205\243 \314\224\315 U?\205\243 \314\224\316\312\317\n\"*\206P \320\312\317\n\"*\206P \321\322!\205P \323\322\312\317\n\"*P\312\324\325\217\211\205\242 ` W\205\242 \212 b\210\326 \327\216\310!*\211\205z `AW*?\205\242 \330 \203\214 \331 S\332\"\205\242 \f \f\203\231 \321\322!\205\241 \333\334\314\225 S\"!F+\207" [org-footnote-re beg string num label end org-footnote-in-valid-context-p looking-at org-in-regexp re-search-backward nil t 0 point-at-bol 2 match-string-no-properties 3 match-string 1 "fn:" (scan-sexps beg 1) ((error)) match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) org-inside-latex-macro-p get-text-property org-protected org-trim buffer-substring-no-properties save-match-data-internal org-bracket-link-regexp linkp] 8 (#$ . 5486)]) #@379 Is point within a footnote definition? This matches only pure definitions like [1] or [fn:name] at the beginning of a line. It does not match references like [fn:name:definition], where the footnote text is included and defined locally. The return value will be nil if not at a footnote definition, and a list with label, start, end and definition of the footnote otherwise. (defalias 'org-footnote-at-definition-p #[nil "\212\306 \210\307 )\205p \212\310\210\212\311\312P\310\313#)\311\n \313#\205o \314\310\315\f\"*\316\224\316\225\317\320!\205= \212db\210\311 \310\313#)\310\210\321\322\n\322\323\260\324#\203V \316\224\202W `)\211\325\326\"!F,*\207" [org-outline-regexp-bol lim org-footnote-definition-re string num message-signature-separator beginning-of-line org-footnote-in-valid-context-p nil re-search-backward "\\|^[ ]*$" t 1 match-string-no-properties 0 derived-mode-p message-mode re-search-forward "\\|" "^[ ]*$" move org-trim buffer-substring-no-properties bound end beg-def beg label] 10 (#$ . 6566)]) #@337 Return complete reference of the next footnote. If LABEL is provided, get the next reference of that footnote. If BACKWARD is non-nil, find previous reference instead. LIMIT is the buffer position bounding the search. Return value is a list like those provided by `org-footnote-at-reference-p'. If no footnote is found, return nil. (defalias 'org-footnote-get-next-reference #[(&optional label backward limit) "\212\203\f \303\304\"\202 \305\306\215*\207" [label org-footnote-re label-fmt format "\\[%s[]:]" exit (byte-code "\203 \304\202 \305 \n\306#\204 \307\310\311\"\210\204 \312u\210\313 \211\203( \307\310\"\210)\202 " [backward label-fmt limit ref re-search-backward re-search-forward t throw exit nil -1 org-footnote-at-reference-p] 5)] 3 (#$ . 7625)]) #@254 Move point to next footnote reference or definition. LIMIT is the buffer position bounding the search. Return value is a list like those provided by `org-footnote-at-reference-p' or `org-footnote-at-definition-p'. If no footnote is found, return nil. (defalias 'org-footnote-next-reference-or-definition #[(limit) "\302`\303\304\215*\207" [ref origin nil exit (byte-code "\306 \307#\204 \nb\210\310\311\312\"\210\313u\210\314 \211\203\"