From: Pieter Praet <pieter@praet.org>
To: Achim Gratz <Stromeko@nexgo.de>, emacs-orgmode@gnu.org
Subject: Re: disable "org-decrypt: auto-save-mode may cause leakage"
Date: Sun, 28 Aug 2011 13:35:48 +0200 [thread overview]
Message-ID: <878vqdpy3v.fsf@praet.org> (raw)
In-Reply-To: <87mxeu10il.fsf@Rainer.invalid>
[-- Attachment #1: Type: text/plain, Size: 2301 bytes --]
On Sun, 28 Aug 2011 09:02:58 +0200, Achim Gratz <Stromeko@nexgo.de> wrote:
> Pieter Praet <pieter@praet.org> 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
[-- Attachment #2: crypt-vs-clock.org --]
[-- Type: text/plain, Size: 466 bytes --]
* 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
next prev parent reply other threads:[~2011-08-28 11:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-14 12:22 disable "org-decrypt: auto-save-mode may cause leakage" Karl Voit
2011-07-14 13:14 ` Pieter Praet
2011-07-14 13:17 ` Juan Pechiar
2011-07-14 13:37 ` Sebastien Vauban
2011-07-14 14:25 ` Pieter Praet
2011-07-14 14:42 ` Sebastien Vauban
2011-07-14 15:50 ` Pieter Praet
2011-07-18 9:24 ` Sebastien Vauban
2011-07-18 23:12 ` Bastien
2011-08-27 16:22 ` Pieter Praet
2011-08-28 7:02 ` Achim Gratz
2011-08-28 11:35 ` Pieter Praet [this message]
2011-08-28 13:46 ` [PATCH] org-crypt: when running org-decrypt-entry, only run auto-save-mode check if on an encrypted entry Pieter Praet
2011-10-08 16:11 ` Carsten Dominik
2011-10-27 8:52 ` Pieter Praet
2011-10-28 15:13 ` Bastien
2011-08-29 9:09 ` disable "org-decrypt: auto-save-mode may cause leakage" Sebastien Vauban
2011-07-14 15:14 ` Karl Voit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878vqdpy3v.fsf@praet.org \
--to=pieter@praet.org \
--cc=Stromeko@nexgo.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).