emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] call results not creating #results
@ 2013-11-13 19:06 Rick Frankel
  2013-11-13 23:34 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: Rick Frankel @ 2013-11-13 19:06 UTC (permalink / raw)
  To: schulte.eric; +Cc: emacs-orgmode

Eric-

Since you're looking at call lines :)...

there is a (fairly new i think) bug:

When searching forward for results, following call lines are not
being respected as stop points. For instance, given:

#+BEGIN_SRC org
,* Call block test
,#+name: call-me
,#+BEGIN_SRC emacs-lisp :var v="one"
v
,#+END_SRC

,#+RESULTS: call-me
: one

,#+call: call-me(v="two")

,#+RESULTS:
: two
#+END_SRC

If i insert a new call-block before "two" and execute it, the following 
occurs

#+BEGIN_SRC org
,* Call block test
,#+name: call-me
,#+BEGIN_SRC emacs-lisp :var v="one"
v
,#+END_SRC

,#+RESULTS: call-me
: one

,#+call: call-me(v="three")

,#+call: call-me(v="two")

,#+RESULTS:
: three
#+END_SRC

as you can see, it replaced the results for call-line two.

Note that if i had named "two" and executed it before adding in call 
line "three", the results would be
ok:

#+BEGIN_SRC org
,* Call block test
,#+name: call-me
,#+BEGIN_SRC emacs-lisp :var v="one"
v
,#+END_SRC

,#+RESULTS: call-me
: one

,#+call: call-me(v="three")

,#+RESULTS:
: three

,#+name: two
,#+call: call-me(v="two")

,#+RESULTS: two
: two
#+END_SRC

rick

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] call results not creating #results
  2013-11-13 19:06 [BUG] call results not creating #results Rick Frankel
@ 2013-11-13 23:34 ` Eric Schulte
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2013-11-13 23:34 UTC (permalink / raw)
  To: Rick Frankel; +Cc: emacs-orgmode

Fixed, thanks for reporting.

Rick Frankel <rick@rickster.com> writes:

> Eric-
>
> Since you're looking at call lines :)...
>
> there is a (fairly new i think) bug:
>
> When searching forward for results, following call lines are not
> being respected as stop points. For instance, given:
>
> #+BEGIN_SRC org
> ,* Call block test
> ,#+name: call-me
> ,#+BEGIN_SRC emacs-lisp :var v="one"
> v
> ,#+END_SRC
>
> ,#+RESULTS: call-me
> : one
>
> ,#+call: call-me(v="two")
>
> ,#+RESULTS:
> : two
> #+END_SRC
>
> If i insert a new call-block before "two" and execute it, the following 
> occurs
>
> #+BEGIN_SRC org
> ,* Call block test
> ,#+name: call-me
> ,#+BEGIN_SRC emacs-lisp :var v="one"
> v
> ,#+END_SRC
>
> ,#+RESULTS: call-me
> : one
>
> ,#+call: call-me(v="three")
>
> ,#+call: call-me(v="two")
>
> ,#+RESULTS:
> : three
> #+END_SRC
>
> as you can see, it replaced the results for call-line two.
>
> Note that if i had named "two" and executed it before adding in call 
> line "three", the results would be
> ok:
>
> #+BEGIN_SRC org
> ,* Call block test
> ,#+name: call-me
> ,#+BEGIN_SRC emacs-lisp :var v="one"
> v
> ,#+END_SRC
>
> ,#+RESULTS: call-me
> : one
>
> ,#+call: call-me(v="three")
>
> ,#+RESULTS:
> : three
>
> ,#+name: two
> ,#+call: call-me(v="two")
>
> ,#+RESULTS: two
> : two
> #+END_SRC
>
> rick

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-14  4:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-13 19:06 [BUG] call results not creating #results Rick Frankel
2013-11-13 23:34 ` Eric Schulte

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).