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: Tue, 26 Jun 2018 11:44:20 +0200 Message-ID: <874lhpubkb.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXkWS-00051m-L4 for emacs-orgmode@gnu.org; Tue, 26 Jun 2018 05:44:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXkWN-00031R-Ou for emacs-orgmode@gnu.org; Tue, 26 Jun 2018 05:44:28 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:55977) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fXkWN-000310-IW for emacs-orgmode@gnu.org; Tue, 26 Jun 2018 05:44:23 -0400 In-Reply-To: (Gennady Uraltsev's message of "Sat, 23 Jun 2018 16:34:39 +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 I cannot reproduce your issue. You may want to double check your configuration. Regards, -- Nicolas Goaziou