From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] Should babel be more error intolerant? Date: Sat, 08 Oct 2011 16:47:25 -0600 Message-ID: <8762jzje2q.fsf@gmail.com> References: <87wrcfpfc2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCfgD-0004Nl-0E for emacs-orgmode@gnu.org; Sat, 08 Oct 2011 18:47:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCfgB-0003IK-Gv for emacs-orgmode@gnu.org; Sat, 08 Oct 2011 18:47:40 -0400 Received: from mail-pz0-f47.google.com ([209.85.210.47]:57450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCfgB-0003I9-CU for emacs-orgmode@gnu.org; Sat, 08 Oct 2011 18:47:39 -0400 Received: by pzk4 with SMTP id 4so13977118pzk.6 for ; Sat, 08 Oct 2011 15:47:38 -0700 (PDT) In-Reply-To: <87wrcfpfc2.fsf@gmail.com> (Eric Schulte's message of "Sat, 08 Oct 2011 11:23:41 -0600") 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: Torsten Wagner Cc: Org Mode Mailing List >> >> As a side note of this, I wonder if babel could use the same/similar >>way like the TODO field in org-mode to switch between all possible >>parameters for a certain code block? I learned, different code blocks >>can have quite different possible parameters. A bit difficult to >>remember esp., if you don't use them on a daily basis. If one could >>place the pointer to e.g., the :results keyword and hit C-c C-t to >>switch between all possibilities for the :exports keyword for this >>particular source code block, it would greatly simply the usage and >>reduce errors. Parameters which require additional user input like >>file names could indicate this (like in the manual) by indicating it >>within brackets e.g., . >> > > This is a very good idea and shouldn't be too difficult to implement for > all of those header arguments which are common across all languages. > I'll place this on my todo list... > I've just pushed up a simple implementation of the above. The new function `org-babel-insert-header-arg' bound to C-c C-v j will insert a header argument and its value using completing read in the minibuffer. I'm sure the current functionality has room for improvement but it seems to work well in my initial tests. Let me know what you think. Best -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/