emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Jarmo Hurri <jarmo.hurri@iki.fi>
Cc: emacs-orgmode@gnu.org
Subject: Re: Include lines in setupfile are not evaluated: bug or feature?
Date: Sun, 08 Dec 2019 09:38:14 +0100	[thread overview]
Message-ID: <87y2vntdop.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87a7831fda.fsf@iki.fi> (Jarmo Hurri's message of "Sun, 08 Dec 2019 08:49:21 +0200")

Hello,

Jarmo Hurri <jarmo.hurri@iki.fi> writes:

> Ok. As a programmer I was hoping to mix them, because it would be
> logical to have _one_ header file that defines all the common things for
> a set of related files.

Again, there is no overlap between the two keywords. SETUPFILE is what
you want. INCLUDE is only meaningful during export (and is only
documented there). I cannot think of a real situation where you would
need both for the same file.

> Do I understand correctly: the description in the documentation is not
> correct in the sense that not all contents from SETUPFILE is evaluated
> as if it were included in the buffer?

I think the document is correct, although I understand it can be
misleading: it uses the verb "to include", but with a different meaning
than INCLUDE keyword. It includes in-buffer settings, not full contents.

> I am just trying to think about how this limitation, if it exists,
> should be expressed in documentation. Shall I give it a try?

Sure, but please do not mix SETUPFILE and INCLUDE, which are unrelated.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2019-12-08  8:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-07  7:58 Include lines in setupfile are not evaluated: bug or feature? Jarmo Hurri
2019-12-07 11:19 ` Nicolas Goaziou
2019-12-08  6:49   ` Jarmo Hurri
2019-12-08  8:38     ` Nicolas Goaziou [this message]
2019-12-16  6:17       ` Jarmo Hurri
2019-12-16 16:27         ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y2vntdop.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=jarmo.hurri@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).