%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/org/ |
Current File : //usr/local/share/emacs/27.2/lisp/org/org-mobile.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&\210\314\324\316\317\325DD\326\313\306\327\330\322\331& \210\314\332\316\317\333DD\334\313\306\322\335&\210\314\336\316\317\337DD\340\327\341\342\343\322\344\313\306&\210\314\345\316\317\346DD\347\313\306\327\330\322\350& \210\314\351\316\317\352DD\353\313\306\327\330\322\335& \210\314\354\316\317\355DD\356\313\306\327\330\322\357& \207" [require cl-lib org org-agenda ol custom-declare-group org-mobile nil "Options concerning support for a viewer/editor on a mobile device." :tag "Org Mobile" :group custom-declare-variable org-mobile-files funcall function #[0 "\300\207" [(org-agenda-files)] 1] "Files to be staged for the mobile application.\n\nThis is basically a list of files and directories. Files will be staged\ndirectly. Directories will be search for files with the extension \".org\".\nIn addition to this, the list may also contain the following symbols:\n\n`org-agenda-files'\n This means include the complete, unrestricted list of files given in\n the variable `org-agenda-files'.\n\n`org-agenda-text-search-extra-files'\n Include the files given in the variable\n `org-agenda-text-search-extra-files'." :type (list :greedy t (option (const :tag "org-agenda-files" org-agenda-files)) (option (const :tag "org-agenda-text-search-extra-files" org-agenda-text-search-extra-files)) (repeat :inline t :tag "Additional files" (file))) org-mobile-files-exclude-regexp #[0 "\300\207" [#1=""] 1 #1#] "A regexp to exclude files from `org-mobile-files'." :version "24.1" regexp org-mobile-directory #[0 "\300\207" [#1#] 1 #1#] "The WebDAV directory where the interaction with the mobile takes place." directory org-mobile-allpriorities #[0 "\300\207" [#2="A B C"] 1 #2#] "Default set of priority cookies for the index file." "24.4" :package-version (Org . "8.0") string org-mobile-use-encryption #[0 "\300\207" [nil] 1] "Non-nil means keep only encrypted files on the WebDAV server.\n\nEncryption uses AES-256, with a password given in\n`org-mobile-encryption-password'. When nil, plain files are kept\non the server.\n\nTurning on encryption requires setting the same password in the\nmobile application. Before turning this on, check if the mobile\napplication does support it." boolean org-mobile-encryption-tempfile #[0 "\300\207" [#3="~/orgtmpcrypt"] 1 #3#] "File that is being used as a temporary file for encryption.\nThis must be local file on your local machine (not on the WebDAV server).\nYou might want to put this file into a directory where only you have access." org-mobile-encryption-password #[0 "\300\207" [#1#] 1 #1#] "Password for encrypting files uploaded to the server.\n\nThis is a single password which is used for AES-256 encryption. The same\npassword must also be set in the mobile application. All Org files,\nincluding \"mobileorg.org\" will be encrypted using this password.\n\nSECURITY CONSIDERATIONS:\n\nNote that, when Org runs the encryption commands, the password could\nbe visible briefly on your system with the `ps' command. So this method is\nonly intended to keep the files secure on the server, not on your own machine.\n\nAlso, if you set this variable in an init file (.emacs or .emacs.d/init.el\nor custom.el...) and if that file is stored in a way so that other can read\nit, this also limits the security of this approach. You can also leave\nthis variable empty - Org will then ask for the password once per Emacs\nsession." (string :tag "Password")] 12) (defvar org-mobile-encryption-password-session nil) (defalias 'org-mobile-encryption-password #[0 "\302!\206 \302 !\206 \303\304\305\"\211\207" [org-mobile-encryption-password org-mobile-encryption-password-session org-string-nw-p read-passwd "Password for mobile application: " t] 3]) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\207" [custom-declare-variable org-mobile-inbox-for-pull funcall function #[0 "\300\207" [#1="~/org/from-mobile.org"] 1 #1#] "The file where captured notes and flags will be appended to.\nDuring the execution of `org-mobile-pull', the file\n`org-mobile-capture-file' is emptied as soon as its contents have\nbeen appended to the file given here. This file should be in\n`org-directory', and not in the staging area or on the web server." :group org-mobile :type file] 8) #@144 The capture file where the mobile stores captured notes and flags. This must not be changed, because the mobile application assumes this name. (defconst org-mobile-capture-file "mobileorg.org" (#$ . 4809)) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\210\300\312\302\303\313DD\314\306\307\315\316\310\317& \210\300\320\302\303\321DD\322\306\307\310\323&\210\300\324\302\303\325DD\326\306\307\310\327&\210\300\330\302\303\331DD\332\306\307\310\333&\207" [custom-declare-variable org-mobile-index-file funcall function #[0 "\300\207" [#1="index.org"] 1 #1#] "Index file with links to all Org files.\nIt should be loaded by the mobile application. The file name is\nrelative to `org-mobile-directory'. The \"Address\" field in the\nmobile application setup should point to this file." :group org-mobile :type file org-mobile-agendas #[0 "\300\207" [all] 1] "The agendas that should be pushed to the mobile application.\n\nAllowed values:\n\n`default' the weekly agenda and the global TODO list\n`custom' all custom agendas defined by the user\n`all' the custom agendas and the default ones\n`list' a list of selection key(s) as string." :version "24.1" (choice (const :tag "Default Agendas" default) (const :tag "Custom Agendas" custom) (const :tag "Default and Custom Agendas" all) (repeat :tag "Selected" (string :tag "Selection Keys"))) org-mobile-force-id-on-agenda-items #[0 "\300\207" [t] 1] "Non-nil means make all agenda items carry an ID." boolean org-mobile-force-mobile-change #[0 "\300\207" [nil] 1] "Non-nil means force the change made on the mobile device.\nSo even if there have been changes to the computer version of the entry,\nforce the new value set on the mobile.\nWhen nil, mark the entry from the mobile with an error message.\nInstead of nil or t, this variable can also be a list of symbols, indicating\nthe editing types for which the mobile version should always dominate." (choice (const :tag "Always" t) (const :tag "Never" nil) (set :greedy t :tag "Specify" (const todo) (const tags) (const priority) (const heading) (const body))) org-mobile-checksum-binary #[0 "\300\301!\206 \300\302!\206 \300\303!\206 \300\304!\207" [executable-find "shasum" "sha1sum" "md5sum" "md5"] 2] "Executable used for computing checksums of agenda files." string] 10) #@279 Hook run before running `org-mobile-push'. This could be used to clean up `org-mobile-directory', for example to remove files that used to be included in the agenda but no longer are. The presence of such files would not really be a problem, but after time they may accumulate. (defvar org-mobile-pre-push-hook nil (#$ . 7122)) #@297 Hook run after running `org-mobile-push'. If Emacs does not have direct write access to the WebDAV directory used by the mobile device, this hook should be used to copy all files from the local staging directory `org-mobile-directory' to the WebDAV directory, for example using `rsync' or `scp'. (defvar org-mobile-post-push-hook nil (#$ . 7457)) #@286 Hook run before executing `org-mobile-pull'. If Emacs does not have direct write access to the WebDAV directory used by the mobile device, this hook should be used to copy the capture file `mobileorg.org' from the WebDAV location to the local staging directory `org-mobile-directory'. (defvar org-mobile-pre-pull-hook nil (#$ . 7811)) #@307 Hook run after running `org-mobile-pull', only if new items were found. If Emacs does not have direct write access to the WebDAV directory used by the mobile device, this hook should be used to copy the emptied capture file `mobileorg.org' back to the WebDAV directory, for example using `rsync' or `scp'. (defvar org-mobile-post-pull-hook nil (#$ . 8153)) #@678 Alist with flags and actions for mobile sync. When flagging an entry, the mobile application creates entries that look like * F(action:data) [[id:entry-id][entry title]] This alist defines that the ACTION in the parentheses of F() should mean, i.e. what action should be taken. The :data part in the parenthesis is optional. If present, the string after the colon will be passed to the action function as the first argument variable. The car of each elements of the alist is an actions string. The cdr is a function that is called with the cursor on the headline of that entry. It should accept three arguments, the :data part, the old and new values for the entry. (defconst org-mobile-action-alist '(("edit" . org-mobile-edit)) (#$ . 8517)) #@62 List of files containing entries flagged in the latest pull. (defvar org-mobile-last-flagged-files nil (#$ . 9277)) (defvar org-mobile-files-alist nil) (defvar org-mobile-checksum-files nil) (easy-menu-add-item org-org-menu nil '("MobileOrg" ["Push Files and Views" org-mobile-push t] ["Get Captured and Flagged" org-mobile-pull t] ["Find FLAGGED Tasks" (org-agenda nil "?") :active t :keys "\\[org-agenda] ?"] "--" ["Setup" (customize-group 'org-mobile) t])) (defalias 'org-mobile-prepare-file-lists #[0 "\300 \302\211\207" [org-mobile-files-alist org-mobile-checksum-files nil] 2]) #@131 Expand the list in `org-mobile-files' to a list of existing files. Also exclude files matching `org-mobile-files-exclude-regexp'. (defalias 'org-mobile-files-alist #[0 "\301>\205 \303 >\205 \304\305\306\307\310\311\312\313\314!\315\"\316\317%\"\"\320\321\307\322\"\"\323\324\n!!\325\326!P\321\211\211\211\211\211A\262 \242\211\262\203\201 \327!\204O \330\n\"\262\324!\262\235\2046 B\262\331\"\203r \332\333\225\"\262\202w \334!\262BB\262\2026 \237\207" [org-mobile-files org-agenda-text-search-extra-files org-directory agenda-archives t apply append mapcar make-byte-code 257 "\211\302\267\202 \303\304\300\"\207\305\306\307 !\"\207\211;\203# \310!\203# \311\312\313#\207\211;\2031 \314!\2031 \211C\207\315\207" vconcat vector [org-agenda-text-search-extra-files #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (org-agenda-files 6 org-agenda-text-search-extra-files 11)) org-agenda-files t delq agenda-archives copy-sequence file-directory-p directory-files full "\\.org\\'" file-exists-p nil] 5 "\n\n(fn F)" delq nil #[257 "\301\230?\205 \302\"?\205 \211\207" [org-mobile-files-exclude-regexp "" string-match] 4 "\n\n(fn F)"] file-name-as-directory file-truename "\\`" regexp-quote file-name-absolute-p expand-file-name string-match substring 0 file-name-nondirectory] 13 (#$ . 9870)]) #@199 Push the current state of Org affairs to the target directory. This will create the index file, copy all agenda files there, and also create all custom agenda views, for upload to the mobile phone. (defalias 'org-mobile-push #[0 "\306 \307\310!\311\312\313\314\315\316\317!\320\"\321$\"\266\212\214\322 \313\314\323\316\317!\324\"\321$\216\325\326!\210\327 \210\330 \210\331\332!\210\333\334\335\"\336 \210*\331\337!\210\340 \210\331\341!\210\342 \210\331\343!\210\344 \210\331\345!\210\346 \210\325\347!\210)\210-\350 \210\331\351!\207" [org-agenda-tag-filter org-agenda-redo-command org-agenda-buffer-name org-mobile-files-alist org-agenda-files inhibit-redisplay "*SUMO*" org-buffer-list agenda save-some-buffers nil make-byte-code 0 "p\300>\207" vconcat vector [] 2 current-window-configuration "\301\300!\207" [set-window-configuration] run-hooks org-mobile-pre-push-hook org-mobile-check-setup org-mobile-prepare-file-lists message "Creating agendas..." t mapcar car org-mobile-create-sumo-agenda "Creating agendas...done" org-save-all-org-buffers "Copying files..." org-mobile-copy-agenda-files "Writing index file..." org-mobile-create-index-file "Writing checksums..." org-mobile-write-checksums org-mobile-post-push-hook org-agenda-maybe-redo "Files for mobile viewer staged"] 9 (#$ . 11245) nil]) #@178 Hook that is run after content was moved to `org-mobile-inbox-for-pull'. The inbox file is visited by the current buffer, and the buffer is narrowed to the newly captured data. (defvar org-mobile-before-process-capture-hook nil (#$ . 12571)) #@178 Pull the contents of `org-mobile-capture-file' and integrate them. Apply all flagged actions, flag entries to be flagged and then call an agenda view showing the flagged items. (defalias 'org-mobile-pull #[0 "\302 \210\303\304!\210\305 \306!\204 \307\310!\202q \211\212\306!\203\"