emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Achim Gratz <Stromeko@NexGo.DE>
To: emacs-orgmode@gnu.org
Subject: Re: asynchronous exporter and babel confirmation
Date: Wed, 6 Mar 2013 12:34:05 +0000 (UTC)	[thread overview]
Message-ID: <loom.20130306T131818-379@post.gmane.org> (raw)
In-Reply-To: 87fw082603.fsf@gmail.com

Nicolas Goaziou <n.goaziou <at> gmail.com> writes:
> Well, no, but its somewhat difficult to prevent it. Besides security
> considerations, even if we set `org-confirm-babel-evaluate' to nil
> during an asynchronous export, this won't handle the case of the user
> explicitly uses a :query keyword in a source block header.

Right.

> A very ugly hack would be to use:
> 
>  (defalias 'yes-or-no-p 'ignore)

Ugh.  I hope this won't be necessary.

I've recently refactored the evaluation check so it determines first whether the
code-block should be run and only in the affirmative checks if it should query
the user.  So it should be much easier now to have another dynamic binding for
preventing the question _and_ not run the block (as if the user had answered
"no", which is the only sensible choice when skipping the query).  It already
skips the query when the cached result is not stale (since it doesn't actually
run any code in this case).  


Regards,
Achim.

  reply	other threads:[~2013-03-06 12:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-06  9:30 asynchronous exporter and babel confirmation Alan Schmitt
2013-03-06 10:10 ` Nicolas Goaziou
2013-03-06 12:34   ` Achim Gratz [this message]
2013-03-06 12:52     ` Nicolas Goaziou
2013-03-06 19:47       ` Achim Gratz
2013-03-06 20:25         ` Nicolas Goaziou
2013-03-06 22:17           ` Achim Gratz
2013-03-06 22:38             ` Nicolas Goaziou
2013-03-06 22:44               ` Achim Gratz
2013-03-09 22:20               ` Achim Gratz
2013-03-09 23:19                 ` Nicolas Goaziou
2013-03-10 15:38                   ` Alan Schmitt
2013-03-06 13:04     ` Alan Schmitt

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=loom.20130306T131818-379@post.gmane.org \
    --to=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).