From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Something like #+BIND but for the destination buffer Date: Sat, 31 Dec 2016 15:40:42 +0100 Message-ID: <874m1krwk5.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNKpz-0006JM-15 for emacs-orgmode@gnu.org; Sat, 31 Dec 2016 09:40:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cNKpy-0005uh-8d for emacs-orgmode@gnu.org; Sat, 31 Dec 2016 09:40:47 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:54832) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cNKpy-0005uA-2v for emacs-orgmode@gnu.org; Sat, 31 Dec 2016 09:40:46 -0500 In-Reply-To: (Jonas Bernoulli's message of "Sat, 31 Dec 2016 15:17:57 +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" To: Jonas Bernoulli Cc: emacs-orgmode@gnu.org Hello, Jonas Bernoulli writes: > I need to ensure that the texinfo exporter generates texi files that use > space for indentation even when the global value of indent-tabs-mode is t. > If tabs are used, then code blocks end up being intended wrong in the final > info file. > > There are probably other more direct approaches to achieve this, but when I > stumbled into #+BIND I thought I had found the mechanism to achieve this. > But it turned out that #+BIND allows setting variables in the buffer from > which the export happens, not the buffer into which it happens. So I would > like to suggest the addition of something like #+BIND-DEST, to allow > setting variables in the destination buffer. Could you provide an ECM? Besides, using `org-export-filter-final-output-functions' seems easier than your set up. Regards, -- Nicolas Goaziou