From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: texinfo back-end won't export to INFO Date: Tue, 18 Dec 2012 19:20:31 +0100 Message-ID: <8738z3kys0.fsf@gmail.com> References: <87mwxbe0hx.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl1qP-0005Wx-IN for emacs-orgmode@gnu.org; Tue, 18 Dec 2012 13:24:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tl1qK-0006HM-Lr for emacs-orgmode@gnu.org; Tue, 18 Dec 2012 13:24:45 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:39997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl1qK-0006Fa-Ex for emacs-orgmode@gnu.org; Tue, 18 Dec 2012 13:24:40 -0500 Received: by mail-ee0-f41.google.com with SMTP id d41so550265eek.28 for ; Tue, 18 Dec 2012 10:24:39 -0800 (PST) In-Reply-To: <87mwxbe0hx.fsf@bzg.ath.cx> (Bastien's message of "Tue, 18 Dec 2012 18:25:14 +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: Org-mode , "Thomas S. Dye" Hello, Bastien writes: > I think this calls for a new variable `org-export-after-rendering-hook' > which will operate after the final stage of the export process, in the > export buffer. Filters are fine but their complexity is not useful here. > > Then we could add 'texinfo-all-menus-update to this hook. > > Nicolas, what do you think? There is no such thing as an "export buffer" in the new exporter, `org-export-as' produces a string. Though, there is `org-export-filter-final-output-functions', which will operate on the last string produced by `org-export-as'. You may create a function that will insert that string in a buffer, apply `texinfo-all-menus-update' and call `buffer-string', and add it to that filter set. Note that complexity of filters is the same as hook: you add functions to a list. A filter function requires three arguments. Regards, -- Nicolas Goaziou