From: Jorge <jorge13515@gmail.com>
Cc: Emacs-orgmode@gnu.org
Subject: Re: Auto org-mobile-push kills buffer
Date: Sat, 29 Aug 2015 11:35:50 -0300 [thread overview]
Message-ID: <CAJR3QneeuE-rmqWu0uzfKZzT_nqXEv+NFtCRz1taeA5zb3dr5A@mail.gmail.com> (raw)
This has happened two more times.
On Wed, Aug 26, 2015 at 11:43 AM, Jorge <jorge13515@gmail.com> wrote:
> Hi. I use MobileOrg. To automate org-mobile-push I have installed
> the code below from
> https://github.com/matburt/mobileorg-android/wiki/FAQ. However, the
> code sometimes does weird things, such as killing the current buffer
> (happened twice).
> Is this a known bug? Also, in the last line, why is the lambda quoted?
>
> ;; https://github.com/matburt/mobileorg-android/wiki/FAQ
> (defvar org-mobile-push-timer nil
> "Timer that `org-mobile-push-timer' used to reschedule itself, or nil.")
>
> (defun org-mobile-push-with-delay (secs)
> (when org-mobile-push-timer
> (cancel-timer org-mobile-push-timer))
> (setq org-mobile-push-timer
> (run-with-idle-timer
> (* 1 secs) nil #'org-mobile-push)))
>
> (add-hook 'after-save-hook
> (lambda ()
> (when (eq major-mode 'org-mode)
> (dolist (file (org-mobile-files-alist))
> (if (string= (file-truename (expand-file-name (car file)))
> (file-truename (buffer-file-name)))
> (org-mobile-push-with-delay 30)))
> )))
>
> ;; refreshes agenda file each day
> (run-at-time "00:05" 86400 '(lambda () (org-mobile-push-with-delay 1)))
next reply other threads:[~2015-08-29 14:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-29 14:35 Jorge [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-08-26 14:43 Auto org-mobile-push kills buffer Jorge
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=CAJR3QneeuE-rmqWu0uzfKZzT_nqXEv+NFtCRz1taeA5zb3dr5A@mail.gmail.com \
--to=jorge13515@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).