Hello, Gennady Uraltsev <gennady.uralt...@gmail.com> 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-tangle) > #+END_SRC > > that should tangle the stuff in the next header. > > ** Observed behaviour > Running the first code block tangles only the first code block below > Running =org-babel-tangle= tangles both code blocks below > > > ** Expected behaviour > Running the above code block or =org-babel-tangle= tangles both code > blocks below > > > * Code to tangle > ** Because of =:tangle= parameter > This block gets tangled both by executing =org-babel-tangle= from the > =src= code block or directly via M-x. > > #+BEGIN_SRC emacs-lisp :tangle yes > (message "This should be tangled because of :tangle parameter") > #+END_SRC > > > > > ** Because of properties > :PROPERTIES: > :header-args: :tangle yes > :END: > > This block gets tangled only by executing =org-babel-tangle= directly > via M-x but it *doesn't* get tangled by executing =org-babel-tangle= > from the =src= code block. > > #+BEGIN_SRC emacs-lisp > (message "This should be tangled because of property list") > #+END_SRC I cannot reproduce your issue. You may want to double check your configuration. Regards, -- Nicolas Goaziou