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:06:58 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/org/org-capture.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 org-mks] 2) #@49 Internal flag, noting if the clock was started. (defvar org-capture-clock-was-started nil (#$ . 623)) #@71 Marker pointing to the entry most recently stored with `org-capture'. (defvar org-capture-last-stored-marker (make-marker) (#$ . 731)) (defvar org-capture-link-is-already-stored nil) (byte-code "\300\301\302\303\304\305\306\307&\210\310\311\302\312\306\301\313\314\315\316& \210\310\317\302\320\306\301\313\314\315\321& \210\310\322\302\323\306\301\313\314\315\321& \210\310\324\302\325\306\301\313\314\315\321& \210\310\326\327\330\306\301\313\331\315\332& \207" [custom-declare-group org-capture nil "Options concerning capturing new entries." :tag "Org Capture" :group org custom-declare-variable org-capture-templates "Templates for the creation of new entries.\n\nEach entry is a list with the following items:\n\nkeys The keys that will select the template, as a string, characters\n only, for example \"a\" for a template to be selected with a\n single key, or \"bt\" for selection with two keys. When using\n several keys, keys using the same prefix key must be together\n in the list and preceded by a 2-element entry explaining the\n prefix key, for example\n\n (\"b\" \"Templates for marking stuff to buy\")\n\n The \"C\" key is used by default for quick access to the\n customization of the template variable. But if you want to use\n that key for a template, you can.\n\ndescription A short string describing the template, will be shown during\n selection.\n\ntype The type of entry. Valid types are:\n entry an Org-mode node, with a headline. Will be\n filed as the child of the target entry or as\n a top-level entry.\n item a plain list item, will be placed in the\n first plain list at the target\n location.\n checkitem a checkbox item. This differs from the\n plain list item only is so far as it uses a\n different default template.\n table-line a new line in the first table at target location.\n plain text to be inserted as it is.\n\ntarget Specification of where the captured item should be placed.\n In Org-mode files, targets usually define a node. Entries will\n become children of this node, other types will be added to the\n table or list in the body of this node.\n\n Most target specifications contain a file name. If that file\n name is the empty string, it defaults to `org-default-notes-file'.\n A file can also be given as a variable, function, or Emacs Lisp\n form.\n\n Valid values are:\n\n (file \"path/to/file\")\n Text will be placed at the beginning or end of that file\n\n (id \"id of existing org entry\")\n File as child of this entry, or in the body of the entry\n\n (file+headline \"path/to/file\" \"node headline\")\n Fast configuration if the target heading is unique in the file\n\n (file+olp \"path/to/file\" \"Level 1 heading\" \"Level 2\" ...)\n For non-unique headings, the full path is safer\n\n (file+regexp \"path/to/file\" \"regexp to find location\")\n File to the entry matching regexp\n\n (file+datetree \"path/to/file\")\n Will create a heading in a date tree for today's date\n\n (file+datetree+prompt \"path/to/file\")\n Will create a heading in a date tree, prompts for date\n\n (file+function \"path/to/file\" function-finding-location)\n A function to find the right location in the file\n\n (clock)\n File to the entry that is currently being clocked\n\n (function function-finding-location)\n Most general way, write your own function to find both\n file and location\n\ntemplate The template for creating the capture item. If you leave this\n empty, an appropriate default template will be used. See below\n for more details. Instead of a string, this may also be one of\n\n (file \"/path/to/template-file\")\n (function function-returning-the-template)\n\n in order to get a template from a file, or dynamically\n from a function.\n\nThe rest of the entry is a property list of additional options. Recognized\nproperties are:\n\n :prepend Normally newly captured information will be appended at\n the target location (last child, last table line,\n last list item...). Setting this property will\n change that.\n\n :immediate-finish When set, do not offer to edit the information, just\n file it away immediately. This makes sense if the\n template only needs information that can be added\n automatically.\n\n :empty-lines Set this to the number of lines the should be inserted\n before and after the new item. Default 0, only common\n other value is 1.\n\n :empty-lines-before Set this to the number of lines the should be inserted\n before the new item. Overrides :empty-lines for the\n number lines inserted before.\n\n :empty-lines-after Set this to the number of lines the should be inserted\n after the new item. Overrides :empty-lines for the\n number of lines inserted after.\n\n :clock-in Start the clock in this item.\n\n :clock-keep Keep the clock running when filing the captured entry.\n\n :clock-resume Start the interrupted clock when finishing the capture.\n Note that :clock-keep has precedence over :clock-resume.\n When setting both to `t', the current clock will run and\n the previous one will not be resumed.\n\n :unnarrowed Do not narrow the target buffer, simply show the\n full buffer. Default is to narrow it so that you\n only see the new stuff.\n\n :table-line-pos Specification of the location in the table where the\n new line should be inserted. It should be a string like\n \"II-3\", meaning that the new line should become the\n third line before the second horizontal separator line.\n\n :kill-buffer If the target file was not yet visited by a buffer when\n capture was invoked, kill the buffer again after capture\n is finalized.\n\nThe template defines the text to be inserted. Often this is an\norg-mode entry (so the first line should start with a star) that\nwill be filed as a child of the target headline. It can also be\nfreely formatted text. Furthermore, the following %-escapes will\nbe replaced with content and expanded in this order:\n\n %[pathname] Insert the contents of the file given by `pathname'.\n %(sexp) Evaluate elisp `(sexp)' and replace with the result.\n %<...> The result of format-time-string on the ... format specification.\n %t Time stamp, date only.\n %T Time stamp with date and time.\n %u, %U Like the above, but inactive time stamps.\n %i Initial content, copied from the active region. If %i is\n indented, the entire inserted text will be indented as well.\n %a Annotation, normally the link created with `org-store-link'.\n %A Like %a, but prompt for the description part.\n %l Like %a, but only insert the literal link.\n %c Current kill ring head.\n %x Content of the X clipboard.\n %k Title of currently clocked task.\n %K Link to currently clocked task.\n %n User name (taken from `user-full-name').\n %f File visited by current buffer when org-capture was called.\n %F Full path of the file or directory visited by current buffer.\n %:keyword Specific information for certain link types, see below.\n %^g Prompt for tags, with completion on tags in target file.\n %^G Prompt for tags, with completion on all tags in all agenda files.\n %^t Like %t, but prompt for date. Similarly %^T, %^u, %^U.\n You may define a prompt like: %^{Please specify birthday}t\n %^C Interactive selection of which kill or clip to use.\n %^L Like %^C, but insert as link.\n %^{prop}p Prompt the user for a value for property `prop'.\n %^{prompt} Prompt the user for a string and replace this sequence with it.\n A default value and a completion table ca be specified like this:\n %^{prompt|default|completion2|completion3|...}.\n %? After completing the template, position cursor here.\n %\\n Insert the text entered at the nth %^{prompt}, where `n' is\n a number, starting from 1.\n\nApart from these general escapes, you can access information specific to\nthe link type that is created. For example, calling `org-capture' in emails\nor in Gnus will record the author and the subject of the message, which you\ncan access with \"%:from\" and \"%:subject\", respectively. Here is a\ncomplete list of what is recorded for each link type.\n\nLink type | Available information\n------------------------+------------------------------------------------------\nbbdb | %:type %:name %:company\nvm, wl, mh, mew, rmail, | %:type %:subject %:message-id\ngnus | %:from %:fromname %:fromaddress\n | %:to %:toname %:toaddress\n | %:fromto (either \"to NAME\" or \"from NAME\")\n | %:date %:date-timestamp (as active timestamp)\n | %:date-timestamp-inactive (as inactive timestamp)\ngnus | %:group, for messages also all email fields\nw3, w3m | %:type %:url\ninfo | %:type %:file %:node\ncalendar | %:type %:date" :version "24.1" :type (repeat (choice :value (#1="" #1# entry (file "~/org/notes.org") #1#) (list :tag "Multikey description" (string :tag "Keys ") (string :tag "Description")) (list :tag "Template entry" (string :tag "Keys ") (string :tag "Description ") (choice :tag "Capture Type " :value entry (const :tag "Org entry" entry) (const :tag "Plain list item" item) (const :tag "Checkbox item" checkitem) (const :tag "Plain text" plain) (const :tag "Table line" table-line)) (choice :tag "Target location" (list :tag "File" (const :format #1# file) (file :tag " File")) (list :tag "ID" (const :format #1# id) (string :tag " ID")) (list :tag "File & Headline" (const :format #1# file+headline) (file :tag " File ") (string :tag " Headline")) (list :tag "File & Outline path" (const :format #1# file+olp) (file :tag " File ") (repeat :tag "Outline path" :inline t (string :tag "Headline"))) (list :tag "File & Regexp" (const :format #1# file+regexp) (file :tag " File ") (regexp :tag " Regexp")) (list :tag "File & Date tree" (const :format #1# file+datetree) (file :tag " File")) (list :tag "File & Date tree, prompt for date" (const :format #1# file+datetree+prompt) (file :tag " File")) (list :tag "File & function" (const :format #1# file+function) (file :tag " File ") (sexp :tag " Function")) (list :tag "Current clocking task" (const :format #1# clock)) (list :tag "Function" (const :format #1# function) (sexp :tag " Function"))) (choice :tag "Template" (string) (list :tag "File" (const :format #1# file) (file :tag "Template file")) (list :tag "Function" (const :format #1# function) (function :tag "Template function"))) (plist :inline t :options (((const :format "%v " :prepend) (const t)) ((const :format "%v " :immediate-finish) (const t)) ((const :format "%v " :empty-lines) (const 1)) ((const :format "%v " :clock-in) (const t)) ((const :format "%v " :clock-keep) (const t)) ((const :format "%v " :clock-resume) (const t)) ((const :format "%v " :unnarrowed) (const t)) ((const :format "%v " :kill-buffer) (const t))))))) org-capture-before-finalize-hook "Hook that is run right before a capture process is finalized.\nThe capture buffer is still current when this hook runs and it is\nwidened to the entire buffer." hook org-capture-after-finalize-hook "Hook that is run right after a capture process is finalized.\nSuitable for window cleanup." org-capture-prepare-finalize-hook "Hook that is run before the finalization starts.\nThe capture buffer is current and still narrowed." org-capture-bookmark t "When non-nil, add a bookmark pointing at the last stored\nposition when capturing." "24.3" boolean] 10) #@76 Plist for the current capture process, global, to avoid having to pass it. (defvar org-capture-plist nil (#$ . 13851)) #@352 Local variable holding the plist in a capture buffer. This is used to store the plist for use when finishing a capture process because another such process might have changed the global variable by then. Each time a new capture buffer has been set up, the global `org-capture-plist' is copied to this variable, which is local in the indirect buffer. (defvar org-capture-current-plist nil (#$ . 13977)) #@134 Local variable to store the value of the :clock-keep parameter. This is needed in case org-capture-finalize is called interactively. (defvar org-capture-clock-keep nil (#$ . 14387)) #@66 Add properties to the capture property list `org-capture-plist'. (defalias 'org-capture-put #[(&rest stuff) "\205 \302 \211A@\211A@#\202 \207" [stuff org-capture-plist plist-put] 5 (#$ . 14575)]) #@258 Get properties from the capture property list `org-capture-plist'. When LOCAL is set, use the local variable `org-capture-current-plist', this is necessary after initialization of the capture process, to avoid conflicts with other active capture processes. (defalias 'org-capture-get #[(prop &optional local) "\304\203 \202\n \n\"\207" [local org-capture-current-plist org-capture-plist prop plist-get] 3 (#$ . 14786)]) #@234 Is PROP a property in `org-capture-plist'. When LOCAL is set, use the local variable `org-capture-current-plist', this is necessary after initialization of the capture process, to avoid conflicts with other active capture processes. (defalias 'org-capture-member #[(prop &optional local) "\304\203 \202\n \n\"\207" [local org-capture-current-plist org-capture-plist prop plist-get] 3 (#$ . 15217)]) #@137 Keymap for `org-capture-mode', a minor mode. Use this map to set additional keybindings for when Org-mode is used for a capture buffer. (defvar org-capture-mode-map (make-sparse-keymap) (#$ . 15627)) #@40 Hook for the minor `org-capture-mode'. (defvar org-capture-mode-hook nil (#$ . 15833)) #@101 Non-nil if Org-Capture mode is enabled. Use the command `org-capture-mode' to change this variable. (defvar org-capture-mode nil (#$ . 15927)) (make-variable-buffer-local 'org-capture-mode) #@126 Minor mode for special key bindings in a capture buffer. Turning on this mode runs the normal hook `org-capture-mode-hook'. (defalias 'org-capture-mode #[(&optional arg) "\305 \306=\203 \n?\202 \307 !\310V\311\312\313\f!L\210*\314\315\n\203) \316\202* \317\"\210\320\321!\203K \305 \203>