From: Alan Mackenzie <acm@muc.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 23827@debbugs.gnu.org
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 [thread overview]
Message-ID: <20160630092239.GA3082@acm.fritz.box> (raw)
In-Reply-To: <jwvd1n13s7z.fsf-monnier+emacsbugs@gnu.org>
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).
next prev parent reply other threads:[~2016-06-30 9:22 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-22 17:05 bug#23827: 25.1.50; tab-width file-local variable has no effect in etc/HELLO Eli Zaretskii
[not found] ` <mailman.2018.1466615229.1216.bug-gnu-emacs@gnu.org>
2016-06-24 11:07 ` Alan Mackenzie
2016-06-24 13:28 ` Eli Zaretskii
2016-06-24 14:12 ` Stefan Monnier
2016-06-24 14:17 ` Eli Zaretskii
2016-06-24 14:27 ` Stefan Monnier
2016-06-24 16:09 ` Alan Mackenzie
2016-06-25 0:21 ` Stefan Monnier
2016-06-27 12:52 ` Alan Mackenzie
2016-06-27 22:03 ` Stefan Monnier
2016-06-28 10:10 ` Alan Mackenzie
2016-06-28 21:43 ` Stefan Monnier
2016-06-30 9:22 ` Alan Mackenzie [this message]
2016-06-30 22:37 ` Stefan Monnier
2016-06-30 22:39 ` Stefan Monnier
2016-10-10 10:37 ` Eli Zaretskii
2016-10-15 14:07 ` Eli Zaretskii
2016-06-24 16:35 ` Leo Liu
[not found] ` <mailman.2101.1466786228.1216.bug-gnu-emacs@gnu.org>
2016-06-24 17:17 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160630092239.GA3082@acm.fritz.box \
--to=acm@muc.de \
--cc=23827@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.