* Inheritance of tangle file for org babel blocks is broken in org 9
@ 2016-11-18 20:39 William Henney
2016-11-18 21:31 ` Charles C. Berry
0 siblings, 1 reply; 3+ messages in thread
From: William Henney @ 2016-11-18 20:39 UTC (permalink / raw)
To: emacs-org
[-- Attachment #1: Type: text/plain, Size: 2205 bytes --]
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 =test-A.el= instead of =test-B.el=
*** 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
+ =C-c C-v TAB= invokes =(org-babel-view-src-block-info)=
*** In Org 8
+ src_elisp{(org-version)} =8.2.10=
+ 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(=9.0.1=)}}}
+ 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
--
Dr William Henney, Instituto de Radioastronomía y Astrofísica,
Universidad Nacional Autónoma de México, Campus Morelia
[-- Attachment #2: Type: text/html, Size: 5726 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Inheritance of tangle file for org babel blocks is broken in org 9
2016-11-18 20:39 Inheritance of tangle file for org babel blocks is broken in org 9 William Henney
@ 2016-11-18 21:31 ` Charles C. Berry
2016-11-18 23:34 ` William Henney
0 siblings, 1 reply; 3+ messages in thread
From: Charles C. Berry @ 2016-11-18 21:31 UTC (permalink / raw)
To: William Henney; +Cc: emacs-org
On Fri, 18 Nov 2016, William Henney wrote:
> Hi,
>
> Since upgrading to version 9.0, tangling of babel source blocks no longer
> works properly for me.
It works for me with Org mode version 9.0.1 (release_9.0.1-31-g0a24f5).
Running your ECM, the `tail' of C-c C-v C-i:
:tangle test-B.el
Maybe try restarting emacs to be sure 9.0.1 loads cleanly?
HTH,
Chuck
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Inheritance of tangle file for org babel blocks is broken in org 9
2016-11-18 21:31 ` Charles C. Berry
@ 2016-11-18 23:34 ` William Henney
0 siblings, 0 replies; 3+ messages in thread
From: William Henney @ 2016-11-18 23:34 UTC (permalink / raw)
To: Charles C. Berry; +Cc: emacs-org
[-- Attachment #1: Type: text/plain, Size: 792 bytes --]
On Fri, Nov 18, 2016 at 3:31 PM, Charles C. Berry <ccberry@ucsd.edu> wrote:
> On Fri, 18 Nov 2016, William Henney wrote:
>
> Hi,
>>
>> Since upgrading to version 9.0, tangling of babel source blocks no longer
>> works properly for me.
>>
>
> It works for me with Org mode version 9.0.1 (release_9.0.1-31-g0a24f5).
>
> Running your ECM, the `tail' of C-c C-v C-i:
>
> :tangle test-B.el
>
> Maybe try restarting emacs to be sure 9.0.1 loads cleanly?
>
>
Thanks Chuck - that worked! Weird, since I was sure I had already
restarted emacs once after updating. But restarting again seems to have
fixed things.
Will
--
Dr William Henney, Instituto de Radioastronomía y Astrofísica,
Universidad Nacional Autónoma de México, Campus Morelia
[-- Attachment #2: Type: text/html, Size: 1437 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-11-18 23:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-18 20:39 Inheritance of tangle file for org babel blocks is broken in org 9 William Henney
2016-11-18 21:31 ` Charles C. Berry
2016-11-18 23:34 ` William Henney
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).