From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Syncing methods for org files and org-mobile.el Date: Fri, 13 Jan 2017 10:19:46 +0000 Message-ID: <87ziivdzy5.fsf@ucl.ac.uk> References: Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRzCi-0003gi-CR for emacs-orgmode@gnu.org; Fri, 13 Jan 2017 05:35:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRzCf-0005hx-NH for emacs-orgmode@gnu.org; Fri, 13 Jan 2017 05:35:28 -0500 Received: from mail-db5eur01on0111.outbound.protection.outlook.com ([104.47.2.111]:52625 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRzCf-0005gb-BZ for emacs-orgmode@gnu.org; Fri, 13 Jan 2017 05:35:25 -0500 In-Reply-To: (Anssi Saari's message of "Fri, 13 Jan 2017 08:50:58 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 | =E2=80=98timer.el=E2=80=99. |=20 | (run-with-idle-timer SECS REPEAT FUNCTION &rest ARGS) |=20 | 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., =E2=80=98current-idle-time=E2=80=99. | 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 <=3D N is not recommended if this function is invoked from an idle | timer, because FUNCTION will then be called immediately. |=20 | 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= ). |=20 | This function returns a timer object which you can use in =E2=80=98cancel= -timer=E2=80=99. |=20 | [back] `---- > > So whatever you want to provide, make sure sync is automatic. And > preferably supporting private sync options too. > > =2D-=20 : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-201-ga51c6f --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWHipwgAKCRDIkZPY//z2 fV9FAJ9pSx1FNKBDYzNpji+CpGi+E9RJjgCfQ8IzIeAmiFcoRMyb4BDvK5f8q2I= =HcH7 -----END PGP SIGNATURE----- --=-=-=--