From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ANN] ASCII back-end for new export engine Date: Sun, 22 Jan 2012 10:43:50 +0100 Message-ID: <87hazo3wdl.fsf@gmail.com> References: <87pqec4xua.fsf@gmail.com> <87lip04pyy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rotzk-0004yg-VE for emacs-orgmode@gnu.org; Sun, 22 Jan 2012 04:45:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rotzk-0002vQ-0t for emacs-orgmode@gnu.org; Sun, 22 Jan 2012 04:45:52 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:57955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rotzj-0002vM-Qv for emacs-orgmode@gnu.org; Sun, 22 Jan 2012 04:45:51 -0500 Received: by wicr5 with SMTP id r5so1842843wic.0 for ; Sun, 22 Jan 2012 01:45:51 -0800 (PST) In-Reply-To: (Samuel Wales's message of "Sat, 21 Jan 2012 18:28:43 -0700") 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: Samuel Wales Cc: Org Mode List Hello, Samuel Wales writes: > In 22, latest git: > > downcase: Args out of range: "image-keep-calm", 651500, 651505 > > match-string(1 "image-keep-calm") > (downcase (match-string 1 val)) > (concat ":macro-" (downcase (match-string 1 val))) > (intern (concat ":macro-" (downcase ...))) > (plist-put nil (intern (concat ":macro-" ...)) (match-string 2 val)) [...] I've pushed a patch so macro detection is more careful about corner cases. Please tell me if it works for you. Also, judging by the backtrace, it seems that you are using a strange syntax for defining macros. Would you mind telling me what your "#+macro:" line is like, and what you do expect from it? Regards, -- Nicolas Goaziou