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: Sun, 28 Aug 2011 13:35:48 +0200 Message-ID: <878vqdpy3v.fsf@praet.org> References: <2011-07-14T14-11-51@devnull.Karl-Voit.at> <20110714131745.GC2823@soloJazz.com> <80hb6pgezl.fsf@somewhere.org> <87bowxym68.fsf@praet.org> <808vs0hqj1.fsf@somewhere.org> <878vs0zws9.fsf@praet.org> <80mxgckklh.fsf@somewhere.org> <874o2jw5d4.fsf@gnu.org> <877h5y6czw.fsf@praet.org> <87mxeu10il.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qxdee-0002oh-Dt for emacs-orgmode@gnu.org; Sun, 28 Aug 2011 07:35:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qxdec-0001pc-KM for emacs-orgmode@gnu.org; Sun, 28 Aug 2011 07:35:56 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:50735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qxdec-0001pY-Ej for emacs-orgmode@gnu.org; Sun, 28 Aug 2011 07:35:54 -0400 Received: by wwj26 with SMTP id 26so1881426wwj.0 for ; Sun, 28 Aug 2011 04:35:53 -0700 (PDT) In-Reply-To: <87mxeu10il.fsf@Rainer.invalid> 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: Achim Gratz , emacs-orgmode@gnu.org --=-=-= On Sun, 28 Aug 2011 09:02:58 +0200, Achim Gratz wrote: > Pieter Praet writes: > > Apparently not config-related. > > So it does happen with just "emacs -Q"? I cannot reproduce this. Well, not quite... :) Some minimal config is required. 1. Run EMACS like this: (don't forget to adjust the load-path) #+begin_src sh emacs -Q --eval="(progn (setq debug-on-error t) (add-to-list 'load-path \"~/src/org-mode/lisp\") (require 'org-install) (require 'org-crypt) (org-crypt-use-before-save-magic))" #+end_src 2. Open the ECM (in att) and complete the TODO's in sequence. When running `org-clock-goto', the user will be prompted: : org-decrypt: auto-save-mode may cause leakage. Disable it for current buffer? (y or n) ... which is rather uncalled for in this context. I we'd be calling an error @ lisp/org-crypt.el::170, we'd get the following backtrace upon running `org-clock-goto': #+begin_example Debugger entered--Lisp error: (error "blah") signal(error ("blah")) error("blah") (progn (error "blah") (cond (... ... ...) (... ...) (... ... ...) (t nil))) (if buffer-auto-save-file-name (progn (error "blah") (cond ... ... ... ...))) (when buffer-auto-save-file-name (error "blah") (cond (... ... ...) (... ...) (... ... ...) (t nil))) org-decrypt-entry() run-hooks(org-reveal-start-hook) org-reveal() (let* ((recent nil) (m ...)) (org-pop-to-buffer-same-window (marker-buffer m)) (if (or ... ...) (widen)) (goto-char m) (org-show-entry) (org-back-to-heading t) (org-cycle-hide-drawers (quote children)) (recenter) (org-reveal) (if recent (message "No running clock, this is the most recently clocked task")) (run-hooks (quote org-clock-goto-hook))) org-clock-goto(nil) call-interactively(org-clock-goto nil nil) #+end_example So, either org-crypt shouldn't be imposing itself on `org-reveal-start-hook' (see lisp/org-crypt.el::250) XOR `org-clock-goto' shouldn't call `org-reveal'. I'll let others decide... Peace > Regards, > Achim. > -- > +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ > > Wavetables for the Waldorf Blofeld: > http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables > > Peace -- Pieter --=-=-= Content-Disposition: inline; filename=crypt-vs-clock.org * NOTE here's an encrypted entry (symmetric, pass = "test") :crypt: -----BEGIN PGP MESSAGE----- Version: GnuPG v1.4.10 (GNU/Linux) jA0ECgMCBqqZSbotsitg0nwBKep+l0L85gNUFsipCPc6Nn/VKiRoZrbBU37f0+7w yTBvfSXMpBKc+D8TZ4ZoIPwqNwc52TZA4phh5VQIs5T96PAXYH6yAQIBbG7ggMWV 4zrU6NiHU/dCCznsbObQXGkMg1tVU1Kp6A9EapGBklh24mcrwhG3BZQcqzN2 =uLcl -----END PGP MESSAGE----- * TODO run `org-clock-in' (`C-c C-x C-i') here * TODO run `org-clock-goto' (`C-c C-x C-j') here --=-=-=--