From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Rudi Schlatte <rudi@constantly.at>
Cc: 19448-done@debbugs.gnu.org
Subject: bug#19448: 25.0.50; org-mobile-push should offer to save unsaved agenda files
Date: Wed, 03 Jan 2018 15:47:04 +0100 [thread overview]
Message-ID: <87o9mbdmon.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <56147641-A364-4D1E-A7A6-0CF602EBA828@constantly.at> (Rudi Schlatte's message of "Fri, 26 Dec 2014 10:58:23 +0100")
Hello,
Rudi Schlatte <rudi@constantly.at> writes:
> When trying to call `org-mobile-push' while an org file in
> org-agenda-files is open and modified, `org-mobile-push' displays a
> prompt like the following in the minibuffer:
>
> Non-existent agenda file ~/Documents/Org/.#notes.org. [R]emove from list or [A]bort?
>
> This trivial patch uses `save-some-buffers' to save the agenda
> files, removing the confusing prompt:
>
> --- a/lisp/org/org-mobile.el
> +++ b/lisp/org/org-mobile.el
> @@ -318,6 +318,9 @@ create all custom agenda views, for upload to the mobile phone."
> (org-agenda-buffer-name "*SUMO*")
> (org-agenda-tag-filter org-agenda-tag-filter)
> (org-agenda-redo-command org-agenda-redo-command))
> + (let ((agenda-files (org-agenda-files)))
> + (save-some-buffers nil (lambda () (member (buffer-file-name)
> + agenda-files))))
> (save-excursion
> (save-restriction
> (save-window-excursion
I applied something equivalent.
Thank you.
Regards,
--
Nicolas Goaziou 0x80A93738
prev parent reply other threads:[~2018-01-03 14:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-26 9:58 bug#19448: 25.0.50; org-mobile-push should offer to save unsaved agenda files Rudi Schlatte
2018-01-03 14:47 ` Nicolas Goaziou [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o9mbdmon.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=19448-done@debbugs.gnu.org \
--cc=rudi@constantly.at \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.