From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-export-current-backend variable and org-mode 8 Date: Sat, 03 Aug 2013 09:50:07 +0200 Message-ID: <87bo5fb4cw.fsf@gmail.com> References: <874nbavgmw.fsf@cantab.net> <87y58mtult.fsf@cantab.net> <87siyuzcnm.fsf@gmail.com> <87li4mtohu.fsf@cantab.net> <87r4ecs96v.fsf@cantab.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5WbB-0002jO-DZ for emacs-orgmode@gnu.org; Sat, 03 Aug 2013 03:50:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V5Wb6-0006aD-6P for emacs-orgmode@gnu.org; Sat, 03 Aug 2013 03:50:01 -0400 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:53071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5Wb6-0006a5-0w for emacs-orgmode@gnu.org; Sat, 03 Aug 2013 03:49:56 -0400 Received: by mail-wi0-f181.google.com with SMTP id en1so136060wid.2 for ; Sat, 03 Aug 2013 00:49:55 -0700 (PDT) In-Reply-To: <87r4ecs96v.fsf@cantab.net> (Christophe Rhodes's message of "Fri, 02 Aug 2013 11:01:28 +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: Christophe Rhodes Cc: emacs-orgmode@gnu.org Hello, Christophe Rhodes writes: >> The `by-backend' macro in Brett Viren's message upthread? Personally I >> don't consider that sufficient, because it feels very fragile: a simple >> renaming of org-mode internal variables, or turning on lexical binding, >> and the macro will no longer work. (If you mean some other >> `by-backend', I haven't seen it). I thought `by-backend' was in core already. Anyway, if it is, we'll make sure it will not be fragile anymore. > Subject: [PATCH] ox: restore org-export-current-backend variable > > * lisp/ox.el (org-export-current-backend): new variable. > (org-export-as): bind it. Applied a slightly different version. Thank you. Regards, -- Nicolas Goaziou