Re: [O] Syncing methods for org files and org-mobile.el

2017-01-16 Thread FAb
On 01/16/2017 03:48 PM, Karl Voit wrote:
> * Sean Escriva  wrote:
>> What do you use to sync org files across different machines?
> I am using WebDav for syncing with Android. I will switch from
> WebDav to SyncThing since it turned out to be a very neat and easy
> to use sync method with enhanced privacy.
>
> Apple decided not to support tools like SyncThing for political
> reasons, so no luck for iOS here.
>
> For non-mobile devices, I am using unison/rsync, git, and
> SyncThing.
>
Hi,

I used WebDav (ownCloud) with OrgMobile (Android) but for some php
reason I switched to ssh/scp and a dedicated key.

For my PCs I use git.

I works fine.


Best,

0xFAb




Re: [O] Syncing methods for org files and org-mobile.el

2017-01-16 Thread Karl Voit
* Sean Escriva  wrote:
>
> What do you use to sync org files across different machines?

I am using WebDav for syncing with Android. I will switch from
WebDav to SyncThing since it turned out to be a very neat and easy
to use sync method with enhanced privacy.

Apple decided not to support tools like SyncThing for political
reasons, so no luck for iOS here.

For non-mobile devices, I am using unison/rsync, git, and
SyncThing.

-- 
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/




Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Nick Dokos
Eric S Fraga  writes:

> On Friday, 13 Jan 2017 at 14:13, Anssi Saari wrote:
>> Between Emacsen files saved in Dropbox works fine (although I'd rather
>> not use Dropbox for anything) but on mobile Dropbox doesn't sync as far
>> as I know.
>
> I'm not sure what you mean but, in the Android version of mobileorg,
> syncing with Dropbox happens automatically with the frequency I specify.

I'm guessing he means that the syncing has to be event-driven, not
time-driven.  He wants the sync to happen just before emacs exits:
that way, everything is up to date. Time-driven syncing would be
racy.

I wonder if there is a before-exit hook that can be used.

-- 
Nick




Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Eric S Fraga
On Friday, 13 Jan 2017 at 14:13, Anssi Saari wrote:
> Between Emacsen files saved in Dropbox works fine (although I'd rather
> not use Dropbox for anything) but on mobile Dropbox doesn't sync as far
> as I know.

I'm not sure what you mean but, in the Android version of mobileorg,
syncing with Dropbox happens automatically with the frequency I specify.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-201-ga51c6f


signature.asc
Description: PGP signature


Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Anssi Saari
Eric S Fraga  writes:

> On Friday, 13 Jan 2017 at 08:50, Anssi Saari wrote:
>> When I tried MobileOrg I think I used Dropbox. But since initiating
>> manual sync from Emacs seemed mandatory I just didn't get much use out
>> of MobileOrg.
>
> But automatic sync in Emacs should be quite straightforward and is
> independent of the mobile end.  You can use a timer, for instance:

I have a few computers and they don't run all the time (let alone run
Emacs all the time) and I didn't want to setup a timer on all of
them. The need to sync for me is usually typing something in on a PC and
then having it available in my pocket. So the corner case for the timer
is that it has to trigger between me saving a file and shutting down or
hibernating or whatever on the PC which can be a pretty short time.

Between Emacsen files saved in Dropbox works fine (although I'd rather
not use Dropbox for anything) but on mobile Dropbox doesn't sync as far
as I know.




Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Gijs Hillenius
Eric S Fraga  writes:

