* org-mobile-pull with files in multiple directories?
@ 2014-02-03 0:00 Adam Spiers
0 siblings, 0 replies; only message in thread
From: Adam Spiers @ 2014-02-03 0:00 UTC (permalink / raw)
To: org-mode mailing list
Hi all,
I'm trying to figure out how to get org-mobile-pull to work for me. I
want to be able to edit files from multiple directories via MobileOrg,
e.g.:
~/org/TODO.org
~/work/TODO.org
~/my-project/TODO.org
~/org/notes/my-hobby.org
I have a sync-org shell-script which copies them into a temporary
directory, and then runs the following via emacs --batch --eval:
(let ((org-mobile-files '("/path/to/tmpdir")))
(require 'org-mobile nil 'noerror)
(org-mobile-push))
org-mobile-directory is set to an scpx:... path so that the push
happens via TRAMP to my public server. This all works fine.
However, when I run org-mobile-pull, edits to ~/org/notes/my-hobby.org
fail, and instead an error is appended to the file pointed to by
`org-mobile-inbox-for-pull', e.g.
* Heading not found on level 1: journal F(edit:body) [[olp:my-hobby.org:journal][a heading]]
I have examined the code in org-mobile.el, and I'm pretty sure that
this is due to org-mobile-locate-entry containing the following code:
...
(setq file (expand-file-name file org-directory))
(setq path (mapcar 'org-link-unescape
(org-split-string path "/")))
(org-find-olp (cons file path))))))
org-directory is ~/org, so it only succeeds in locating files which
live directly in ~/org.
Is this a known limitation, and if so, can anyone suggest a good way
to work around it?
Thanks!
Adam
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-03 0:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-03 0:00 org-mobile-pull with files in multiple directories? Adam Spiers
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).