Explorar o código

org mobile - call pre hooks earlier

* lisp/org-mobile.el (org-mobile-push): Move call to hook, make it the
first thing of the push operation.
Bastien Guerry %!s(int64=14) %!d(string=hai) anos
pai
achega
1bc0623be2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/org-mobile.el

+ 1 - 1
lisp/org-mobile.el

@@ -305,9 +305,9 @@ create all custom agenda views, for upload to the mobile phone."
 	  (org-agenda-redo-command org-agenda-redo-command))
       (save-excursion
 	(save-window-excursion
+	  (run-hooks 'org-mobile-pre-push-hook)
 	  (org-mobile-check-setup)
 	  (org-mobile-prepare-file-lists)
-	  (run-hooks 'org-mobile-pre-push-hook)
 	  (message "Creating agendas...")
 	  (let ((inhibit-redisplay t)) (org-mobile-create-sumo-agenda))
 	  (message "Creating agendas...done")