> On Friday, 13 Jan 2017 at 08:50, Anssi Saari wrote:
>> When I tried MobileOrg I think I used Dropbox. But since initiating
>> manual sync from Emacs seemed mandatory I just didn't get much use out
>> of MobileOrg.
>
> But automatic sync in Emacs should be quite straightforward and is
> independent of the mobile end.  You can use a timer, for instance:
>
> ,[ C-h f run-with-idle-timer RET ]
> | run-with-idle-timer is an interactive compiled Lisp function in
> | ‘timer.el’.
> | 
> | (run-with-idle-timer SECS REPEAT FUNCTION &rest ARGS)
> | 
> | Perform an action the next time Emacs is idle for SECS seconds.
> | The action is to call FUNCTION with arguments ARGS.
> | SECS may be an integer, a floating point number, or the internal
> | time format returned by, e.g., ‘current-idle-time’.
> | If Emacs is currently idle, and has been idle for N seconds (N < SECS),
> | then it will call FUNCTION in SECS - N seconds from now.  Using
> | SECS <= N is not recommended if this function is invoked from an idle
> | timer, because FUNCTION will then be called immediately.
> | 
> | If REPEAT is non-nil, do the action each time Emacs has been idle for
> | exactly SECS seconds (that is, only once for each time Emacs becomes idle).
> | 
> | This function returns a timer object which you can use in ‘cancel-timer’.
> | 
> | [back]
> `
>
>>
>> So whatever you want to provide, make sure sync is automatic. And
>> preferably supporting private sync options too.

I have this in my emacs init.el 

(run-at-time "10:15" 86400 'org-mobile-push)

This works in combination with a cron job (a few minutes later) that
syncs the files to my 'cloud', where my phone picks them up.


signature.asc
Description: PGP signature


Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Eric S Fraga
On Friday, 13 Jan 2017 at 08:50, Anssi Saari wrote:
> When I tried MobileOrg I think I used Dropbox. But since initiating
> manual sync from Emacs seemed mandatory I just didn't get much use out
> of MobileOrg.

But automatic sync in Emacs should be quite straightforward and is
independent of the mobile end.  You can use a timer, for instance:

,[ C-h f run-with-idle-timer RET ]
| run-with-idle-timer is an interactive compiled Lisp function in
| ‘timer.el’.
| 
| (run-with-idle-timer SECS REPEAT FUNCTION &rest ARGS)
| 
| Perform an action the next time Emacs is idle for SECS seconds.
| The action is to call FUNCTION with arguments ARGS.
| SECS may be an integer, a floating point number, or the internal
| time format returned by, e.g., ‘current-idle-time’.
| If Emacs is currently idle, and has been idle for N seconds (N < SECS),
| then it will call FUNCTION in SECS - N seconds from now.  Using
| SECS <= N is not recommended if this function is invoked from an idle
| timer, because FUNCTION will then be called immediately.
| 
| If REPEAT is non-nil, do the action each time Emacs has been idle for
| exactly SECS seconds (that is, only once for each time Emacs becomes idle).
| 
| This function returns a timer object which you can use in ‘cancel-timer’.
| 
| [back]
`

>
> So whatever you want to provide, make sure sync is automatic. And
> preferably supporting private sync options too.
>
>

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-201-ga51c6f


signature.asc
Description: PGP signature


Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Anssi Saari
Sean Escriva  writes:

> Greetings fellow Org users,
>
> I'm the current maintainer for MobileOrg iOS[1] and am interested to
> get feedback from any org-mobile users. What do you use to sync org
> files across different machines, how could the current org-mobile
> workflow be improved (if at all)?

When I tried MobileOrg I think I used Dropbox. But since initiating
manual sync from Emacs seemed mandatory I just didn't get much use out
of MobileOrg.

So whatever you want to provide, make sure sync is automatic. And
preferably supporting private sync options too.




Re: [O] Syncing methods for org files and org-mobile.el

2017-01-12 Thread Eric Abrahamsen
Alan Schmitt  writes:

> On 2017-01-12 03:30, Sean Escriva  writes:
>
>> Greetings fellow Org users,
>>
>> I'm the current maintainer for MobileOrg iOS[1] and am interested to
>> get feedback from any org-mobile users. What do you use to sync org
>> files across different machines, how could the current org-mobile
>> workflow be improved (if at all)?
>
> I use git, and would very much like to be able to use that as a backend
> to synchronize (I'm trying to move away from dropbox).

I second this. The inability to use git directly was the main reason I
didn't end up using MobileOrg.



Re: [O] Syncing methods for org files and org-mobile.el

2017-01-12 Thread Alan Schmitt
On 2017-01-12 03:30, Sean Escriva  writes:

> Greetings fellow Org users,
>
> I'm the current maintainer for MobileOrg iOS[1] and am interested to
> get feedback from any org-mobile users. What do you use to sync org
> files across different machines, how could the current org-mobile
> workflow be improved (if at all)?

I use git, and would very much like to be able to use that as a backend
to synchronize (I'm trying to move away from dropbox).

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2016-12: 404.48, 2015-12: 401.85


signature.asc
Description: PGP signature