Re: header-args property

2021-04-01 Thread Eric S Fraga
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

Re: header-args property

2021-04-01 Thread ian martins
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

Re: header-args property

2021-04-01 Thread Greg Minshall
Michael, i see "Hello" when i C-c C-c. i see this with "emacs -Q". cheers, Greg

header-args property

2021-04-01 Thread Michael Gauland
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    

Re: [O] Bug: org-babel-tangle sometimes does not respect header-args property [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/)]

2018-06-26 Thread Nicolas Goaziou
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

[O] Bug: org-babel-tangle sometimes does not respect header-args property [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/)]

2018-06-26 Thread Gennady Uraltsev
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

[O] Bug: org-babel-tangle sometimes does not respect header-args property [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/)]

2018-06-26 Thread Gennady Uraltsev
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

Re: [O] Bug: org-babel-tangle sometimes does not respect header-args property [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/)]

2018-06-23 Thread Nicolas Goaziou
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

Re: [O] Bug: org-babel-tangle sometimes does not respect header-args property [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/)]

2018-06-23 Thread Henry Blevins
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

[O] Bug: org-babel-tangle sometimes does not respect header-args property [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/)]

2018-06-23 Thread Gennady Uraltsev
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

Re: [O] [PATCH]: BUG fix and Add header-args property to source block info

2015-02-13 Thread Rainer M Krug
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

Re: [O] [PATCH]: BUG fix and Add header-args property to source block info

2015-02-13 Thread Sebastien Vauban
Rainer M Krug wrote: > what do you mean by ECM? http://orgmode.org/worg/org-faq.html#ecm Best regards, Seb -- Sebastien Vauban

Re: [O] [PATCH]: BUG fix and Add header-args property to source block info

2015-02-13 Thread Rainer M Krug
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.

Re: [O] [PATCH]: BUG fix and Add header-args property to source block info

2015-02-12 Thread Nicolas Goaziou
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.

Re: [O] [PATCH]: BUG fix and Add header-args property to source block info

2015-02-12 Thread Charles C. Berry
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

Re: [O] [PATCH]: BUG fix and Add header-args property to source block info

2015-02-12 Thread Rainer M Krug
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. > >> > > >

Re: [O] [PATCH]: BUG fix and Add header-args property to source block info

2015-02-12 Thread Rainer M Krug
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) > -

Re: [O] [PATCH]: BUG fix and Add header-args property to source block info

2015-02-11 Thread Alan Schmitt
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

Re: [O] [PATCH]: BUG fix and Add header-args property to source block info

2015-02-10 Thread Rainer M Krug
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

Re: [O] [PATCH]: BUG fix and Add header-args property to source block info

2015-02-10 Thread Nicolas Goaziou
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

Re: [O] [PATCH]: Add header-args property to source block info

2015-02-10 Thread Rainer M Krug
"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

Re: [O] [PATCH]: Add header-args property to source block info

2015-02-10 Thread Charles C. Berry
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

Re: [O] [PATCH]: BUG fix and Add header-args property to source block info

2015-02-10 Thread Rainer M Krug
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,

[O] [PATCH]: Add header-args property to source block info

2015-02-10 Thread Rainer M Krug
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