* bug#19448: 25.0.50; org-mobile-push should offer to save unsaved agenda files
[not found] <56147641-A364-4D1E-A7A6-0CF602EBA828@constantly.at>
@ 2018-01-03 14:47 ` Nicolas Goaziou
0 siblings, 0 replies; only message in thread
From: Nicolas Goaziou @ 2018-01-03 14:47 UTC (permalink / raw)
To: Rudi Schlatte; +Cc: 19448-done
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-03 14:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <56147641-A364-4D1E-A7A6-0CF602EBA828@constantly.at>
2018-01-03 14:47 ` bug#19448: 25.0.50; org-mobile-push should offer to save unsaved agenda files Nicolas Goaziou
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).