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: 24 Jun 2016 17:17:22 -0000 Organization: muc.de e.V. Message-ID: <20160624171722.56866.qmail@mail.muc.de> References: <83k2hh40ix.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466788705 9814 80.91.229.3 (24 Jun 2016 17:18:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2016 17:18:25 +0000 (UTC) Cc: 23827@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 24 19:18:16 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 1bGUkC-0006zV-6S for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jun 2016 19:18:16 +0200 Original-Received: from localhost ([::1]:45107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGUkB-0002HO-8W for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jun 2016 13:18:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGUk3-0002HG-6O for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 13:18:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGUjy-0003zz-1P for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 13:18:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGUjx-0003zu-U0 for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 13:18:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bGUjx-00025h-Iy for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 13:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Jun 2016 17:18:01 +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.14667886457985 (code B ref 23827); Fri, 24 Jun 2016 17:18:01 +0000 Original-Received: (at 23827) by debbugs.gnu.org; 24 Jun 2016 17:17:25 +0000 Original-Received: from localhost ([127.0.0.1]:54607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGUjM-00024j-Pe for submit@debbugs.gnu.org; Fri, 24 Jun 2016 13:17:24 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:14548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGUjL-00024b-BZ for 23827@debbugs.gnu.org; Fri, 24 Jun 2016 13:17:23 -0400 Original-Received: (qmail 56867 invoked by uid 3782); 24 Jun 2016 17:17:22 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.3.1-20141224 ("Tallant") (UNIX) (FreeBSD/10.3-RELEASE-p4 (amd64)) 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:120013 Archived-At: Hello, Leo. In article you wrote: > On 2016-06-24 16:09 +0000, Alan Mackenzie wrote: >> I rather think a buffer made by `with-temp-buffer' will run >> `hack-local-variables', but since there will never be a local variables >> section in the new buffer, what are we worrying about? > Did you forget dir-local variables? I rather think I did. ;-) But remembering them now, and looking them up in the manual, dir-local variables are only applied to file buffers when they are in the pertinent directory. A `with-temp-buffer' buffer shouldn't be in any directory, hence shouldn't get any dir-locals. That's the theory, anyway. And even if a temp-buffer did somehow belong to a directory, what harm will it do if it gets the `fundamental-mode' variables? Probably not much. > Leo -- Alan Mackenzie (Nuremberg, Germany).