From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: [BUG] R src blocks untabify literal constant TABs Date: Thu, 8 Oct 2015 09:39:47 -0700 Message-ID: References: <87r3low81u.fsf@nicolasgoaziou.fr> <87vbaijve9.fsf@nicolasgoaziou.fr> <87io6hie0z.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkEFb-0007bJ-2j for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 12:41:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkEER-00024v-0X for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 12:40:57 -0400 Received: from iport-acv2-out.ucsd.edu ([132.239.0.174]:35932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkEEQ-000240-OI for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 12:39:50 -0400 In-Reply-To: <87io6hie0z.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Org-Mode mailing list On Thu, 8 Oct 2015, Nicolas Goaziou wrote: > Hello, > > "Charles C. Berry" writes: > [...] > > The main culprit is `org-do-remove-indentation', which doesn't need to > untabify the buffer in order to proceed. I changed that in master. It > should go a long way towards fixing the issue. > > Is there any case left to fix? If there isn't, is the current > documentation accurate enough or do you think it needs to be improved? > If `org-src-preserve-indentation' is nil, then embedded (not just leading/trailing) tabs in src blocks are converted to spaces when `org-edit-src-code' is called or when exported. Not sure I would call this a bug. If that is not deemed a bug, the docstring needs to mention that embedded tabs get converted. Apart from that, the documentation needs to reverse this in 14.2: "may replace sequences of spaces with tab characters" as it is spaces that replace tab characters. Best, Chuck