From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#20323: 25.0.50; Emacs's .dir-locals.el should set indent-tabs-mode to nil for emacs-lisp-mode and c-mode Date: Thu, 16 Apr 2015 16:15:54 -0400 Message-ID: <3rwq1bommd.fsf@fencepost.gnu.org> References: <86y4lv1kyy.fsf@yandex.ru> <552D0511.7000903@yandex.ru> <552D950F.5090602@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1429215383 18598 80.91.229.3 (16 Apr 2015 20:16:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Apr 2015 20:16:23 +0000 (UTC) Cc: 20323@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 16 22:16:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1YiqCp-000553-DE for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Apr 2015 22:16:11 +0200 Original-Received: from localhost ([::1]:38460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiqCo-0001cG-4Q for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Apr 2015 16:16:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiqCk-0001c9-G0 for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2015 16:16:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiqCg-0005Us-N9 for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2015 16:16:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiqCg-0005SS-Jf for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2015 16:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YiqCg-0005Vz-5R for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2015 16:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Apr 2015 20:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20323-submit@debbugs.gnu.org id=B20323.142921535821186 (code B ref 20323); Thu, 16 Apr 2015 20:16:02 +0000 Original-Received: (at 20323) by debbugs.gnu.org; 16 Apr 2015 20:15:58 +0000 Original-Received: from localhost ([127.0.0.1]:58373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiqCc-0005Vd-Fa for submit@debbugs.gnu.org; Thu, 16 Apr 2015 16:15:58 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:50305 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiqCa-0005VU-EP for 20323@debbugs.gnu.org; Thu, 16 Apr 2015 16:15:57 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YiqCY-0002iB-Kw; Thu, 16 Apr 2015 16:15:54 -0400 X-Spook: asset anarchy CDC Iran Downing Street Consul FIPS140 X-Ran: yWd\Kjwsr%)K=vGGKVGsT]p#"2aVI;<1_vyzJ|*!'7nf;)c?"L#K!hH7z7:#!-D*bB|37( X-Hue: white X-Attribution: GM In-Reply-To: <552D950F.5090602@yandex.ru> (Dmitry Gutov's message of "Wed, 15 Apr 2015 01:30:39 +0300") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101598 Archived-At: I've long since done what seems to me to be the sensible thing: use a mode-hook to set indent-tabs-mode to whatever the (pre-existing) file I'm editing seems to use. I won't claim it's always right (for those files where the indentation is mixed), but it's worked pretty well for me. The fact that indent-tabs-mode has been added to dir-locals now breaks this, since dir-locals take precedence over mode hooks (bug#1986). So for me, this change increases the likelihood of me committing stuff that does not match the existing indentation style. Ie, adding it to dir-locals without untabifying every file (something which has already been rejected) has made things worse IMO.