From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pieter Praet Subject: Re: disable "org-decrypt: auto-save-mode may cause leakage" Date: Thu, 14 Jul 2011 15:14:46 +0200 Message-ID: <87liw1ypfd.fsf@praet.org> References: <2011-07-14T14-11-51@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhLko-0003iA-Uv for emacs-orgmode@gnu.org; Thu, 14 Jul 2011 09:15:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhLkh-0001GW-RS for emacs-orgmode@gnu.org; Thu, 14 Jul 2011 09:14:58 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:62576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhLkh-0001GL-CN for emacs-orgmode@gnu.org; Thu, 14 Jul 2011 09:14:51 -0400 Received: by wwf22 with SMTP id 22so244259wwf.30 for ; Thu, 14 Jul 2011 06:14:49 -0700 (PDT) In-Reply-To: <2011-07-14T14-11-51@devnull.Karl-Voit.at> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: news1142@Karl-Voit.at, emacs-orgmode@gnu.org On Thu, 14 Jul 2011 14:22:32 +0200, Karl Voit wrote: > Hi! >=20 > How can I auto-answer the question from the subject line with =C2=ABn=C2= =BB > (per default) any time it is asked? >=20 > Background story: >=20 > I am using org-decrypt on two files and I've got additional files > where I do not use any encryption at all. >=20 > But when I start my Emacs with my five most used org-files (which do > not use encryption), I have to answer five times the question > mentioned in the subject line above using =C2=ABn=C2=BB as answer. >=20 > I've already found the comment on the bottom of [1] and the > discussion of [2]. >=20 > I *do* have deactivated auto-save by using the method explained in > [3] for my Org-files where I am using encryption. So I am save here > I guess. >=20 > But what I want to get rid of is this unnecessary question. I do not > want to be asked and have to answer with =C2=ABno=C2=BB because where it > matters, I already deactivated auto-save. So auto-save should be > =C2=ABon=C2=BB per default. >=20 > How can I accomplish this behavior? >=20 > And: shouldn't this be appended to [1]? >=20 > 1. http://orgmode.org/worg/org-tutorials/encrypting-files.html > 2. http://permalink.gmane.org/gmane.emacs.orgmode/43262 > 3. http://anirudhs.chaosnet.org/blog/2005.01.21.html > --=20 > Karl Voit >=20 >=20 One only receives that prompt when running `org-decrypt-entry' in a buffer where `buffer-auto-save-file-name' is non-nil (i.e. a buffer for which `auto-save-mode' is enabled). So, I assume you've configured Emacs to automatically run `org-decrypt-entr= ies' (which calls `org-decrypt-entry') whenever an org file is opened. For more info, see the `org-crypt-disable-auto-save' variable (introduced in commit 7bae2235) and this thread: - http://comments.gmane.org/gmane.emacs.orgmode/41430 Peace --=20 Pieter