From: Diego Zamboni <diego@zzamboni.org>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Including file from a macro?
Date: Wed, 27 Jun 2018 11:28:47 +0200 [thread overview]
Message-ID: <CAGY83Ec1ao3ct3QsTtosbLLbDrU+p7vrc9+oYThFegNYj7dEJw@mail.gmail.com> (raw)
In-Reply-To: <877emkr73q.fsf@nicolasgoaziou.fr>
[-- Attachment #1: Type: text/plain, Size: 899 bytes --]
Hi Nicolas,
(sorry for repeat- resending reply to list)
Thanks for the clarification. Do you think there could be a way to achieve
what I need (basically what was shown in my question). I would to build a
summary file with links and selected paragraphs from multiple other files
in the same directory (use case: I want to automate the creation of
README.org at https://github.com/zzamboni/elvish-modules/, among others). I
can do the headline/include by hand (or using YAsnippets maybe), but I
thought it would be much easier to just automate this with macros.
Thanks for any ideas.
--Diego
On Wed, Jun 27, 2018 at 10:01 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:
> Hello,
>
> Diego Zamboni <diego@zzamboni.org> writes:
>
> > Is it possible to use "#+include" from within a macro?
>
> No, it isn't. Include keywords are expanded before macros.
>
> Regards,
>
> --
> Nicolas Goaziou
>
[-- Attachment #2: Type: text/html, Size: 1807 bytes --]
next prev parent reply other threads:[~2018-06-27 9:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-27 7:57 Including file from a macro? Diego Zamboni
2018-06-27 8:01 ` Nicolas Goaziou
2018-06-27 9:28 ` Diego Zamboni [this message]
2018-06-27 16:42 ` Berry, Charles
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=CAGY83Ec1ao3ct3QsTtosbLLbDrU+p7vrc9+oYThFegNYj7dEJw@mail.gmail.com \
--to=diego@zzamboni.org \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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).