From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#23827: 25.1.50; tab-width file-local variable has no effect in etc/HELLO Date: Thu, 30 Jun 2016 09:22:40 +0000 Message-ID: <20160630092239.GA3082@acm.fritz.box> References: <83vb0y1zsb.fsf@gnu.org> <83r3bm1xjz.fsf@gnu.org> <20160624160927.GB2961@acm.fritz.box> <20160627125247.GC4526@acm.fritz.box> <20160628101054.GB3181@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1467278618 23532 80.91.229.3 (30 Jun 2016 09:23:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2016 09:23:38 +0000 (UTC) Cc: 23827@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 30 11:23:27 2016 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 1bIYBw-00080n-KI for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jun 2016 11:23:24 +0200 Original-Received: from localhost ([::1]:47996 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIYBq-00047j-KV for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jun 2016 05:23:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIYBf-00045t-Uv for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2016 05:23:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIYBa-00060h-Eb for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2016 05:23:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIYBa-00060b-Az for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2016 05:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bIYBa-0007g8-3U for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2016 05:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jun 2016 09:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23827 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23827-submit@debbugs.gnu.org id=B23827.146727855529463 (code B ref 23827); Thu, 30 Jun 2016 09:23:02 +0000 Original-Received: (at 23827) by debbugs.gnu.org; 30 Jun 2016 09:22:35 +0000 Original-Received: from localhost ([127.0.0.1]:60557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIYB9-0007f9-NU for submit@debbugs.gnu.org; Thu, 30 Jun 2016 05:22:35 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:42649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIYB7-0007f0-LI for 23827@debbugs.gnu.org; Thu, 30 Jun 2016 05:22:34 -0400 Original-Received: (qmail 77575 invoked by uid 3782); 30 Jun 2016 09:22:32 -0000 Original-Received: from acm.muc.de (p4FC460AB.dip0.t-ipconnect.de [79.196.96.171]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 30 Jun 2016 11:22:30 +0200 Original-Received: (qmail 3265 invoked by uid 1000); 30 Jun 2016 09:22:40 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:120224 Archived-At: Hello, Stefan. On Tue, Jun 28, 2016 at 05:43:42PM -0400, Stefan Monnier wrote: > > I think the temp-buffer will pick up any .dir-locals from its "current > There's no need to think/guess here, really. Instead someone needs to > look at the code and/or test it. Oh, OK. I put the following into my .dir-locals.el: (fundamental-mode . ((indent-tabs-mode . nil))) , and then ran the following command "in" the current directory containing the .dir-locals.el: M-: (with-temp-buffer (message "indent-tabs-mode: %s. major-mode: %s" indent-tabs-mode major-mode)) Displayed was: "indent-tabs-mode: t. major-mode: fundamental-mode" . So it would appear that the temporary buffer, although ostensibly in fundamental mode, isn't picking up the .dir-local.el variables. In fact, it would appear, from looking at the code, that `fundamental-mode' doesn't get called. It isn't clear to me where `major-mode', which presumably is set to binary zeros when the buffer structure gets allocated, gets set to `fundamental-mode'. Maybe we just don't need to worry about this - it appears to do the Right Thing. > Stefan -- Alan Mackenzie (Nuremberg, Germany).