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 21:24:06 +0100 Message-ID: <87obhrjehl.fsf@gmail.com> References: <87mwxbe0hx.fsf@bzg.ath.cx> <8738z3kys0.fsf@gmail.com> <87ehinb36h.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl3m7-0008AY-3s for emacs-orgmode@gnu.org; Tue, 18 Dec 2012 15:28:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tl3lz-0007RU-0z for emacs-orgmode@gnu.org; Tue, 18 Dec 2012 15:28:23 -0500 Received: from mail-wg0-f54.google.com ([74.125.82.54]:56074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl3ly-0007Qu-KW for emacs-orgmode@gnu.org; Tue, 18 Dec 2012 15:28:18 -0500 Received: by mail-wg0-f54.google.com with SMTP id fg15so541454wgb.9 for ; Tue, 18 Dec 2012 12:28:14 -0800 (PST) In-Reply-To: <87ehinb36h.fsf@bzg.ath.cx> (Bastien's message of "Tue, 18 Dec 2012 19:55:34 +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" Bastien writes: >> A filter function requires three arguments. > > ... so that's where complexity comes from. I'm afraid you'll just > scare away many users with these three arguments. > > What do you think? Using a hook or a filter requires to write a function in most cases. I don't think that a person able to write such a function would cringe in front of a function of three arguments (you don't even have to use them all). Filters are applied on something (often a string). That something is the first argument. Also, filters are probably very dependant on the back-end used. That is the second argument. Eventually, it may be useful to know which options were active at the time of export. This is the third argument. I can remove the last argument, bringing down the sum of arguments to 2. Should I? Regards, -- Nicolas Goaziou