From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Zamboni Subject: Re: Including file from a macro? Date: Wed, 27 Jun 2018 11:28:47 +0200 Message-ID: References: <877emkr73q.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e81380056f9c3d9e" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fY6kv-0001wV-Lo for emacs-orgmode@gnu.org; Wed, 27 Jun 2018 05:28:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fY6kr-0001BH-P0 for emacs-orgmode@gnu.org; Wed, 27 Jun 2018 05:28:53 -0400 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:42365) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fY6kr-00019O-GL for emacs-orgmode@gnu.org; Wed, 27 Jun 2018 05:28:49 -0400 Received: by mail-ed1-x535.google.com with SMTP id g12-v6so2665497edi.9 for ; Wed, 27 Jun 2018 02:28:48 -0700 (PDT) In-Reply-To: <877emkr73q.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Org-mode --000000000000e81380056f9c3d9e Content-Type: text/plain; charset="UTF-8" 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 wrote: > Hello, > > Diego Zamboni writes: > > > Is it possible to use "#+include" from within a macro? > > No, it isn't. Include keywords are expanded before macros. > > Regards, > > -- > Nicolas Goaziou > --000000000000e81380056f9c3d9e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Nicolas,

(sorry for repeat- resending reply to list)

Thanks for the clari= fication. Do you think there could be a way to achieve what I need (basical= ly what was shown in my question). I would to build a summary file with lin= ks and selected paragraphs from multiple other files in the same directory = (use case: I want to automate the creation of README.org at=C2=A0https://git= hub.com/zzamboni/elvish-modules/, among others). I can do the head= line/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

--000000000000e81380056f9c3d9e--