From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: On tabs and spaces Date: Thu, 15 Jan 2015 10:57:53 +0100 Message-ID: <87a91kfjry.fsf@fencepost.gnu.org> References: <54B6FA42.6000608@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421316404 29253 80.91.229.3 (15 Jan 2015 10:06:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2015 10:06:44 +0000 (UTC) Cc: bruce.connor.am@gmail.com, emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 15 11:06:39 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 1YBhK2-0003Iz-2h for ged-emacs-devel@m.gmane.org; Thu, 15 Jan 2015 11:06:38 +0100 Original-Received: from localhost ([::1]:49872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBhK1-00080d-9L for ged-emacs-devel@m.gmane.org; Thu, 15 Jan 2015 05:06:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBhJj-00080M-Hf for emacs-devel@gnu.org; Thu, 15 Jan 2015 05:06:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBhJi-0007fp-1E for emacs-devel@gnu.org; Thu, 15 Jan 2015 05:06:19 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBhJh-0007fl-UZ for emacs-devel@gnu.org; Thu, 15 Jan 2015 05:06:17 -0500 Original-Received: from localhost ([127.0.0.1]:39698 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBhJh-00061J-7p; Thu, 15 Jan 2015 05:06:17 -0500 Original-Received: by lola (Postfix, from userid 1000) id 79DDEE0473; Thu, 15 Jan 2015 10:57:53 +0100 (CET) In-Reply-To: <54B6FA42.6000608@yandex.ru> (Dmitry Gutov's message of "Thu, 15 Jan 2015 02:22:42 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:181281 Archived-At: Dmitry Gutov writes: > On 01/15/2015 02:15 AM, Artur Malabarba wrote: >> Given that `.dir-locals.el' sets `indent-tabs-mode' to nil, > > Which one? > >> does that >> mean we prefer spaces for indentation everywhere? >> And, if so, would it be acceptable to push a commit that simply converts >> a file from tabs to spaces? > > Nope. As per previous discussions, you're only really allowed to > fix/change indentation in the places you make other, meaningful > changes to. > > Mostly so that 'git blame' returns meaningful results (it has a -w > option, but that makes it even slower). git blame does not spend that much of its time diffing. Even if the difference between plain and -w has become larger with Git 2.1+ (simply because it wastes vastly less time with other endeavors), the bulk of the run time is likely spent in unpacking files from the repository rather than comparing them. If you use a Git version older than 2.1, upgrading might make sense just because of git blame performance. The difference is quite noticeable. -- David Kastrup