From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: [babel] Should babel be more error intolerant? Date: Mon, 10 Oct 2011 11:02:10 +0200 Message-ID: References: <87wrcfpfc2.fsf@gmail.com> <8762jzje2q.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016364ed524ce475c04aeee0b3f Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDBkW-0006a7-UG for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 05:02:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDBkR-000818-EG for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 05:02:16 -0400 Received: from mail-qy0-f176.google.com ([209.85.216.176]:56226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDBkR-000811-BA for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 05:02:11 -0400 Received: by qyk27 with SMTP id 27so5409969qyk.0 for ; Mon, 10 Oct 2011 02:02:10 -0700 (PDT) In-Reply-To: <8762jzje2q.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: Org Mode Mailing List --0016364ed524ce475c04aeee0b3f Content-Type: text/plain; charset=ISO-8859-1 On Sun, Oct 9, 2011 at 12:47 AM, Eric Schulte wrote: > >> > >> 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. > Just looked into it briefly, and it looks brilliant. Will let you know if I encounter problems. Thanks, Rainer > > 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/ > > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug --0016364ed524ce475c04aeee0b3f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sun, Oct 9, 2011 at 12:47 AM, Eric Sc= hulte <schul= te.eric@gmail.com> wrote:
>>
>> As a side note of this, I wonder if babel could use the same/simil= ar
>>way like the TODO field in org-mode to switch between all possible<= br> >>parameters for a certain code block? =A0I learned, different code b= locks
>>can have quite different possible parameters. A bit difficult to >>remember esp., if you don't use them on a daily basis. =A0If on= e could
>>place the pointer to e.g., the :results keyword and hit C-c C-t to<= br> >>switch between all possibilities for the :exports keyword for this<= br> >>particular source code block, it would greatly simply the usage and=
>>reduce errors. Parameters which require additional user input like<= br> >>file names could indicate this (like in the manual) by indicating i= t
>>within brackets e.g., <filename>.
>>
>
> This is a very good idea and shouldn't be too difficult to impleme= nt 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. =A0The = 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.
<= /blockquote>

Just looked into it briefly, and it looks brilliant. W= ill let you know if I encounter problems.

Thanks,

Rainer

=A0

I'm sure the current functionality has room for improvement but it seem= s
to work well in my initial tests.

Let me know what you think.

Best -- Eric



--
Rainer M. K= rug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl= . Phys. (Germany)

Centre of Excellence for Invasion Biology
Stell= enbosch University
South Africa

Tel : =A0 =A0 =A0 +33 - (0)9 53 10 27 44
Cell: =A0 = =A0 =A0 +33 - (0)6 85 62 59 98
Fax (F): =A0 =A0 =A0 +33 - (0)9 58 10 27 = 44

Fax (D): =A0 =A0+49 - (0)3 21 21 25 22 44

email: =A0 =A0 = =A0Rainer@krugs.de=

Skype: =A0 =A0 =A0RMkrug

--0016364ed524ce475c04aeee0b3f--