From: Steve Dowe <stephen.dowe@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: org-mobile-pull not syncing back changes
Date: Wed, 30 Apr 2014 10:30:51 +0100 [thread overview]
Message-ID: <CAEvO2ffO-pewev_5PUgJeYcS1-nerbpqChZ4Zm0oATNF0PK8Aw@mail.gmail.com> (raw)
In-Reply-To: <87oazkuxbx.fsf@bzg.ath.cx>
[-- 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 --]
prev parent reply other threads:[~2014-04-30 9:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAEvO2ffO-pewev_5PUgJeYcS1-nerbpqChZ4Zm0oATNF0PK8Aw@mail.gmail.com \
--to=stephen.dowe@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).