GNU bug report logs -
#19448
25.0.50; org-mobile-push should offer to save unsaved agenda files
Previous Next
Reported by: Rudi Schlatte <rudi <at> constantly.at>
Date: Fri, 26 Dec 2014 20:08:01 UTC
Severity: normal
Found in version 25.0.50
Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 19448-done <at> debbugs.gnu.org (full text, mbox):
Hello,
Rudi Schlatte <rudi <at> 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
This bug report was last modified 7 years and 144 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.