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\300\302!\210\300\303!\210\304\305\306\307\310\311\312\301&\210\313\314\315\316\317DD\320\312\305\321\322&\210\313\323\315\316\324DD\325\312\305\326\327\321\330& \210\313\331\315\316\332DD\333\312\305\321\334&\210\313\335\315\316\336DD\337\326\340\341\342\321\343\312\305&\210\313\344\315\316\345DD\346\312\305\326\327\321\347& \210\313\350\315\316\351DD\352\312\305\326\327\321\334& \210\313\353\315\316\354DD\355\312\305\326\327\321\356& \207" [require org org-agenda cl-lib 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 MobileOrg.\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\norg-agenda-files\n This means include the complete, unrestricted list of files given in\n the variable `org-agenda-files'.\norg-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.\nEncryption uses AES-256, with a password given in\n`org-mobile-encryption-password'.\nWhen nil, plain files are kept on the server.\nTurning on encryption requires setting the same password in the MobileOrg\napplication. Before turning this on, check of MobileOrg does already\nsupport it - at the time of this writing it did not yet." 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.\nThis is a single password which is used for AES-256 encryption. The same\npassword must also be set in the MobileOrg 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) |
|
16 |
(defvar org-mobile-encryption-password-session nil) |
|
17 |
(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 MobileOrg: " t] 3]) |
|
18 |
(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' will be emptied it's 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) |
|
19 |
#@133 The capture file where the mobile stores captured notes and flags. |
|
20 |
This should not be changed, because MobileOrg assumes this name. |
|
21 |
(defconst org-mobile-capture-file "mobileorg.org" (#$ . 4790)) |
|
22 |
(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#] "The index file with links to all Org files that should be loaded by MobileOrg.\nRelative to `org-mobile-directory'. The Address field in the MobileOrg setup\nshould point to this file." :group org-mobile :type file org-mobile-agendas #[0 "\300\207" [all] 1] "The agendas that should be pushed to MobileOrg.\nAllowed values:\n\ndefault the weekly agenda and the global TODO list\ncustom all custom agendas defined by the user\nall the custom agendas and the default ones\nlist 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) |
|
23 |
#@279 Hook run before running `org-mobile-push'. |
|
24 |
This could be used to clean up `org-mobile-directory', for example to |
|
25 |
remove files that used to be included in the agenda but no longer are. |
|
26 |
The presence of such files would not really be a problem, but after time |
|
27 |
they may accumulate. |
|
28 |
(defvar org-mobile-pre-push-hook nil (#$ . 7029)) |
|
29 |
#@297 Hook run after running `org-mobile-push'. |
|
30 |
If Emacs does not have direct write access to the WebDAV directory used |
|
31 |
by the mobile device, this hook should be used to copy all files from the |
|
32 |
local staging directory `org-mobile-directory' to the WebDAV directory, |
|
33 |
for example using `rsync' or `scp'. |
|
34 |
(defvar org-mobile-post-push-hook nil (#$ . 7364)) |
|
35 |
#@286 Hook run before executing `org-mobile-pull'. |
|
36 |
If Emacs does not have direct write access to the WebDAV directory used |
|
37 |
by the mobile device, this hook should be used to copy the capture file |
|
38 |
`mobileorg.org' from the WebDAV location to the local staging |
|
39 |
directory `org-mobile-directory'. |
|
40 |
(defvar org-mobile-pre-pull-hook nil (#$ . 7718)) |
|
41 |
#@307 Hook run after running `org-mobile-pull', only if new items were found. |
|
42 |
If Emacs does not have direct write access to the WebDAV directory used |
|
43 |
by the mobile device, this hook should be used to copy the emptied |
|
44 |
capture file `mobileorg.org' back to the WebDAV directory, for example |
|
45 |
using `rsync' or `scp'. |
|
46 |
(defvar org-mobile-post-pull-hook nil (#$ . 8060)) |
|
47 |
#@668 Alist with flags and actions for mobile sync. |
|
48 |
When flagging an entry, MobileOrg will create entries that look like |
|
49 |
|
|
50 |
* F(action:data) [[id:entry-id][entry title]] |
|
51 |
|
|
52 |
This alist defines that the ACTION in the parentheses of F() |
|
53 |
should mean, i.e. what action should be taken. The :data part in |
|
54 |
the parenthesis is optional. If present, the string after the |
|
55 |
colon will be passed to the action function as the first argument |
|
56 |
variable. |
|
57 |
|
|
58 |
The car of each elements of the alist is an actions string. The |
|
59 |
cdr is a function that is called with the cursor on the headline |
|
60 |
of that entry. It should accept three arguments, the :data part, |
|
61 |
the old and new values for the entry. |
|
62 |
(defconst org-mobile-action-alist '(("edit" . org-mobile-edit)) (#$ . 8424)) |
|
63 |
#@62 List of files containing entries flagged in the latest pull. |
|
64 |
(defvar org-mobile-last-flagged-files nil (#$ . 9174)) |
|
65 |
(defvar org-mobile-files-alist nil) |
|
66 |
(defvar org-mobile-checksum-files nil) |
|
67 |
(defalias 'org-mobile-prepare-file-lists #[0 "\300 \302\211\207" [org-mobile-files-alist org-mobile-checksum-files nil] 2]) |
|
68 |
#@131 Expand the list in `org-mobile-files' to a list of existing files. |
|
69 |
Also exclude files matching `org-mobile-files-exclude-regexp'. |
|
70 |
(defalias 'org-mobile-files-alist #[0 "\301\235\205
\303 \235\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\225\321O\262\202w \333!\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=\203 \302\303\300\"\207\211\301=\203 \304\305\306 !\"\207\211;\203) \307!\203) \310\311\312#\207\211;\2037 \313!\2037 \211C\207\314\207" vconcat vector [org-agenda-text-search-extra-files 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 0 file-name-nondirectory] 13 (#$ . 9498)]) |
|
71 |
#@199 Push the current state of Org affairs to the target directory. |
|
72 |
This will create the index file, copy all agenda files there, and also |
|
73 |
create all custom agenda views, for upload to the mobile phone. |
|
74 |
(defalias 'org-mobile-push #[0 "\306 \212\214\307 \310\311\312\313\314!\315\"\316$\216\317\320!\210\321 \210\322 \210\323\324!\210\325\326\327\"\330 \210*\323\331!\210\332 \210\323\333!\210\334 \210\323\335!\210\336 \210\323\337!\210\340 \210\317\341!\210)\210-\342 \210\323\343!\207" [org-agenda-tag-filter org-agenda-redo-command org-agenda-buffer-name org-mobile-files-alist org-agenda-files inhibit-redisplay "*SUMO*" current-window-configuration make-byte-code 0 "\301\300!\207" vconcat vector [set-window-configuration] 2 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"] 7 (#$ . 10735) nil]) |
|
75 |
#@178 Hook that is run after content was moved to `org-mobile-inbox-for-pull'. |
|
76 |
The inbox file is visited by the current buffer, and the buffer is |
|
77 |
narrowed to the newly captured data. |
|
78 |
(defvar org-mobile-before-process-capture-hook nil (#$ . 11942)) |
|
79 |
#@178 Pull the contents of `org-mobile-capture-file' and integrate them. |
|
80 |
Apply all flagged actions, flag entries to be flagged and then call an |
|
81 |
agenda view showing the flagged items. |
|
82 |
(defalias 'org-mobile-pull #[0 "\302 \210\303\304!\210\305 \306!\204 \307\310!\202q \211\212\306!\203\" |