From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Tangling based on file level #+PROPERTY Date: Sat, 7 Oct 2017 18:05:30 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403043b27b8c8dac3055af722d7" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0rcC-0000vT-Jm for emacs-orgmode@gnu.org; Sat, 07 Oct 2017 12:06:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0rcB-00088o-93 for emacs-orgmode@gnu.org; Sat, 07 Oct 2017 12:06:12 -0400 Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:48717) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0rcB-00088N-3J for emacs-orgmode@gnu.org; Sat, 07 Oct 2017 12:06:11 -0400 Received: by mail-qk0-x233.google.com with SMTP id d67so17016877qkg.5 for ; Sat, 07 Oct 2017 09:06:11 -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: Kaushal Modi Cc: emacs-org list --f403043b27b8c8dac3055af722d7 Content-Type: text/plain; charset="UTF-8" Strange, and nevermind. Restarting emacs fixed it. It must have been something to do with stale files and the upgrade. -k. On Sat, Oct 7, 2017 at 3:44 PM, Kaushal Modi wrote: > 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 > --f403043b27b8c8dac3055af722d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Strange, and nevermind. Restarting emacs fixed it. It must= have been something to do with stale files and the upgrade.

=
=C2=A0 -k.

On Sat, Oct 7, 2017 at 3:44 PM, Kaushal Modi &l= t;kaushal.modi@= gmail.com> wrote:
On Sat, Oct 7, 2017, 7= :10 AM Ken Mankoff <mankoff@gmail.com> 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=C2=A0 :tangle filename

<= /div>
And a lot of SRC blocks with this header:

#+BEGIN_SRC emacs-lisp
#+END_SRC

I= n 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 men= tion of this change. Has something changed with the header-arg properties? = Babel?

It impossib= le to tell what's wrong with just that information. Can you share a min= imum working example that demonstrates this? (something that should probabl= y 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 no longer supporte= d

Using header arguments as property names is no longer possible. A= s
such, the following

#+BEGIN_EXAMPLE
,* Headline
:PROPERTI= ES:
:exports: code
:var: a=3D1 b=3D2
:var+: c=3D3
:END:
#+EN= D_EXAMPLE

should be written instead

#+BEGIN_EXAMPLE
,* Hea= dline
:PROPERTIES:
:header-args: :exports code
:header-args+: :var= a=3D1 b=3D2
:header-args+: :var c=3D3
:END:
#+END_EXAMPLE

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

--

Kaushal Modi


--f403043b27b8c8dac3055af722d7--