From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Macro question with new texinfo exporter Date: Tue, 29 Jan 2013 19:21:32 +0100 Message-ID: <877gmvalzn.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0Fog-00075K-LW for emacs-orgmode@gnu.org; Tue, 29 Jan 2013 13:21:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0Fof-0006EQ-9X for emacs-orgmode@gnu.org; Tue, 29 Jan 2013 13:21:54 -0500 Received: from mail-wi0-f178.google.com ([209.85.212.178]:60582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0Fof-0006EK-36 for emacs-orgmode@gnu.org; Tue, 29 Jan 2013 13:21:53 -0500 Received: by mail-wi0-f178.google.com with SMTP id hn3so741086wib.11 for ; Tue, 29 Jan 2013 10:21:52 -0800 (PST) In-Reply-To: (Thomas S. Dye's message of "Mon, 28 Jan 2013 10:19:13 -1000") 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: "Thomas S. Dye" Cc: Org-mode Hello, tsd@tsdye.com (Thomas S. Dye) writes: > I have the following two macros: > > #+MACRO: markup @@info:@$1{@@$2@@info:}@@ > #+MACRO: kbd {{{markup(kbd,$1)}}} > > When I export to texinfo using the new exporter, the following macro > call triggers an error (byte-code: Wrong type argument: consp, nil): > > {{{kbd(C-,)}}} > > and so does this: > > {{{kbd(C-\,)}}} > > In fact, any number of backslashes appears to trigger the same error. > > I'm hoping to find @kbd{C-,} in the .texi output. I didn't try it, but it probably comes from the syntax of macros, which is a bit brittle wrt commas. We ought to modify it. Perhaps something like: {{{name arg1 "arg2 with space" "arg3 \"with\" quote"}}} Regards, -- Nicolas Goaziou