[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] evaluation context in call statements
From: |
Eric Schulte |
Subject: |
Re: [O] evaluation context in call statements |
Date: |
Sun, 30 Jun 2013 16:24:54 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Achim Gratz <address@hidden> writes:
> Eric Schulte writes:
>>>> My vote is for adding #+name support to call lines, and then handling
>>>> their results in the same manner as code block results.
>>
>> Achim Gratz <address@hidden> writes:
>>> I'm not sure what this would entail other than replacing the call with
>>> its arguments with the name of the call in the results line. But yes,
>>> that'd be a step forward, although you'd have to be careful when copying
>>> calls.
>>>
>>
>> This could work exactly as named source blocks work. E.g.,
> [...]
>
> I see. The problem then really is that #+CALL lines are currently
> "implicitly named" by copying their arguments to the results line. If
> explicit naming is allowed, this implicit naming should go away or at
> least not be the default, IMHO.
>
Exactly.
I've just pushed up a patch which implements this change. Call lines
should now work exactly as named code blocks providing clarity,
uniformity and the flexibility to run multiple identical call lines.
#+name: bar
#+BEGIN_SRC emacs-lisp
:baz
#+END_SRC
#+call: bar()
#+RESULTS:
: :baz
#+call: bar()
#+RESULTS:
: :baz
#+name: foo
#+call: bar()
#+RESULTS: foo
: :baz
#+name: foo2
#+call: bar()
#+RESULTS: foo2
: :baz
#+name: foo
#+call: bar()
Cheers,
--
Eric Schulte
http://cs.unm.edu/~eschulte
- Re: [O] evaluation context in call statements, (continued)
- Re: [O] evaluation context in call statements, Achim Gratz, 2013/06/26
- Re: [O] evaluation context in call statements, Rick Frankel, 2013/06/26
- Re: [O] evaluation context in call statements, Nicolas Goaziou, 2013/06/26
- Re: [O] evaluation context in call statements, Rick Frankel, 2013/06/26
- Re: [O] evaluation context in call statements, Eric Schulte, 2013/06/26
- Re: [O] evaluation context in call statements, Eric Schulte, 2013/06/26
- Re: [O] evaluation context in call statements, Achim Gratz, 2013/06/27
- Re: [O] evaluation context in call statements, Andreas Leha, 2013/06/27
- Re: [O] evaluation context in call statements, Achim Gratz, 2013/06/27
- Re: [O] evaluation context in call statements, Andreas Leha, 2013/06/27
- Re: [O] evaluation context in call statements,
Eric Schulte <=
- Re: [O] evaluation context in call statements, Michael Brand, 2013/06/26
- Re: [O] evaluation context in call statements, Eric Schulte, 2013/06/26
- Re: [O] evaluation context in call statements, Michael Brand, 2013/06/26
- Re: [O] evaluation context in call statements, Eric Schulte, 2013/06/26