From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Multi-line macros (again) Date: Fri, 07 Oct 2016 14:30:31 +0300 Message-ID: <87int49z1k.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsTMm-0001BE-Qs for emacs-orgmode@gnu.org; Fri, 07 Oct 2016 07:31:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsTMj-0002Ds-3W for emacs-orgmode@gnu.org; Fri, 07 Oct 2016 07:31:03 -0400 Received: from [195.159.176.226] (port=58316 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsTMi-0002Ap-Sq for emacs-orgmode@gnu.org; Fri, 07 Oct 2016 07:31:01 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bsTMP-0002Tb-8I for emacs-orgmode@gnu.org; Fri, 07 Oct 2016 13:30:41 +0200 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: emacs-orgmode@gnu.org Greetings. I think I have discussed multiline Org macros here before. But I bumped into the issue again. One of the most useful properties of LaTeX is \newcommand, which allows you to reuse document structures. I really, _really_ miss this feature in Org. Org has #+MACRO, but it is limited to a single line. That is very inconvenient for any larger structures. I was thinking (awfully sorry, will stop soon). Could we have multiline macros, something like #+BEGIN_MACRO name #+END_MACRO where everything between the begin and end would be expanded just like (single line) macros are right now. With newlines included in the expansion. How about it? Jarmo