%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/org/ |
Current File : //usr/local/share/emacs/27.2/lisp/org/org-attach.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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\324\325& \210\314\326\316\317\327DD\330\313\306\322\331\332\333\324\334&\210\314\335\316\317\336DD\337\313\306\322\340&\210\314\341\316\317\342DD\343\313\306\332\344\322\345& \210\314\346\316\317\347DD\350\313\306\322\351&\210\314\352\316\317\353DD\354\313\306\322\331&\210\314\355\316\317\356DD\357\313\306\322\360&\210\314\361\316\317\362DD\363\313\306\364\365\322\366& \210\314\367\316\317\370DD\371\313\306\364\372\332\373\322\374&\207" [require cl-lib org ol org-id custom-declare-group org-attach nil "Options concerning attachments in Org mode." :tag "Org Attach" :group custom-declare-variable org-attach-id-dir 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 :safe stringp org-attach-dir-relative #[0 "\300\207" [nil] 1] "Non-nil means directories in DIR property are added as relative links.\nDefaults to absolute location." boolean :package-version (Org . "9.3") booleanp 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-preferred-new-method #[0 "\300\207" [id] 1] "Preferred way to attach to nodes without existing ID and DIR property.\nThis choice is used when adding attachments to nodes without ID\nand DIR properties.\n\nAllowed values are:\n\nid Create and use an ID parameter\ndir Create and use a DIR parameter\nask Ask the user for input of which method to choose\nnil Prefer to not create a new parameter\n\n nil means that ID or DIR has to be created explicitly\n before attaching files." (org . "9.3") (choice (const :tag "ID parameter" id) (const :tag "DIR parameter" dir) (const :tag "Ask user" ask) (const :tag "Don't create" nil)) 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-use-inheritance #[0 "\300\207" [selective] 1] "Attachment inheritance for the outline.\n\nEnabling inheritance for org-attach implies two things. First,\nthat attachment links will look through all parent headings until\nit finds the linked attachment. Second, that running org-attach\ninside a node without attachments will make org-attach operate on\nthe first parent heading it finds with an attachment.\n\nSelective means to respect the inheritance setting in\n`org-use-property-inheritance'." (choice (const :tag "Don't use inheritance" nil) (const :tag "Inherit parent node attachments" t) (const :tag "Respect org-use-property-inheritance" selective)) org-attach-store-link-p #[0 "\300\207" [nil] 1] "Non-nil means store a link to a file when attaching it." :version "24.1" (choice (const :tag "Don't store link" nil) (const :tag "Link to origin location" t) (const :tag "Attachment link to the attach-dir location" attached) (const :tag "File link to the attach-dir location" file)) 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" (Org . "8.3") (choice (const :tag "Never delete attachments" nil) (const :tag "Always delete attachments" t) (const :tag "Query the user" query))] 12) #@168 Translate an UUID ID into a folder-path. Default format for how Org translates ID properties to a path for attachments. Useful if ID is generated with UUID. (fn ID) (defalias 'org-attach-id-uuid-folder-format #[257 "\300\301\302\303\304#\302\304\"#\207" [format "%s/%s" substring 0 2] 7 (#$ . 4474)]) #@205 Translate an ID based on a timestamp to a folder-path. Useful way of translation if ID is generated based on ISO8601 timestamp. Splits the attachment folder hierarchy into year-month, the rest. (fn ID) (defalias 'org-attach-id-ts-folder-format #[257 "\300\301\302\303\304#\302\304\"#\207" [format "%s/%s" substring 0 6] 7 (#$ . 4786)]) (byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313& \207" [custom-declare-variable org-attach-id-to-path-function-list funcall function #[0 "\300\207" [(org-attach-id-uuid-folder-format org-attach-id-ts-folder-format)] 1] "List of functions parsing an ID string into a folder-path.\nThe first function in this list defines the preferred function\nwhich will be used when creating new attachment folders. All\nfunctions of this list will be tried when looking for existing\nattachment folders based on ID." :group org-attach :package-version (Org . "9.3") :type (repeat (function :tag "Function with ID as input"))] 10) #@83 Hook to be called when files have been added or removed to the attachment folder. (defvar org-attach-after-change-hook nil (#$ . 5764)) #@146 Hook that is invoked by `org-attach-open'. Created mostly to be compatible with org-attach-git after removing git-functionality from this file. (defvar org-attach-open-hook nil (#$ . 5907)) (byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313& \207" [custom-declare-variable org-attach-commands funcall function #[0 "\300\207" [(((97 1) org-attach-attach "Select a file and attach it to the task, using `org-attach-method'.") ((99 3) org-attach-attach-cp "Attach a file using copy method.") ((109 13) org-attach-attach-mv "Attach a file using move method.") ((108 12) org-attach-attach-ln "Attach a file using link method.") ((121 25) org-attach-attach-lns "Attach a file using symbolic-link method.") ((117 21) org-attach-url "Attach a file from URL (downloading it).") ((98) org-attach-buffer "Select a buffer and attach its contents to the task.") ((110 14) org-attach-new "Create a new attachment, as an Emacs buffer.") ((122 26) org-attach-sync "Synchronize the current node with its attachment\n directory, in case you added attachments yourself.\n") ((111 15) org-attach-open "Open current node's attachments.") ((79) org-attach-open-in-emacs "Like \"o\", but force opening in Emacs.") ((102 6) org-attach-reveal "Open current node's attachment directory. Create if missing.") ((70) org-attach-reveal-in-emacs "Like \"f\", but force using Dired in Emacs.\n") ((100 4) org-attach-delete-one "Delete one attachment, you will be prompted for a file name.") ((68) org-attach-delete-all "Delete all of a node's attachments. A safer way is\n to open the directory in dired and delete from there.\n") ((115 19) org-attach-set-directory "Set a specific attachment directory for this entry. Sets DIR property.") ((83 19) org-attach-unset-directory "Unset the attachment directory for this entry. Removes DIR property.") ((113) (lambda nil (interactive) (message "Abort")) "Abort."))] 1] "The list of commands for the attachment dispatcher.\nEach entry in this list is a list of three elements:\n- A list of keys (characters) to select the command (the fist\n character in the list is shown in the attachment dispatcher's\n splash buffer and minibuffer prompt).\n- A command that is called interactively when one of these keys\n is pressed.\n- A docstring for this command in the attachment dispatcher's\n splash buffer." :group org-attach :package-version (Org . "9.3") :type (repeat (list (repeat :tag "Keys" character) (function :tag "Command") (string :tag "Docstring")))] 10) #@116 The dispatcher for attachment commands. Shows a list of commands and prompts for another key to execute a command. (defalias 'org-attach #[0 "\305\306\307\"\306C\306\310=\203\"