Hello, Christophe Rhodes <cs...@cantab.net> 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