GNU bug report logs -
#23827
25.1.50; tab-width file-local variable has no effect in etc/HELLO
Previous Next
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
View this message in rfc822 format
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).
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.