From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Disable indent-tabs-mode in org-src buffers if appropriate Date: Sun, 06 Aug 2017 11:32:19 +0200 Message-ID: <87lgmxdot8.fsf@nicolasgoaziou.fr> References: <87tw1zl0wy.fsf@bernoul.li> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deHv6-0000gl-4D for emacs-orgmode@gnu.org; Sun, 06 Aug 2017 05:32:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1deHv4-0001eu-UZ for emacs-orgmode@gnu.org; Sun, 06 Aug 2017 05:32:24 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:49578) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1deHv4-0001ee-OY for emacs-orgmode@gnu.org; Sun, 06 Aug 2017 05:32:22 -0400 In-Reply-To: <87tw1zl0wy.fsf@bernoul.li> (Jonas Bernoulli's message of "Wed, 26 Jul 2017 16:37:17 +0200") 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-org list Hello, Jonas Bernoulli writes: > For the most part Org now honors the file-local value of > `indent-tabs-mode' as set in an Org file. When that value is `nil' and > a buffer used to edit a source block from that file contains lines that > begin with tabs, then those tabs are being replaced with spaces before > the text is written back into the Org file. > > So far so good. Unfortunately inside the buffer used to edit the source > block `indent-tabs-mode' is not disabled when appropriate. That doesn't > matter that much since it is just a transient buffer, but it is still > distracting. I'm not sure it should be changed. Remote editing buffer usually its own major modes. `indent-tabs-mode' should obey to that mode, not to the one from the source buffer. Also, tabs are not always being replaced with spaces before the text is written back into the Org file, e.g., when indentation is preserved. Regards, -- Nicolas Goaziou