From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: indent-tabs-mode in dir-locals Date: Tue, 06 Jan 2009 23:13:49 -0500 Message-ID: References: <1ik59b527r.fsf@fencepost.gnu.org> <87tz8cht3i.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1231301729 27269 80.91.229.12 (7 Jan 2009 04:15:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Jan 2009 04:15:29 +0000 (UTC) Cc: Glenn Morris , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 07 05:16:40 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LKPqR-00020v-4x for ged-emacs-devel@m.gmane.org; Wed, 07 Jan 2009 05:16:39 +0100 Original-Received: from localhost ([127.0.0.1]:48371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKPpB-0004Pn-DX for ged-emacs-devel@m.gmane.org; Tue, 06 Jan 2009 23:15:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LKPnl-0003sl-LW for emacs-devel@gnu.org; Tue, 06 Jan 2009 23:13:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LKPnj-0003rw-Tq for emacs-devel@gnu.org; Tue, 06 Jan 2009 23:13:53 -0500 Original-Received: from [199.232.76.173] (port=53609 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKPnj-0003rp-No for emacs-devel@gnu.org; Tue, 06 Jan 2009 23:13:51 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:8088 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LKPni-00025K-PG; Tue, 06 Jan 2009 23:13:50 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvQEABO7Y0nO+JnM/2dsb2JhbACBa81shXWBaQ X-IronPort-AV: E=Sophos;i="4.37,223,1231131600"; d="scan'208";a="31908117" Original-Received: from 206-248-153-204.dsl.teksavvy.com (HELO ceviche.home) ([206.248.153.204]) by ironport2-out.teksavvy.com with ESMTP; 06 Jan 2009 23:13:50 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id DFAFB7020E; Tue, 6 Jan 2009 23:13:49 -0500 (EST) In-Reply-To: <87tz8cht3i.fsf@jurta.org> (Juri Linkov's message of "Wed, 07 Jan 2009 02:12:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:107690 Archived-At: > (defun indent-tabs-mode-maybe () > (if (and (null indent-tabs-mode) > ;; Trust the major mode. > (not (local-variable-p 'indent-tabs-mode)) > (save-excursion > (goto-char (point-min)) > ;; If there are at least 10 lines with a leading TAB, use TABs. > (re-search-forward "^ " (+ (point) 100000) t 10))) > (set (make-local-variable 'indent-tabs-mode) t))) I don't think such complexity is warranted for such a minor problem. Stefan