From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Don't ask, don't run Date: Fri, 08 Jul 2011 21:14:37 +0100 Message-ID: <87sjqg4jiq.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfHRl-0004tS-HG for emacs-orgmode@gnu.org; Fri, 08 Jul 2011 16:14:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfHRg-00054s-VV for emacs-orgmode@gnu.org; Fri, 08 Jul 2011 16:14:45 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:41412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfHRg-00054j-Hq for emacs-orgmode@gnu.org; Fri, 08 Jul 2011 16:14:40 -0400 Received: from [85.210.135.34] (helo=localhost) by vscane-b.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1QfHRd-0003Yl-3S for emacs-orgmode@gnu.org; Fri, 08 Jul 2011 21:14:37 +0100 In-Reply-To: (Ken Williams's message of "Fri, 8 Jul 2011 19:19:46 +0000") 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: emacs-orgmode@gnu.org writes: > Hi, > > I know from the manual that I can set 'org-confirm-babel-evaluate' to t, > or nil, or a function, to control whether I'm asked permission to run a > code block. > > However, that only gives me two choices - ask the user, or pretend the > user said "yes". Sometimes I'd like to pretend the user said "no", > without asking. > > Specifically, I'd like to always manually control when code blocks are > executed. When exporting, I don't want them executed (and I don't want to > be asked about my dozens of blocks each time). When hitting C-c C-c > manually, I just want it to run (and I don't want to be asked whether I'm > sure). > > Is there a similar variable, or perhaps an export option, that will give > me this kind of workflow? > > Thanks. I can't help you directly although I also often want the behaviour you are describing. One workaround that should give you what you want is to enable evaluation without prompting (org-confirm-babel-evaluate: nil) and to have the results from runs cached so that, when exporting, the source code blocks shouldn't have to execute; see [[info:org#cache]]. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.6 (release_7.6.4.gf305a)