;ELC
|
;;; Compiled
|
;;; in Emacs version 26.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!\210\300\303!\210\300\304!\210\305\306\307\310\311\312\313\302&\210\314\315\316\317\320DD\321\313\306\322\323&\210\314\324\316\317\325DD\326\313\306\322\327\330\331\332\333&\210\314\334\316\317\335DD\336\313\306\330\337\332\340\322\341&\210\314\342\316\317\343DD\344\313\306\322\345&\210\314\346\316\317\347DD\350\313\306\322\351&\210\314\352\316\317\353DD\354\313\306\322\355&\210\314\356\316\317\357DD\360\313\306\322\327&\210\314\361\316\317\362DD\363\313\306\322\327&\207" [require cl-lib org org-id vc-git custom-declare-group org-attach nil "Options concerning entry attachments in Org mode." :tag "Org Attach" :group custom-declare-variable org-attach-directory funcall function #[0 "\300\207" [#1="data/"] 1 #1#] "The directory where attachments are stored.\nIf this is a relative path, it will be interpreted relative to the directory\nwhere the Org file lives." :type directory org-attach-commit #[0 "\300\207" [t] 1] "If non-nil commit attachments with git.\nThis is only done if the Org file is in a git repository." boolean :version "26.1" :package-version (Org . "9.0") org-attach-git-annex-cutoff #[0 "\300\207" [32768] 1] "If non-nil, files larger than this will be annexed instead of stored." "24.4" (Org . "8.0") (choice (const :tag "None" nil) (integer :tag "Bytes")) org-attach-auto-tag #[0 "\300\207" [#2="ATTACH"] 1 #2#] "Tag that will be triggered automatically when an entry has an attachment." (choice (const :tag "None" nil) (string :tag "Tag")) org-attach-file-list-property #[0 "\300\207" [#3="Attachments"] 1 #3#] "The property used to keep a list of attachment belonging to this entry.\nThis is not really needed, so you may set this to nil if you don't want it.\nAlso, for entries where children inherit the directory, the list of\nattachments is not kept in this property." (choice (const :tag "None" nil) (string :tag "Tag")) org-attach-method #[0 "\300\207" [cp] 1] "The preferred method to attach a file.\nAllowed values are:\n\nmv rename the file to move it into the attachment directory\ncp copy the file\nln create a hard link. Note that this is not supported\n on all systems, and then the result is not defined.\nlns create a symbol link. Note that this is not supported\n on all systems, and then the result is not defined." (choice (const :tag "Copy" cp) (const :tag "Move/Rename" mv) (const :tag "Hard Link" ln) (const :tag "Symbol Link" lns)) org-attach-expert #[0 "\300\207" [nil] 1] "Non-nil means do not show the splash buffer with the attach dispatcher." org-attach-allow-inheritance #[0 "\300\207" [t] 1] "Non-nil means allow attachment directories be inherited."] 12)
|
#@73 Indicates if the last access to the attachment directory was inherited.
|
(defvar org-attach-inherited nil (#$ . 3092))
|
(byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313& \210\300\314\302\303\315DD\316\306\307\310\317\320\321\312\322&\210\300\323\302\303\324DD\325\306\307\320\326\310\317\312\327&\207" [custom-declare-variable org-attach-store-link-p funcall function #[0 "\300\207" [nil] 1] "Non-nil means store a link to a file when attaching it." :group org-attach :version "24.1" :type (choice (const :tag "Don't store link" nil) (const :tag "Link to origin location" t) (const :tag "Link to the attach-dir location" attached)) org-attach-archive-delete #[0 "\300\207" [nil] 1] "Non-nil means attachments are deleted upon archiving a subtree.\nWhen set to `query', ask the user instead." "26.1" :package-version (Org . "8.3") (choice (const :tag "Never delete attachments" nil) (const :tag "Always delete attachments" t) (const :tag "Query the user" query)) org-attach-annex-auto-get #[0 "\300\207" [ask] 1] "Confirmation preference for automatically getting annex files.\nIf \\='ask, prompt using `y-or-n-p'. If t, always get. If nil, never get." (Org . "9.0") (choice (const :tag "confirm with `y-or-n-p'" ask) (const :tag "always get from annex if necessary" t) (const :tag "never get from annex" nil))] 12)
|
#@116 The dispatcher for attachment commands.
|
Shows a list of commands and prompts for another key to execute a command.
|
(defalias 'org-attach #[0 "\306\211\307=\203 \310`\311\"\206 \310`\312\"\262\211\204 \313\314!\210\212\211\203* \315!q\210\211b\210\316\317!\210\212\320 \321\322\323\324\325!\326\"\327$\216 \204p \nr\330\331!q\210p\332 \210\306\211\317\211\317@A\333 \210\334\335!\210+\211B\336\337!\210\340!\210)\266\341\342\331!!\210\343\344!\210\345 \262\346\331!\203\210 \347\331!\210)\210)\350>\203\227 \351\352!\202\211\353>\203\247 \354C\351\352!)\202\211\355>\203\267 \356C\351\352!)\202\211\357>\203\307 \360C\351\352!)\202\211\361>\203\327 \362C\351\352!)\202\211\363>\203\347 \364C\351\365!)\202\211\366>\203\363 \351\367!\202\211\370>\203\377 \351\371!\202\211\372>\203\351\373!\202\211\374=\203\351\375!\202\211\376>\203#\351\377!\202\211\201D >\2033\351\201E !\202\211\201F >\203C\351\201G !\202\211\201H =\203S\351\201I !\202\211\201J =\203c\343\201K !\202\211\201L >\203s\351\201M !\202\211\201N >\203\203\351\201O !\202\211\313\201P \")\207" [major-mode org-attach-expert default-directory buffer-read-only buffer-file-name buffer-undo-list nil org-agenda-mode get-text-property org-hd-marker org-marker error "No task in current line" marker-buffer org-back-to-heading t current-window-configuration make-byte-code 0 "\301\300!\207" vconcat vector [set-window-configuration] 2 get-buffer-create "*Org Attach*" kill-all-local-variables erase-buffer run-hooks temp-buffer-setup-hook princ "Select an Attachment Command:\n\na Select a file and attach it to the task, using `org-attach-method'.\nc/m/l/y Attach a file using copy/move/link/symbolic-link method.\nu Attach a file from URL (downloading it).\nn Create a new attachment, as an Emacs buffer.\nz Synchronize the current task with its attachment\n directory, in case you added attachments yourself.\n\no Open current task's attachments.\nO Like \"o\", but force opening in Emacs.\nf Open current task's attachment directory.\nF Like \"f\", but force using dired in Emacs.\n\nd Delete one attachment, you will be prompted for a file name.\nD Delete all of a task's attachments. A safer way is\n to open the directory in dired and delete from there.\n\ns Set a specific attachment directory for this entry or reset to default.\ni Make children of the current entry inherit its attachment directory." internal-temp-output-buffer-show org-fit-window-to-buffer get-buffer-window message "Select command: [acmlzoOfFdD]" read-char-exclusive get-buffer kill-buffer (97 1) call-interactively org-attach-attach (99 3) cp (109 13) mv (108 12) ln (121 25) lns (117 21) url org-attach-url (110 14) org-attach-new (122 26) org-attach-sync (111 15) org-attach-open 79 org-attach-open-in-emacs (102 6) org-attach-reveal inhibit-modification-hooks inhibit-read-only standard-output org-attach-method (70) org-attach-reveal-in-emacs (100 4) org-attach-delete-one 68 org-attach-delete-all 113 "Abort" (115 19) org-attach-set-directory (105 9) org-attach-set-inherit "No such attachment command %c"] 10 (#$ . 4430) nil])
|
#@475 Return the directory associated with the current entry.
|
This first checks for a local property ATTACH_DIR, and then for an inherited
|
property ATTACH_DIR_INHERIT. If neither exists, the default mechanism
|
using the entry ID will be invoked to access the unique directory for the
|
current entry.
|
If the directory does not exist and CREATE-IF-NOT-EXISTS-P is non-nil,
|
the directory and (if necessary) the corresponding ID will be created.
|
|
(fn &optional CREATE-IF-NOT-EXISTS-P)
|
(defalias 'org-attach-dir #[256 "\304\211\305\304\306\"\305\304\307\"\211\262\203 \310!\210\202u \203I \305\304\306\311#\203I \212\214~\210\312\n!\2034 \nb\210\2028 \313\311!\210\304\314!+\262\310!\210\311\202u \310\304!\210\315`\"\262\211\204[ \203u \211\204c \316\317!\210\320\321\322\323\324O\324\304O#\320!\"\262\205\217 \203\210 \325!\204\210 \326\311\"\210\327!\205\217 \207" [org-attach-inherited org-attach-allow-inheritance org-entry-property-inherited-from org-attach-directory nil org-entry-get "ATTACH_DIR_INHERIT" "ATTACH_DIR" org-attach-check-absolute-path t marker-position org-back-to-heading org-attach-dir org-id-get error "ID retrieval/creation failed" expand-file-name format "%s/%s" 0 2 file-directory-p make-directory file-exists-p] 10 (#$ . 7665)])
|
#@331 Check if we have enough information to root the attachment directory.
|
When DIR is given, check also if it is already absolute. Otherwise,
|
assume that it will be relative, and check if `org-attach-directory' is
|
absolute, or if at least the current buffer has a file name.
|
Throw an error if we cannot root the directory.
|
|
(fn DIR)
|
(defalias 'org-attach-check-absolute-path #[257 "\211\203\n \301!\206 \301!\206 \302\303 !\206 \304\305!\207" [org-attach-directory file-name-absolute-p buffer-file-name buffer-base-buffer error "Need absolute `org-attach-directory' to attach in buffers without filename"] 3 (#$ . 8941)])
|
#@253 Set the ATTACH_DIR node property and ask to move files there.
|
The property defines the directory that is used for attachments
|
of the entry. When called with `\[universal-argument]', reset the directory to
|
the default ID based one.
|
|
(fn &optional ARG)
|
(defalias 'org-attach-set-directory #[256 "\301 \203 \302\303\304\"\210\202! \305\306\307\303\304\205 \310#\"\311\303\304#\266\301\310!\230\206, ??\205J \312\313!\203> |