From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: 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/)] Date: Sat, 23 Jun 2018 22:09:15 +0200 Message-ID: <87tvpttgd0.fsf@nicolasgoaziou.fr> References: <47e2ef70-4494-4d1a-d055-06587ba6e086@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWoqb-0008EX-Cf for emacs-orgmode@gnu.org; Sat, 23 Jun 2018 16:09:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWoqX-0000fl-D7 for emacs-orgmode@gnu.org; Sat, 23 Jun 2018 16:09:25 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:45405) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fWoqX-0000fA-50 for emacs-orgmode@gnu.org; Sat, 23 Jun 2018 16:09:21 -0400 In-Reply-To: <47e2ef70-4494-4d1a-d055-06587ba6e086@gmail.com> (Gennady Uraltsev's message of "Sat, 23 Jun 2018 18:50:23 +0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Gennady Uraltsev Cc: emacs-orgmode@gnu.org 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-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 FWIW, I cannot reproduce your issue, i.e., both blocks are tangled. Regards, -- Nicolas Goaziou