From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Including setupfile settings during subtree export (new exporter) Date: Sat, 23 Mar 2013 15:37:08 -0500 Message-ID: References: <87obebwj3s.fsf@gmail.com> <87620h27br.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJVBf-0005TI-8l for emacs-orgmode@gnu.org; Sat, 23 Mar 2013 16:37:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJVBd-0001lj-PG for emacs-orgmode@gnu.org; Sat, 23 Mar 2013 16:37:11 -0400 Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:49928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJVBd-0001lf-HU for emacs-orgmode@gnu.org; Sat, 23 Mar 2013 16:37:09 -0400 Received: by mail-la0-f52.google.com with SMTP id fs12so9302885lab.11 for ; Sat, 23 Mar 2013 13:37:08 -0700 (PDT) In-Reply-To: <87620h27br.fsf@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode On Sat, Mar 23, 2013 at 3:24 PM, Nicolas Goaziou wrote: > Hello, > > John Hendy writes: > >> #+begin_src setupfile >> >> #+AUTHOR: John Henderson >> #+latex_header: \usepackage[hmargin=2.5cm,vmargin=2.5cm]{geometry} >> #+latex_header: \usepackage{mathpazo} >> >> #+end_src >> #+begin_src test-setupfile.org >> >> #+include: "/path/to/setupfile" > > Use "#+setupfile:" instead of "#+include:" > > There's a major difference between "setupfile" and "include" keyword > here: the former applies to the whole buffer, whereas the latter is only > expanded in the part being exported. Huh, well that's interesting. I /had/ #+setupfile, and only changed due to following the upgrade guide (http://orgmode.org/worg/org-8.0.html) #+begin_quote Other important changes #+STYLE: -> #+HTML_HEAD: #+SETUPFILE: myfile -> =#+INCLUDE: "myfile"= #+end_quote That reads, to me, as though the syntax changed. Perhaps the "->" didn't mean what I took it to mean? > > In your case, the INCLUDE keyword doesn't belong to the subtree, so it > is never expanded. Thanks for the clarification. For me (since I'm not an elisper), the mechanics aren't too important. All I really want is the correct way to apply org-mode settings to a buffer or a subtree by default, unless I specify otherwise inside a subtree to override the buffer-wide setupfile. Based on the above, should that line be removed from the Worg update guide? If so, I can do that. If someone has a better understanding of why it was included (perhaps #+include is a new feature and should be better explained), then maybe they should do it. I'll change back to #+setupfile! Thanks for the assistance, John > > Regards, > > -- > Nicolas Goaziou