commit | author | age
|
76bbd0
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. |
|
7 |
|
|
8 |
;;; This file does not contain utf-8 non-ASCII characters, |
|
9 |
;;; and so can be loaded in Emacs versions earlier than 23. |
|
10 |
|
|
11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
12 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
13 |
|
|
14 |
|
|
15 |
(byte-code "\300\301!\210\302\303\304\305\306\307\310\301&\210\311\312\313\314\315DD\316\310\317\310\303\320\321\322\323&\210\311\324\313\314\325DD\326\310\303\322\327&\210\311\330\313\314\331DD\332\310\303\322\333&\210\311\334\313\314\335DD\336\310\303\322\337&\210\311\340\313\314\341DD\342\310\303\322\343&\210\311\344\313\314\345DD\346\310\303\322\343&\210\311\347\313\314\350DD\351\310\303\322\352&\207" [require org custom-declare-group org-id nil "Options concerning global entry identifiers in Org mode." :tag "Org ID" :group custom-declare-variable org-id-link-to-org-use-id funcall function #[0 "\300\207" [nil] 1] "Non-nil means storing a link to an Org file will use entry IDs.\n\\<org-mode-map>\nThe variable can have the following values:\n\nt Create an ID if needed to make a link to the current entry.\n\ncreate-if-interactive\n If `org-store-link' is called directly (interactively, as a user\n command), do create an ID to support the link. But when doing the\n job for capture, only use the ID if it already exists. The\n purpose of this setting is to avoid proliferation of unwanted\n IDs, just because you happen to be in an Org file when you\n call `org-capture' that automatically and preemptively creates a\n link. If you do want to get an ID link in a capture template to\n an entry not having an ID, create it first by explicitly creating\n a link to it, using `\\[org-store-link]' first.\n\ncreate-if-interactive-and-no-custom-id\n Like create-if-interactive, but do not create an ID if there is\n a CUSTOM_ID property defined in the entry.\n\nuse-existing\n Use existing ID, do not create one.\n\nnil Never use an ID to make a link, instead link using a text search for\n the headline text." org-link-store :version "24.3" :type (choice (const :tag "Create ID to make link" t) (const :tag "Create if storing link interactively" create-if-interactive) (const :tag "Create if storing link interactively and no CUSTOM_ID is present" create-if-interactive-and-no-custom-id) (const :tag "Only use existing" use-existing) (const :tag "Do not use ID to create link" nil)) org-id-uuid-program #[0 "\300\207" [#1="uuidgen"] 1 #1#] "The uuidgen program." string org-id-method #[0 "\300\207" [uuid] 1] "The method that should be used to create new IDs.\n\nAn ID will consist of the optional prefix specified in `org-id-prefix',\nand a unique part created by the method this variable specifies.\n\nAllowed values are:\n\norg Org's own internal method, using an encoding of the current time to\n microsecond accuracy, and optionally the current domain of the\n computer. See the variable `org-id-include-domain'.\n\nuuid Create random (version 4) UUIDs. If the program defined in\n `org-id-uuid-program' is available it is used to create the ID.\n Otherwise an internal functions is used." (choice (const :tag "Org's internal method" org) (const :tag "external: uuidgen" uuid)) org-id-prefix #[0 "\300\207" [nil] 1] "The prefix for IDs.\n\nThis may be a string, or it can be nil to indicate that no prefix is required.\nWhen a string, the string should have no space characters as IDs are expected\nto have no space characters in them." (choice (const :tag "No prefix") (string :tag "Prefix")) org-id-include-domain #[0 "\300\207" [nil] 1] "Non-nil means add the domain name to new IDs.\nThis ensures global uniqueness of IDs, and is also suggested by\nRFC 2445 in combination with RFC 822. This is only relevant if\n`org-id-method' is `org'. When uuidgen is used, the domain will never\nbe added.\nThe default is to not use this because we have no really good way to get\nthe true domain, and Org entries will normally not be shared with enough\npeople to make this necessary." boolean org-id-track-globally #[0 "\300\207" [t] 1] "Non-nil means track IDs through files, so that links work globally.\nThis work by maintaining a hash table for IDs and writing this table\nto disk when exiting Emacs. Because of this, it works best if you use\na single Emacs process, not many.\n\nWhen nil, IDs are not tracked. Links to IDs will still work within\na buffer, but not if the entry is located in another file.\nIDs can still be used if the entry with the id is in the same file as\nthe link." org-id-locations-file #[0 "\301\302P!\207" [user-emacs-directory convert-standard-filename ".org-id-locations"] 3] "The file for remembering in which file an ID was defined.\nThis variable is only relevant when `org-id-track-globally' is set." file] 12) |
|
16 |
#@40 List of files with IDs in those files. |
|
17 |
(defvar org-id-locations nil (#$ . 5008)) |
|
18 |
#@33 List of files that contain IDs. |
|
19 |
(defvar org-id-files nil (#$ . 5095)) |
|
20 |
(byte-code "\300\301\302\303\304DD\305\306\307\310\311&\210\300\312\302\303\313DD\314\306\307\310\315&\207" [custom-declare-variable org-id-extra-files funcall function #[0 "\300\207" [org-agenda-text-search-extra-files] 1] "Files to be searched for IDs, besides the agenda files.\nWhen Org reparses files to remake the list of files and IDs it is tracking,\nit will normally scan the agenda files, the archives related to agenda files,\nany files that are listed as ID containing in the current register, and\nany Org file currently visited by Emacs.\nYou can list additional files here.\nThis variable is only relevant when `org-id-track-globally' is set." :group org-id :type (choice (symbol :tag "Variable") (repeat :tag "List of files" (file))) org-id-search-archives #[0 "\300\207" [t] 1] "Non-nil means search also the archive files of agenda files for entries.\nThis is a possibility to reduce overhead, but it means that entries moved\nto the archives can no longer be found by ID.\nThis variable is only relevant when `org-id-track-globally' is set." boolean] 8) |
|
21 |
#@183 Create an ID for the current entry and return it. |
|
22 |
If the entry already has an ID, just return it. |
|
23 |
With optional argument FORCE, force the creation of a new ID. |
|
24 |
|
|
25 |
(fn &optional FORCE) |
|
26 |
(defalias 'org-id-get-create #[256 "\211\203\n \300`\301\302#\210\303`\304\"\207" [org-entry-put "ID" nil org-id-get create] 5 (#$ . 6247) "P"]) |
|
27 |
#@80 Copy the ID of the entry at point to the kill ring. |
|
28 |
Create an ID if necessary. |
|
29 |
(defalias 'org-id-copy #[0 "\300\301\302\303\"!\207" [org-kill-new org-id-get nil create] 4 (#$ . 6580) nil]) |
|
30 |
#@363 Get the ID property of the entry at point-or-marker POM. |
|
31 |
If POM is nil, refer to the entry at point. |
|
32 |
If the entry does not have an ID, the function returns nil. |
|
33 |
However, when CREATE is non nil, create an ID if none is present already. |
|
34 |
PREFIX will be passed through to `org-id-new'. |
|
35 |
In any case, the ID of the entry is returned. |
|
36 |
|
|
37 |
(fn &optional POM CREATE PREFIX) |
|
38 |
(defalias 'org-id-get #[768 "\212\300!\203
\301!q\210\212\214~\210\211\206 `b\210\302\303\304\"\211\2030 \211;\2030 \305\306\"\2030 \211\202H \205H \307!\262\310\304#\210\311\312\313 !\"\210\211\262+\207" [markerp marker-buffer org-entry-get nil "ID" string-match "\\S-" org-id-new org-entry-put org-id-add-location buffer-file-name buffer-base-buffer] 9 (#$ . 6776)]) |
|
39 |
#@307 Use `outline-path-completion' to retrieve the ID of an entry. |
|
40 |
TARGETS may be a setting for `org-refile-targets' to define |
|
41 |
eligible headlines. When omitted, all headlines in the current |
|
42 |
file are eligible. This function returns the ID of the entry. |
|
43 |
If necessary, the ID is created. |
|
44 |
|
|
45 |
(fn &optional TARGETS) |
|
46 |
(defalias 'org-id-get-with-outline-path-completion #[256 "\211\206 \303\211@@\203 \304\202 \305\306\307\310!\211\205& |