From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Bach Subject: Re: Deactivate babel source block Date: Sun, 06 Oct 2013 17:23:40 +0200 Message-ID: <5251807C.2090809@gmail.com> References: <87k3hqfnbj.fsf@gmail.com> Reply-To: phaebz@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSqBV-0000X4-1z for emacs-orgmode@gnu.org; Sun, 06 Oct 2013 11:24:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSqBM-0004tP-7e for emacs-orgmode@gnu.org; Sun, 06 Oct 2013 11:23:52 -0400 Received: from mail-bk0-x22e.google.com ([2a00:1450:4008:c01::22e]:55506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSqBL-0004tE-Vi for emacs-orgmode@gnu.org; Sun, 06 Oct 2013 11:23:44 -0400 Received: by mail-bk0-f46.google.com with SMTP id 6so2240503bkj.33 for ; Sun, 06 Oct 2013 08:23:42 -0700 (PDT) In-Reply-To: <87k3hqfnbj.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org On 10/6/13 5:09 PM, Eric Schulte wrote: > You want to set the :eval and :tangle header arguments, this can be done > with `org-babel-insert-header-arg' bound to "C-c C-v j". I've just > updated this function so that it now takes two optional arguments > specifying the header argument and value. > > So your function could now be something like the following. > > (defun my-org-babel-deactivate () > (interactive) > (org-babel-insert-header-arg "eval" "never") > (org-babel-insert-header-arg "tangle" "no")) > > Hope this helps, > Thanks for implementing this so quickly - I am currently on 8.2 release branch, but am looking forward to it! Michael