emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mobile-pull not syncing back changes
@ 2014-04-26 11:34 Steve Dowe
  2014-04-29 12:36 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Dowe @ 2014-04-26 11:34 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1444 bytes --]

Hi,

I seem to have a weird issue with org mobile sync.

Changes from my laptop save fine into my sync files in Dropbox, and get
pulled into the mobile app fine too.  The problem occurs when making a
change on mobile and syncing back. The file mobileorg.org gets written
correctly on the phone's Dropbox and arrives on the laptop ok, and when I
execute M-x org-mobile-pull, my designated index.org gets updated by Emacs
after it reads in the mobileorg.org changes.  So far so good, from what I
can tell.

The problem itself is that my org files then don't get updated with the
changes in index.org.  index.org never seems to get processed.  I have
cleared it out and started with a single change - simply an addition of a
TODO in one file, from the mobile app, and it never gets written to that
file.

Here are the pertinent bits of my .emacs :

(setq org-agenda-files (list "~/org/work.org"
                             "~/org/personal.org"
                             "~/org/capture.org"
                             "~/org/review.org"))

;; mobileOrg
(setq org-mobile-directory "~/Dropbox/orgsync")
(setq org-mobile-inbox-for-pull "~/org/index.org")


I'm using Emacs 24.3.1 on Debian Wheezy (although the same problem occurs
with this distro's default Emacs 23 too) and matburt's mobileorg on
Android.

Been putting off posting to the list in a vain effort to resolve this but I
guess I'm missing something obvious...

Thanks.
-- 
  Steve

[-- Attachment #2: Type: text/html, Size: 2247 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-mobile-pull not syncing back changes
  2014-04-26 11:34 org-mobile-pull not syncing back changes Steve Dowe
@ 2014-04-29 12:36 ` Bastien
  2014-04-30  9:30   ` Steve Dowe
  0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2014-04-29 12:36 UTC (permalink / raw)
  To: Steve Dowe; +Cc: emacs-orgmode

Hi Steve,

Steve Dowe <stephen.dowe@gmail.com> writes:

> I seem to have a weird issue with org mobile sync.

If you haven't already, perhaps you can fill an issue here:
  https://github.com/MobileOrg/mobileorg/issues

2 cts,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-mobile-pull not syncing back changes
  2014-04-29 12:36 ` Bastien
@ 2014-04-30  9:30   ` Steve Dowe
  0 siblings, 0 replies; 3+ messages in thread
From: Steve Dowe @ 2014-04-30  9:30 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2277 bytes --]

On 29 April 2014 13:36, Bastien <bzg@gnu.org> 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
;; from:
http://stackoverflow.com/questions/8432108/how-to-automatically-do-org-mobile-push-org-mobile-pull-in-emacs

(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

[-- Attachment #2: Type: text/html, Size: 4980 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-30  9:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-26 11:34 org-mobile-pull not syncing back changes Steve Dowe
2014-04-29 12:36 ` Bastien
2014-04-30  9:30   ` Steve Dowe

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).