GNU bug report logs - #23827
25.1.50; tab-width file-local variable has no effect in etc/HELLO

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Wed, 22 Jun 2016 17:07:01 UTC

Severity: normal

Found in version 25.1.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #31 received at 23827 <at> debbugs.gnu.org (full text, mbox):

From: Alan Mackenzie <acm <at> muc.de>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 23827 <at> debbugs.gnu.org
Subject: Re: bug#23827: 25.1.50;
 tab-width file-local variable has no effect in etc/HELLO
Date: 24 Jun 2016 17:17:22 -0000
Hello, Leo.

In article <mailman.2101.1466786228.1216.bug-gnu-emacs <at> gnu.org> 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).





This bug report was last modified 8 years and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.