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:07:48 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/org/org-mobile.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!\210\303\304\305\306\307\310\311\301&\210\312\313\314\315\311\304\316\317&\210\312\320\321\322\311\304\323\324\316\325& \210\312\326\321\327\311\304\316\330&\210\312\331\305\332\311\304\323\324\316\333& \210\312\334\335\336\311\304\323\324\316\330& \210\312\337\321\340\311\304\323\324\316\341& \207" [require org org-agenda 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 '(org-agenda-files) "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 "" "A regexp to exclude files from `org-mobile-files'." :version "24.1" regexp org-mobile-directory "The WebDAV directory where the interaction with the mobile takes place." directory org-mobile-use-encryption "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 to set 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 "~/orgtmpcrypt" "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 "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")] 10) (defvar org-mobile-encryption-password-session nil) (defalias 'org-mobile-encryption-password #[nil "\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]) #@304 The file where captured notes and flags will be appended to. During the execution of `org-mobile-pull', the file `org-mobile-capture-file' will be emptied it's contents have been appended to the file given here. This file should be in `org-directory', and not in the staging area or on the web server. (custom-declare-variable 'org-mobile-inbox-for-pull "~/org/from-mobile.org" '(#$ . 3944) :group 'org-mobile :type 'file) #@133 The capture file where the mobile stores captured notes and flags. This should not be changed, because MobileOrg assumes this name. (defconst org-mobile-capture-file "mobileorg.org" (#$ . 4375)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\305\313\314\306\315& \210\300\316\317\320\304\305\306\321&\210\300\322\323\324\304\305\306\325&\210\300\326\327\330\304\305\306\331&\210\300\332\333\334\304\305\306\335&\207" [custom-declare-variable org-mobile-index-file "index.org" "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 'all "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 t "Non-nil means make all agenda items carry an ID." boolean org-mobile-force-mobile-change nil "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-action-alist '(("edit" org-mobile-edit data old new)) "Alist with flags and actions for mobile sync.\nWhen flagging an entry, MobileOrg will create entries that look like\n\n * F(action:data) [[id:entry-id][entry title]]\n\nThis alist defines that the ACTION in the parentheses of F() should mean,\ni.e. what action should be taken. The :data part in the parenthesis is\noptional. If present, the string after the colon will be passed to the\naction form as the `data' variable.\nThe car of each elements of the alist is an actions string. The cdr is\nan Emacs Lisp form that will be evaluated with the cursor on the headline\nof that entry.\n\nFor now, it is not recommended to change this variable." (repeat (cons (string :tag "Action flag") (sexp :tag "Action form"))) org-mobile-checksum-binary (or (executable-find "shasum") (executable-find "sha1sum") (executable-find "md5sum") (executable-find "md5")) "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 (#$ . 7278)) #@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 (#$ . 7613)) #@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 (#$ . 7967)) #@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 (#$ . 8309)) #@62 List of files containing entries flagged in the latest pull. (defvar org-mobile-last-flagged-files nil (#$ . 8672)) (defvar org-mobile-files-alist nil) (defvar org-mobile-checksum-files nil) (defalias 'org-mobile-prepare-file-lists #[nil "\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 #[nil "\301\235\205 \306 \235\205 \307\310\311\312\313\"\"\314\315\312\316\"\"\317\320\f!!\321\322 !P\315\211\315\211\315\211A@\211\203\216 \323!\204S \324\f\"\320!\211\235\204: B\325\"\203{ \326\225\315O\202\201 \327!BB\202: \237.\n\207" [org-mobile-files org-agenda-text-search-extra-files include-archives files org-directory orgdir-uname agenda-archives t apply append mapcar #[(f) "\303=\203 \303\304 \"\207\302=\203 \305\306\307\n!\"\207;\203) \310!\203) \311\312\313#\207;\2037 \314!\2037 C\207\315\207" [f include-archives 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] 4] delete nil #[(f) "\302\230?\205 \303 \"?\205 \207" [org-mobile-files-exclude-regexp f "" string-match] 3] file-name-as-directory file-truename "\\`" regexp-quote file-name-absolute-p expand-file-name string-match 0 file-name-nondirectory orgdir-re uname seen rtn file link-name] 6 (#$ . 8998)]) #@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 #[nil "\306!\307\n\212\310 \311\216\312\313!\210\314 \210\315 \210\316\317!\210\320\321\322%\"&'\323 \210*\316\324!\210\325 \210\316\326!\210\327 \210\316\330!\210\331 \210\316\332!\210\333 \210\312\334!\210+\f\f(,\335 \210\336 !\203~ \337 !\204k \340 !\210\202~ \341 )\342\337 !!\210\343 \210\342)!\210))\316\344!\207" [org-agenda-buffer-name a-buffer org-agenda-tag-filter org-agenda-redo-command org-agenda-curbuf-name #1=#:wconfig get-buffer "*SUMO*" current-window-configuration ((set-window-configuration #1#)) 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 redraw-display buffer-live-p get-buffer-window kill-buffer selected-window select-window org-agenda-redo "Files for mobile viewer staged" org-mobile-files-alist org-agenda-files inhibit-redisplay org-agenda-this-buffer-name cw] 4 (#$ . 10236) 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 (#$ . 11639)) #@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 #[nil "\305 \210\306\307!\210\310 \311!\204 \312\313!\202l \212\311 !\203$ \314 !q\210\212 \206* `b\210\214`d}\210\306\315!\210,\212\311\n!\203D \314\n!q\210\212\n\206J `b\210\316`d\"\210+\317\211\223\210\306\320!\210\205l \321\322\323#\210\324\325\317\326\"))\207" [insertion-marker #1=#:--mpom #2=#:--mpom org-mobile-last-flagged-files org-agenda-keep-restricted-file-list org-mobile-check-setup run-hooks org-mobile-pre-pull-hook org-mobile-move-capture markerp message "No new items" marker-buffer org-mobile-before-process-capture-hook org-mobile-apply nil org-mobile-post-pull-hook put org-agenda-files org-restrict t org-agenda "?"] 4 (#$ . 11888) nil]) #@48 Check if org-mobile-directory has been set up. (defalias 'org-mobile-check-setup #[nil "\306 \210\203 ;\203 \307\310\"\203 \311!\203 \312!\204# \313\314!\210 \203? ;\203? \307\310 \"\203? \311 !\203? \312 !\204C \313\315!\210\n\203[ \n;\203[ \307\310\n\"\203[ \311\316\n!!\204_ \313\317!\210\203j \307\310\"\204n \313\320!\210\f\205\223 \307\310\321 \"\204~ \313\322!\210\323 !\204\211 \313\324 \"\210\325\326!?\205\223 \313\327!\207" [org-directory org-mobile-directory org-mobile-inbox-for-pull org-mobile-checksum-binary org-mobile-use-encryption org-mobile-encryption-tempfile org-mobile-cleanup-encryption-tempfile string-match "\\S-" file-exists-p file-directory-p error "Please set `org-directory' to the directory where your org files live" "Variable `org-mobile-directory' must point to an existing directory" file-name-directory "Variable `org-mobile-inbox-for-pull' must point to a file in an existing directory" "No executable found to compute checksums" org-mobile-encryption-password "To use encryption, you must set `org-mobile-encryption-password'" file-writable-p "Cannot write to encryption tempfile %s" executable-find "openssl" "OpenSSL is needed to encrypt files"] 3 (#$ . 12770)]) #@47 Write the index file in the WebDAV directory. (defalias 'org-mobile-create-index-file #[nil "\306\307!\310\"\311\312!\311\313!\314 \n\"\315\211\211\211\211\211\211\211\211\211456789:;<=>=@;\203A \316=BC=\317\320\321>\"!\210\322?!7\3237\322@!\"8\322A!5\320\321\324\320\321>\"!\"6B\203u C\202w ;\325\326\327!!DE\330\216rDq\210=\211A=@\2114\203\302 \331c\210\320\3324A\"\333\334\335 \336#\337\261\210\340 \235\323\f \"\3238\"8\323\f7\"7\202\207 8\204\314 7\203\336 \333\334\3358\336#\341\334\3357\336#\337\261\210\320\342<\"<\343\315<\"<\323<6\"6\3066\344\"6\345<6\315#6\346\334\3356\336#\337\261\210\347\334\3355\336#\337\261\210\350\337\261\210\351\314\n\352\"!\203+\353c\210>\211A>@\2114\203M4@:4A9\354\3559\211#c\210\202+ \356\357 !BFBF)rDq\210\360\315\211E\315\361%\210,B\205v\362C;\"\210\363 .\207" [org-mobile-files-alist org-mobile-index-file org-mobile-directory twds dwds kwds sort copy-sequence #[(a b) "A A\231\207" [a b] 2] default-value org-todo-keywords org-tag-alist expand-file-name nil sequence org-agenda-prepare-buffers mapcar car org-uniquify org-delete-all org-global-tags-completion-table get-buffer-create generate-new-buffer-name " *temp file*" ((byte-code "\301!\203\n \302!\210\301\207" [#1=#:temp-buffer buffer-name kill-buffer] 2)) "#+READONLY\n" #[(x) "\301\302\"\203 \303\211\224O\207\207" [x string-match "(" 0] 3] "#+TODO: " mapconcat identity " " "\n" "|" " | " #[(x) "\204 \301\207;\203 \207@\302=\203 \303\207@\304=\203 \305\207@\306=\203( \301\207<\205/ @\207" [x nil :startgroup "{" :endgroup "}" :newline] 2] delq #[(a b) "\227 \227\231\207" [a b] 2] append "#+TAGS: " "#+DRAWERS: " "#+ALLPRIORITIES: A B C" file-exists-p "agendas.org" "* [[file:agendas.org][Agenda Views]]\n" format "* [[file:%s][%s]]\n" md5 buffer-string write-region 0 org-mobile-encrypt-and-move org-mobile-cleanup-encryption-tempfile entry drawers tags done-kwds todo-kwds link-name file target-file def-tags def-todo files-alist org-done-keywords-for-agenda org-todo-keywords-for-agenda org-drawers-for-agenda org-mobile-use-encryption org-mobile-encryption-tempfile #1# #2=#:temp-file org-mobile-checksum-files] 14 (#$ . 13991)]) #@57 Copy all agenda files to the stage or WebDAV directory. (defalias 'org-mobile-copy-agenda-files #[nil "\306\211\211\211\211\211\211 !!\211A!@\211\203y @ A\307 !\203 \310\f\"\"\311!\312\n!\204B \313\n\314\"\210#\203P \315 \"\210\202W \316 \317#\210\320$\321\322\310 !!Q!\323\324 \"\203 \f\325\326 \"B%B%\202 \310&\"\" \212\327 !edU\203\245 \330c\210\331 \210#\203\245 \332'!\210\315' \"\210&\333\334 !B%B%)\335 \210\336!.\207" [org-mobile-files-alist check target-dir target-path link-name entry nil file-exists-p expand-file-name file-name-directory file-directory-p make-directory parents org-mobile-encrypt-and-move copy-file ok-if-exists shell-command-to-string " " shell-quote-argument string-match "[a-fA-F0-9]\\{30,40\\}" match-string 0 find-file "\n" save-buffer write-file md5 buffer-string org-mobile-cleanup-encryption-tempfile kill-buffer buf file files-alist org-mobile-directory org-mobile-use-encryption org-mobile-checksum-binary org-mobile-checksum-files org-mobile-capture-file org-mobile-encryption-tempfile] 8 (#$ . 16246)]) #@123 Create checksums for all files in `org-mobile-directory'. The table of checksums is written to the file mobile-checksums. (defalias 'org-mobile-write-checksums #[nil "\306\307\" \310\211\211\211\311\312\313!!\314\216rq\210\315\316\310\"\210 \211A@\211\205>