On Thursday, 1 Apr 2021 at 21:23, Michael Gauland wrote:
> When I export, the result of the code block is "X is Hello", but when
> I use C-c C-c to evaluate the block in emacs, I get "X is"--the
> variable isn't defined.
Did you hit C-c C-c on the property line to update org's view of the
propert
On Thu, Apr 1, 2021 at 4:23 AM Michael Gauland wrote:
> When I export, the result of the code block is "X is Hello", but when I
> use C-c
> C-c to evaluate the block in emacs, I get "X is"--the variable isn't
> defined.
>
This works for me on org 9.4.
I had trouble getting a file-level property
Michael,
i see "Hello" when i C-c C-c. i see this with "emacs -Q".
cheers, Greg
I'm confused about the use of the header-args property. It works as
expected when I
export a file, but not when I evaluate a code block manually. For example,
consider this file:
#+PROPERTY: header-args :var x="Hello" :exports both
#+begin_src shell
echo X is $x
Hello,
Gennady Uraltsev writes:
> Running =(org-babel-tangle)= from inside a =src= block ignores
> =header-args= properties
> Consider the following org-mode file set for tangling.
>
> This code should run the command =org-babel-tangle=
>
> #+BEGIN_SRC emacs-lisp :results silent
> (org-babel-ta
Running =(org-babel-tangle)= from inside a =src= block ignores
=header-args= properties
Consider the following org-mode file set for tangling.
This code should run the command =org-babel-tangle=
#+BEGIN_SRC emacs-lisp :results silent
(org-babel-tangle)
#+END_SRC
that should tangle the stuff in th
Running =(org-babel-tangle)= from inside a =src= block ignores
=header-args= properties
Consider the following org-mode file set for tangling.
This code should run the command =org-babel-tangle= #+BEGIN_SRC
emacs-lisp :results silent
(org-babel-tangle)
#+END_SRC
that should tangle the stuff in the
Hello,
Gennady Uraltsev writes:
> Running =(org-babel-tangle)= from inside a =src= block ignores
> =header-args= properties
> Consider the following org-mode file set for tangling.
>
> This code should run the command =org-babel-tangle=
>
> #+BEGIN_SRC emacs-lisp :results silent
> (org-babel-ta
I did some additional testing, and found some interesting results that
appear to
point to the =org-babel-get-src-block-info= function as the culprit.
Depending on
whether this function is evaluated directly, or executed in source blocks in
different locations through this file, the function returns
Running =(org-babel-tangle)= from inside a =src= block ignores
=header-args= properties
Consider the following org-mode file set for tangling.
This code should run the command =org-babel-tangle=
#+BEGIN_SRC emacs-lisp :results silent
(org-babel-tangle)
#+END_SRC
that should tangle the stuff in th
Sebastien Vauban
writes:
> Rainer M Krug wrote:
>> what do you mean by ECM?
>
> http://orgmode.org/worg/org-faq.html#ecm
Ah - learned something.
Merci beaucoup,
Rainer
>
> Best regards,
> Seb
--
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982
signature.asc
Description: PGP signature
Rainer M Krug wrote:
> what do you mean by ECM?
http://orgmode.org/worg/org-faq.html#ecm
Best regards,
Seb
--
Sebastien Vauban
Nicolas Goaziou writes:
> Rainer M Krug writes:
>
>> I think I will skip the bonus points this time - sorry.
>
> OK. You may also send me a couple of ECM, so I can turn them into tests.
Sorry - what do you mean by ECM?
>
>> I would be very grateful if you could submit the patch without a test.
Rainer M Krug writes:
> I think I will skip the bonus points this time - sorry.
OK. You may also send me a couple of ECM, so I can turn them into tests.
> I would be very grateful if you could submit the patch without a test.
Applied. Thank you.
Regards.
load-path (file-name-directory here))
(require 'org-test)
#+END_SRC
#+BEGIN_SRC emacs-lisp
(ert-deftest test-org-babel/view-src-block-info-for-identity ()
"Check `(identity #o444)' in header-args property."
(org-test-with-temp-text
"#+PROPERTY: h
Rainer M Krug writes:
> Nicolas Goaziou writes:
>
>> Hello,
>>
>> Rainer M Krug writes:
>>
>>> Please find attached the below described patch including the fix for the
>>> error reported - function raises error when property value is numeric.
>>
>> Looks good. Thank you.
>
> Thanks.
>
>>
>
>
>
Alan Schmitt writes:
> Hello,
>
> On 2015-02-10 22:58, Rainer M Krug writes:
>
>> Are there some guidelines on how to write tests? Never done this before...
>
> I recently wrote my first test, so here is how I did it.
>
> - find a similar test in testing/lisp/el (maybe in test-ob-exp.el)
> -
Hello,
On 2015-02-10 22:58, Rainer M Krug writes:
> Are there some guidelines on how to write tests? Never done this before...
I recently wrote my first test, so here is how I did it.
- find a similar test in testing/lisp/el (maybe in test-ob-exp.el)
- load the file testing/org-test.el (it
Nicolas Goaziou writes:
> Hello,
>
> Rainer M Krug writes:
>
>> Please find attached the below described patch including the fix for the
>> error reported - function raises error when property value is numeric.
>
> Looks good. Thank you.
Thanks.
>From 6461f4de49fbcd002913a58ac5b47453e965ac0d M
Hello,
Rainer M Krug writes:
> Please find attached the below described patch including the fix for the
> error reported - function raises error when property value is numeric.
Looks good. Thank you.
Could you provide an appropriate commit message? Bonus points if you
also add a test.
Regards
"Charles C. Berry" writes:
> On Tue, 10 Feb 2015, Rainer M Krug wrote:
>
>> Hi
>>
>> Following a recent discussion (based on me forgetting a ":" when setting
>> the property :header-args), I added the output of the property
>> header-args to the output of org-babel-get-src-block-info to make
>> d
On Tue, 10 Feb 2015, Rainer M Krug wrote:
Hi
Following a recent discussion (based on me forgetting a ":" when setting
the property :header-args), I added the output of the property
header-args to the output of org-babel-get-src-block-info to make
debugging easier.
[snip]
Using the patched ve
Please find attached the below described patch including the fix for the
error reported - function raises error when property value is numeric.
Cheers,
Rainer
diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index ceda1aa..aa39c11 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -409,12 +409,
Hi
Following a recent discussion (based on me forgetting a ":" when setting
the property :header-args), I added the output of the property
header-args to the output of org-babel-get-src-block-info to make
debugging easier. Before the function resulted in the following output
(using my faulty code
24 matches
Mail list logo