Przeglądaj źródła

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 14 lat temu
rodzic
commit
1bc0623be2
1 zmienionych plików z 1 dodań i 1 usunięć
  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")