From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: org-revert-all-org-buffers always prompts Date: Thu, 16 Feb 2017 16:34:20 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceO4d-000450-Ga for emacs-orgmode@gnu.org; Thu, 16 Feb 2017 10:34:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceO4X-0000CF-7B for emacs-orgmode@gnu.org; Thu, 16 Feb 2017 10:34:23 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:32761) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ceO4W-0000B7-T3 for emacs-orgmode@gnu.org; Thu, 16 Feb 2017 10:34:17 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82, Mauna Loa Obs. 2017-01: 406.13, 2016-01: = 402.52 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYpcZ9AAoJEAQNCjtO0uXH6xsH/RQZa1KLJz2RVdY6e3JoE49M wJsDs57AdeeyLz71irbhI8GqT7tlFAnCHUkAvlvBiKWsoLkdLw2Y5lsx1c+tCHWr S/5YXqMeSpC68pcT+dV9RsPE1iq9iY9SEeye38XlRv049I8juX4+YDfD+PNedzNg KN5LHQWmxGxI2S2pWd9sK3p6pub9j3I2HEN8mw5fDwmMqqsiPMmJ0xvc3AY3Klt1 hTap9//943V61GdEC+nDuYNcgB/GoF1QBHqT4XIfeOeNh1bpad5S8SdVcoJbJMwx p0B+8WSGEMItXAfSmpnovTMbJr2MJ3HbqTg+Q2DhbSZ+l7M32ba3IkYrqStg18I= =NhBa -----END PGP SIGNATURE----- --=-=-=--