From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: define a new export backend Date: Thu, 31 Jul 2014 10:39:46 +0200 Message-ID: <87k36tkjl9.fsf@nicolasgoaziou.fr> References: <87bns69eeo.fsf@gmail.com> <877g2uymqh.fsf@geodiff-mac3.ulb.ac.be> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCltJ-0005UY-5X for emacs-orgmode@gnu.org; Thu, 31 Jul 2014 04:39:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCltB-0005G1-Tf for emacs-orgmode@gnu.org; Thu, 31 Jul 2014 04:39:13 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:60276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCltB-0005Fs-N1 for emacs-orgmode@gnu.org; Thu, 31 Jul 2014 04:39:05 -0400 In-Reply-To: <877g2uymqh.fsf@geodiff-mac3.ulb.ac.be> (Nicolas Richard's message of "Thu, 31 Jul 2014 10:08:06 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Richard Cc: emacs-orgmode@gnu.org, Thorsten Jolitz Hello, Nicolas Richard writes: > Perhaps org-export-define-derived-backend could do a sanity check that > all keywords are known. Good idea, as long as `org-export-define-backend' does the same. > - (let (blocks filters menu-entry options transcoders contents) > + (let (blocks filters menu-entry options transcoders contents keyword) KEYWORD should be let-bound within the while loop. > (while (keywordp (car body)) > - (case (pop body) > + (case (setq keyword (pop body)) (while (keywordp (car body)) (let ((keyword (pop body))) (case keyword (...) (t (error "Unknown keyword: %s" keyword))))) Regards, -- Nicolas Goaziou