From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Henney Subject: Inheritance of tangle file for org babel blocks is broken in org 9 Date: Fri, 18 Nov 2016 14:39:14 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114edc52aed0a10541994c66 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7pwN-0002zu-00 for emacs-orgmode@gnu.org; Fri, 18 Nov 2016 15:39:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7pwL-00073H-PC for emacs-orgmode@gnu.org; Fri, 18 Nov 2016 15:39:19 -0500 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:34167) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7pwL-00072W-Ie for emacs-orgmode@gnu.org; Fri, 18 Nov 2016 15:39:17 -0500 Received: by mail-qk0-x229.google.com with SMTP id q130so278887447qke.1 for ; Fri, 18 Nov 2016 12:39:16 -0800 (PST) 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: emacs-org --001a114edc52aed0a10541994c66 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Since upgrading to version 9.0, tangling of babel source blocks no longer works properly for me. Specifically, the tangle file name is not inherited from settings in a property drawer higher up the sub-tree, so that "C-u C-u C-c C-v C-t" no longer behaves as it should. This worked fine in version 8 and I can't find any mention of any deliberate change in the manual or the change log. Here is a minimal example that explains what goes wrong. Cheers Will * Test of inheritance of tangle file name ** Pieces to tangle to test-A.el :PROPERTIES: :header-args: :tangle test-A.el :END: *** Piece A1 #+BEGIN_SRC emacs-lisp ;; code-block from first sub-head of A #+END_SRC *** Piece A2 #+BEGIN_SRC emacs-lisp ;; code-block from second sub-head of A #+END_SRC ** Pieces to tangle to test-B.el :PROPERTIES: :header-args: :tangle test-B.el :END: + This does not work any more in org 9 + The pieces are tangled to =3Dtest-A.el=3D instead of =3Dtest-B.el=3D *** Piece B1 #+BEGIN_SRC emacs-lisp ;; code-block from first sub-head of B #+END_SRC *** Piece B2 #+BEGIN_SRC emacs-lisp ;; code-block from second sub-head of B #+END_SRC ** Results of inspecting babel info in source block B1 + =3DC-c C-v TAB=3D invokes =3D(org-babel-view-src-block-info)=3D *** In Org 8 + src_elisp{(org-version)} =3D8.2.10=3D + This looks fine #+BEGIN_EXAMPLE Lang: emacs-lisp Header Arguments: :cache no :colnames no :exports code :hlines yes :noweb no :results replace :session none :tangle test-B.el #+END_EXAMPLE *** In Org 9 + src_elisp{(org-version)} {{{results(=3D9.0.1=3D)}}} + This looks contradictory + The "Properties" section has ":header-args :tangle test-B.el", which is correct + But the "Header Arguments" has ":tangle test-A.el", which is wrong #+BEGIN_EXAMPLE Lang: emacs-lisp Properties: :header-args :tangle test-B.el :header-args:emacs-lisp nil Header Arguments: :cache no :exports code :hlines no :lexical no :noweb no :results replace :session none :tangle test-A.el #+END_EXAMPLE --=20 Dr William Henney, Instituto de Radioastronom=C3=ADa y Astrof=C3=ADsica, Universidad Nacional Aut=C3=B3noma de M=C3=A9xico, Campus Morelia --001a114edc52aed0a10541994c66 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,=C2=A0

Since upgrading to version 9.= 0, tangling of babel source blocks no longer works properly for me.=C2=A0 S= pecifically, the tangle file name is not inherited from settings in a prope= rty drawer higher up the sub-tree, so that "C-u C-u C-c C-v C-t" = no longer behaves as it should.=C2=A0 This worked fine in version 8 and I c= an't find any mention of any deliberate change in the manual or the cha= nge log.=C2=A0

Here is a minimal example that expl= ains what goes wrong.=C2=A0

Cheers

<= /div>
Will


* Test of inher= itance of tangle file name
** Pieces to tangle to test-A.el
=
:PROPERTIES:
:header-args: :tangle test-A.el
:END:=

*** Piece A1
#+BEGIN_SRC emacs-lisp=
;; code-block from first sub-head of A
#+END_SRC
=

*** Piece A2
#+BEGIN_SRC emacs-lisp
;; code-block from second sub-head of A
#+END_SRC

=
** Pieces to tangle to test-B.el
:PROPERTIES:
:header-args: :tangle test-B.el
:END:

<= div>+ This does not work any more in org 9
+ The pieces are tangl= ed to =3Dtest-A.el=3D instead of =3Dtest-B.el=3D=C2=A0

=
*** Piece B1
#+BEGIN_SRC emacs-lisp
;; code-block = from first sub-head of B
#+END_SRC

*** P= iece B2
#+BEGIN_SRC emacs-lisp
;; code-block from secon= d sub-head of B
#+END_SRC

** Results of = inspecting babel info in source block B1
+ =3DC-c C-v TAB=3D invo= kes =3D(org-babel-view-src-block-info)=3D

*** In O= rg 8=C2=A0
+ src_elisp{(org-version)} =3D8.2.10=3D
+ Th= is looks fine

#+BEGIN_EXAMPLE
Lang: emac= s-lisp
Header Arguments:
:cache no
:colnames no
:expor= ts co= de
:hlines yes
:noweb no
:results replace
:session none
:tangle= tes= t-B.el
#+END_EXAMPLE

*** In Org 9
+ src_elisp{(org-version)} {{{results(=3D9.0.1=3D)}}}
+ T= his looks contradictory
=C2=A0 + The "Properties" secti= on has ":header-args :tangle test-B.el", which is correct
=C2=A0 + But the "Header Arguments" has ":tangle test-A.el&quo= t;, which is wrong

#+BEGIN_EXAMPLE
Lang:= emacs-lisp
Properties:
:header-args :tangle test-B.el
:h= eader-args:emacs-lisp nil
Header Arguments:
:cache no
<= span class=3D"gmail-Apple-tab-span" style=3D"white-space:pre"> :expo= rts c= ode
:hlines no
:lexical no
:noweb no
:results replace
:sessio= n non= e
= :tangle test-A.el
#+END_EXAMPLE


--

=C2=A0 Dr William Henney, Instituto de Radioastronom=C3=ADa y Astrof= =C3=ADsica,
=C2=A0 Universidad Nacional Aut=C3=B3noma de M=C3=A9xico, Ca= mpus Morelia
--001a114edc52aed0a10541994c66--