emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-mobile-pull not syncing back changes


From: Steve Dowe
Subject: Re: [O] org-mobile-pull not syncing back changes
Date: Wed, 30 Apr 2014 10:30:51 +0100


On 29 April 2014 13:36, Bastien <address@hidden> wrote:
If you haven't already, perhaps you can fill an issue here:
  https://github.com/MobileOrg/mobileorg/issues

Hi Bastien,

Thanks for the suggestion.

I've been digging around and found it was actually some code in my .emacs file causing this not to work (although it used to previously).

The code was to automatically push/pull orgmode updates. I have since commented out the section that seemed to conflict, although I'm not sure why at the moment.

As you'll see, I haz copy and paste... :-)  I'm no elisp guru, although now that I have a little problem, it's good motivation to learn.

;; automatic org-mobile-push ---------------------------------

;; add hooks for org-mobile-push/pull

(add-hook 'after-init-hook 'org-mobile-pull)

;; but don't necessarily re-enable this, unless desired (last setting was: disabled)
(add-hook 'kill-emacs-hook 'org-mobile-push) 

;;; --- this section stopped org-mobile-pull picking up index.org changes and 
;;; --- also stopped mobileorg.org from being emptied after items copied from it
;; in case I'm "idle" :)
;(defvar my-org-mobile-sync-timer nil)
;(defvar my-org-mobile-sync-secs (* 60 20))

;(defun my-org-mobile-sync-pull-and-push ()
;  (org-mobile-pull)
;  (org-mobile-push)
;  (when (fboundp 'sauron-add-event)
;    (sauron-add-event 'my 3 "Called org-mobile-pull and org-mobile-push")))

;(defun my-org-mobile-sync-start ()
;  "Start automated `org-mobile-push'"
;  (interactive)
;  (setq my-org-mobile-sync-timer
;        (run-with-idle-timer my-org-mobile-sync-secs t
;                             'my-org-mobile-sync-pull-and-push)))

;(defun my-org-mobile-sync-stop ()
;  "Stop automated `org-mobile-push'"
;  (interactive)
;  (cancel-timer my-org-mobile-sync-timer))

;; (my-org-mobile-sync-start)

; ;; add after saving an org file
; (add-hook
;  'org-mode-hook
;  (lambda nil
;    (add-hook 'after-save-hook
;              (lambda nil (org-mobile-push))
;              nil 'local))) ;Only in the current buffer 

;;; --- end troublesome section ---

;; end automatic org-mobile-push ---------------------------------

Best wishes,
--
  Steve

reply via email to

[Prev in Thread] Current Thread [Next in Thread]