From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Tangling based on file level #+PROPERTY Date: Sat, 07 Oct 2017 13:44:24 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e0828e2007bd88d055af52880" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0pPC-0000Fc-CB for emacs-orgmode@gnu.org; Sat, 07 Oct 2017 09:44:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0pPB-0003dX-FP for emacs-orgmode@gnu.org; Sat, 07 Oct 2017 09:44:38 -0400 Received: from mail-qt0-x22d.google.com ([2607:f8b0:400d:c0d::22d]:55038) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0pPB-0003cM-9r for emacs-orgmode@gnu.org; Sat, 07 Oct 2017 09:44:37 -0400 Received: by mail-qt0-x22d.google.com with SMTP id i13so36096672qtc.11 for ; Sat, 07 Oct 2017 06:44:37 -0700 (PDT) In-Reply-To: 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: Ken Mankoff , emacs-org list --089e0828e2007bd88d055af52880 Content-Type: text/plain; charset="UTF-8" On Sat, Oct 7, 2017, 7:10 AM Ken Mankoff wrote: > Hi Org List, > > I just upgraded to 9.1.2. > What version did you upgrade from? I have a file with this at the top: > > #+PROPERTY: header-args :tangle filename > > And a lot of SRC blocks with this header: > > #+BEGIN_SRC emacs-lisp > #+END_SRC > > In the past, when I tangled the file, I got ~100 blocks exported. Now I > get 5, because only 5 have explicit ":tangle" arguments in the header. > > I just checked the NEWS file and did not see mention of this change. Has > something changed with the header-arg properties? Babel? > It impossible to tell what's wrong with just that information. Can you share a minimum working example that demonstrates this? (something that should probably tangle 3 files but is instead tangling just 1?) My best guess is you have this style of incompatible properties? *** Old Babel header properties are no longer supported Using header arguments as property names is no longer possible. As such, the following #+BEGIN_EXAMPLE ,* Headline :PROPERTIES: :exports: code :var: a=1 b=2 :var+: c=3 :END: #+END_EXAMPLE should be written instead #+BEGIN_EXAMPLE ,* Headline :PROPERTIES: :header-args: :exports code :header-args+: :var a=1 b=2 :header-args+: :var c=3 :END: #+END_EXAMPLE Please note that, however, old properties were defined at the source block definition. Current ones are defined where the block is called. -- Kaushal Modi --089e0828e2007bd88d055af52880 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Oct 7, 2017, 7:10 AM Ke= n Mankoff <mankoff@gmail.com>= ; wrote:
Hi Org Li= st,

I just upgraded to 9.1.2.

What version did you upgrade from?

I have a file with this at the top:=

#+PROPERTY: header-args=C2=A0 :tangle file= name

And a lot of SRC blocks with this header:=

#+BEGIN_SRC emacs-lisp
#+END_SRC

In the past, when I tangled the file, I got ~100 blo= cks exported. Now I get 5, because only 5 have explicit ":tangle"= arguments in the header.

I just checked the NEWS = file and did not see mention of this change. Has something changed with the= header-arg properties? Babel?

It impossible to tell what's wrong with just that information. Ca= n you share a minimum working example that demonstrates this? (something th= at should probably tangle 3 files but is instead tangling just 1?)

My best guess is you have this style of=C2=A0 incompatible= properties?

*** Old Babel header properties are n= o longer supported

Using header arguments as property names is no lo= nger possible. As
such, the following

#+BEGIN_EXAMPLE
,* Head= line
:PROPERTIES:
:exports: code
:var: a=3D1 b=3D2
:var+: c=3D3=
:END:
#+END_EXAMPLE

should be written instead

#+BEGIN_= EXAMPLE
,* Headline
:PROPERTIES:
:header-args: :exports code
:h= eader-args+: :var a=3D1 b=3D2
:header-args+: :var c=3D3
:END:
#+EN= D_EXAMPLE

Please note that, however, old properties were defined at = the source
block definition. Current ones are defined where the block i= s called.

--

Kaushal Modi

--089e0828e2007bd88d055af52880--