From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: indent-tabs-mode setting in Emacs's dir-locals.el Date: Wed, 16 Dec 2015 03:19:21 +0200 Message-ID: <5670BC19.6030002@yandex.ru> References: <83bn9r3cwr.fsf@gnu.org> <5670ACBC.8020203@cs.ucla.edu> <5670AF1D.1090803@yandex.ru> <5670B797.5080200@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1450228790 30440 80.91.229.3 (16 Dec 2015 01:19:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2015 01:19:50 +0000 (UTC) To: Paul Eggert , Eli Zaretskii , bruce.connor.am@gmail.com, dak@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 16 02:19:45 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a90kq-0004Q0-PL for ged-emacs-devel@m.gmane.org; Wed, 16 Dec 2015 02:19:45 +0100 Original-Received: from localhost ([::1]:39817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a90kp-0004nE-J5 for ged-emacs-devel@m.gmane.org; Tue, 15 Dec 2015 20:19:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a90kb-0004n4-Ao for emacs-devel@gnu.org; Tue, 15 Dec 2015 20:19:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a90kX-0000ij-Qi for emacs-devel@gnu.org; Tue, 15 Dec 2015 20:19:29 -0500 Original-Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:37430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a90kX-0000iY-Kp; Tue, 15 Dec 2015 20:19:25 -0500 Original-Received: by mail-wm0-x233.google.com with SMTP id n186so50551707wmn.0; Tue, 15 Dec 2015 17:19:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=kMtX8cKjI0mLWmHkDHd9jUTIrHO1Kn5K+6AYmH2hffg=; b=WX2yNzzlak/hLJAgVb5iooDQyXANMVdG84u1FS90w++I8T1ffOS9/ws+sE0hES2x84 ajGJ856JJ6/Ici74TiSyMSWQwGfZGCU4onNxRONKUtcT6LFyx2mtkozV4kguYPcPvI+s TtY5MgDmsAtBgjyeS13Op52dWsn7qGv/o7cCYVgYGbesShrsQcZ7SM7HTQKAaQm9xEUk 27lwSu6koTLV0udogUn+dMzoxl+YoxB7lOA+o9jY/6N5Y+brtKfokymqkvAWgqFCvYEr +ZcXo+7DsBJQBCRX0XA3VL0lWzSBjumJVZRE4t4Ded7/xKL2NFCK1oU3laISfxPyFsNT YExg== X-Received: by 10.194.79.227 with SMTP id m3mr4596882wjx.5.1450228764860; Tue, 15 Dec 2015 17:19:24 -0800 (PST) Original-Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id q6sm23266149wmd.8.2015.12.15.17.19.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Dec 2015 17:19:23 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0 In-Reply-To: <5670B797.5080200@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196336 Archived-At: On 12/16/2015 03:00 AM, Paul Eggert wrote: > I observe problems in this area when changing code (which changes > indentation) and then changing it back (i.e., not undo, but make a > further change that undoes most or all of the original change). Indeed, that would do it. > In this > case Emacs changes tabs to spaces, assuming the .dir-locals.el settings > already mentioned. Yup. But it only makes a difference if Arthur hasn't customized indent-tabs-mode to nil in his Emacs already. Having a project-wide setting, however, lets us hope that someday the indentation style will be uniform, and this problem won't occur anymore. > Yes, of course. Here, though, a two-line changed ballooned into a > 23-line change. The first 2 lines of the ballooned change were real, and > the other 21 lines were tabs-to-spaces only. I usually try to undo such hunks with `diff-hl-revert-hunk'.