From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: evaluating all R code blocks (newbie question) Date: Thu, 20 Jan 2011 09:22:27 -0700 Message-ID: <8739onzg2u.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=55863 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfxWF-00084s-76 for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 11:37:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfxWD-0002zS-KX for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 11:37:55 -0500 Received: from mail-px0-f169.google.com ([209.85.212.169]:64871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfxWD-0002vc-E7 for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 11:37:53 -0500 Received: by mail-px0-f169.google.com with SMTP id 12so192601pxi.0 for ; Thu, 20 Jan 2011 08:37:53 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Lawrence Mitchell Cc: emacs-orgmode@gnu.org Lawrence Mitchell writes: > Julian Burgos wrote: >> Many thanks Lawrence. Yes, I'm aware of the risks, but for now I am >> only working with my own files. >> Do you know if it is possible to evaluation confirmation as a header >> option, so I can left it on but turn it off in my own files? > > I don't believe it is. If you think about, this is also a > security hole, since a malicious user could put the relevant > header in, even if you've set org-confirm-babel-evaluate to t. > Indeed this is the case, the :eval header argument [1] can be used inhibit the evaluation of some code blocks, if the user already has (setq org-confirm-babel-evaluate nil) but it can not be used to remove the need for confirmation of code block evaluation when the user has (setq org-confirm-babel-evaluate t) For security reasons. Personally I don't require confirmation of evaluation as I find that I both trust everyone sharing org-mode files with me, and generally I read code blocks before I evaluate them. Best -- Eric Footnotes: [1] http://orgmode.org/manual/eval.html