From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Beck Subject: `org-export-define-backend' and its friends are now defuns (was: Build fail with emacs 24.3.1) Date: Wed, 20 Mar 2013 20:03:52 +0100 Message-ID: <8738vpvqp3.fsf_-_@sophokles.streitblatt.de> References: <4213D585-9331-41E2-AA2B-03550D3E043B@univie.ac.at> <878v5reck1.fsf@bzg.ath.cx> <8738vznjw9.fsf@Rainer.invalid> <87wqtalnlc.fsf@bzg.ath.cx> <87txoete7m.fsf@bzg.ath.cx> <87ehfhg5ni.fsf@Rainer.invalid> <87sj3rrzim.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIOJ2-0001QE-H6 for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 15:04:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIOIv-0004MB-58 for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 15:04:12 -0400 Received: from mo6-p00-ob.rzone.de ([2a01:238:20a:202:5300::1]:59523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIOIu-0004Ln-UV for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 15:04:05 -0400 In-Reply-To: <87sj3rrzim.fsf@bzg.ath.cx> (Bastien's message of "Tue, 19 Mar 2013 18:14:17 +0100") 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: Bastien Cc: Achim Gratz , emacs-orgmode@gnu.org Bastien writes: > Anyway, `org-export-define-backend' and its friends are > now defuns, since there is no good reason for them to be macros. This broke my setup and I had to dig (git log -p) to figure out what to do (basically quote everything) Instead of (org-export-define-derived-backend my-latex latex :translate-alist ((template . my-latex-template-fun))) write (org-export-define-derived-backend 'my-latex 'latex :translate-alist '((template . my-latex-template-fun))) [There are now double quotes in the ascii backend, which I guess are not needed.] Obvious, when you think about it, but I'm a bit dense when the byte-compiler tells me that my-latex-template-fun is a malformed function. A little more prominent warning would have been much appreciated. -- Florian Beck