emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-revert-all-org-buffers always prompts


From: Alan Schmitt
Subject: [O] org-revert-all-org-buffers always prompts
Date: Thu, 16 Feb 2017 16:34:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (darwin)

Hello,

I use `org-revert-all-org-buffers` in the recommended way (after calling
`org-save-all-org-buffers`), so I would expect that I would not be asked
confirmation as no org buffer is unsaved, as is said in the function
description:
"Prompt for confirmation when there are unsaved changes."

Unfortunately the code does not do this:

  (unless (yes-or-no-p "Revert all Org buffers from their files? ")
    (user-error "Abort"))

i.e., there is no check for unsaved changes, and so I have a prompt in
the middle of some code, interrupting my function.

Is there a way to disable the prompt?

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-01: 406.13, 2016-01: 402.52

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]