Function: org-mobile-pull
org-mobile-pull is an autoloaded, interactive and byte-compiled
function defined in org-mobile.el.gz.
Signature
(org-mobile-pull)
Documentation
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.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-mobile.el.gz
;;;###autoload
(defun org-mobile-pull ()
"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."
(interactive)
(org-mobile-check-setup)
(run-hooks 'org-mobile-pre-pull-hook)
(let ((insertion-marker (org-mobile-move-capture)))
(if (not (markerp insertion-marker))
(message "No new items")
(org-with-point-at insertion-marker
(save-restriction
(narrow-to-region (point) (point-max))
(run-hooks 'org-mobile-before-process-capture-hook)))
(org-with-point-at insertion-marker
(org-mobile-apply (point) (point-max)))
(move-marker insertion-marker nil)
(run-hooks 'org-mobile-post-pull-hook)
(when org-mobile-last-flagged-files
;; Make an agenda view of flagged entries, but only in the files
;; where stuff has been added.
(put 'org-agenda-files 'org-restrict org-mobile-last-flagged-files)
(let ((org-agenda-keep-restricted-file-list t))
(org-agenda nil "?"))))))