* [babel] Loosing my latin...
@ 2011-11-24 15:42 Sebastien Vauban
2011-11-24 16:27 ` Nick Dokos
0 siblings, 1 reply; 4+ messages in thread
From: Sebastien Vauban @ 2011-11-24 15:42 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Hello,
While this code block gets evaluated as expected...
#+begin_src emacs-lisp :var foo=11 bar=22
(+ foo bar)
#+end_src
#+results:
: 33
It's not the same with the 2 following ones: variables `bar' and `baz' are
said to be void.
** NOK With property
#+property: var bar=44
#+begin_src emacs-lisp
(+ bar bar)
#+end_src
** NOK With headers
#+headers: var baz=55
#+begin_src emacs-lisp
(+ baz baz)
#+end_src
Am I missing something really obvious??[1]
Best regards,
Seb
Footnotes:
[1] Org-mode version 7.7 (release_7.7.600.gb331.dirty), up-to-date at the time
of writing this.
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [babel] Loosing my latin...
2011-11-24 15:42 [babel] Loosing my latin Sebastien Vauban
@ 2011-11-24 16:27 ` Nick Dokos
2011-11-24 20:18 ` Sebastien Vauban
0 siblings, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2011-11-24 16:27 UTC (permalink / raw)
To: Sebastien Vauban; +Cc: nicholas.dokos, emacs-orgmode
Sebastien Vauban <wxhgmqzgwmuf@spammotel.com> wrote:
> Hello,
>
> While this code block gets evaluated as expected...
>
> #+begin_src emacs-lisp :var foo=11 bar=22
> (+ foo bar)
> #+end_src
>
> #+results:
> : 33
>
> It's not the same with the 2 following ones: variables `bar' and `baz' are
> said to be void.
>
> ** NOK With property
>
> #+property: var bar=44
> #+begin_src emacs-lisp
> (+ bar bar)
> #+end_src
>
This one worked after C-c C-c on the property line.
> ** NOK With headers
>
>
> #+begin_src emacs-lisp
> (+ baz baz)
> #+end_src
>
This one didn't - but it worked like this:
#+headers: :var baz=55
even with a singular "header" - doing this in a hurry, so I'm not sure
if that's an accident of history left behind, or whether it would happen
in a fresh session as well.
Nick
> Am I missing something really obvious??[1]
>
> Best regards,
> Seb
>
> Footnotes:
>
> [1] Org-mode version 7.7 (release_7.7.600.gb331.dirty), up-to-date at the time
> of writing this.
>
> --
> Sebastien Vauban
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [babel] Loosing my latin...
2011-11-24 16:27 ` Nick Dokos
@ 2011-11-24 20:18 ` Sebastien Vauban
2011-11-25 7:33 ` Nick Dokos
0 siblings, 1 reply; 4+ messages in thread
From: Sebastien Vauban @ 2011-11-24 20:18 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Hi Nick,
Nick Dokos wrote:
> Sebastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> wrote:
>> While this code block gets evaluated as expected [...]
>> It's not the same with the 2 following ones: variables `bar' and `baz' are
>> said to be void.
>>
>> ** NOK With property
>>
>> #+property: var bar=44
>> #+begin_src emacs-lisp
>> (+ bar bar)
>> #+end_src
>
> This one worked after C-c C-c on the property line.
I did C-c C-c on the property line -- before sending. It still does not work.
Even with the property line outside of the subtrees[1], that is at the top
level of the file, it still does not work after a C-c C-c...
>> ** NOK With headers
>>
>>
>> #+begin_src emacs-lisp
>> (+ baz baz)
>> #+end_src
>
> This one didn't - but it worked like this:
>
> #+headers: :var baz=55
Of course. Thanks for testing and reporting back!
The `:' is a must in front of the `var' keyword, in this case, as if it was on
the `#+begin' line.
> even with a singular "header" - doing this in a hurry, so I'm not sure
> if that's an accident of history left behind, or whether it would happen
> in a fresh session as well.
>> Am I missing something really obvious??[1]
It seems I did miss something quite obvious for the last case. Still unclear
why the second does not work for me.
Thanks for your time.
Best regards,
Seb
Footnotes:
[1] I fear what I did was not allowed. Though, it worked for you!?
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [babel] Loosing my latin...
2011-11-24 20:18 ` Sebastien Vauban
@ 2011-11-25 7:33 ` Nick Dokos
0 siblings, 0 replies; 4+ messages in thread
From: Nick Dokos @ 2011-11-25 7:33 UTC (permalink / raw)
To: Sebastien Vauban; +Cc: nicholas.dokos, emacs-orgmode
Sebastien Vauban <wxhgmqzgwmuf@spammotel.com> wrote:
> >> #+property: var bar=44
> >> #+begin_src emacs-lisp
> >> (+ bar bar)
> >> #+end_src
> >
> > This one worked after C-c C-c on the property line.
>
> I did C-c C-c on the property line -- before sending. It still does not work.
>
> Even with the property line outside of the subtrees[1], that is at the top
> level of the file, it still does not work after a C-c C-c...
>
Do C-h v org-file-properties RET before and after the C-c C-c:
afterwards I get
,----
| org-file-properties is a variable defined in `org.el'.
| Its value is (("var" . "bar=44"))
|
| Local in buffer seb.org; global value is nil
|
| Automatically becomes buffer-local when set in any fashion.
|
| Documentation:
| List of property/value pairs that can be inherited by any entry.
| Valid for the current buffer.
| This variable is populated from #+PROPERTY lines.
`----
What do you get?
Nick
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-25 7:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-24 15:42 [babel] Loosing my latin Sebastien Vauban
2011-11-24 16:27 ` Nick Dokos
2011-11-24 20:18 ` Sebastien Vauban
2011-11-25 7:33 ` Nick Dokos
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).