all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Leo Liu <sdl.web@gmail.com>
Cc: 23827@debbugs.gnu.org
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	[thread overview]
Message-ID: <20160624171722.56866.qmail@mail.muc.de> (raw)
In-Reply-To: <mailman.2101.1466786228.1216.bug-gnu-emacs@gnu.org>

Hello, Leo.

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






      parent reply	other threads:[~2016-06-24 17:17 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
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 [this message]

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=20160624171722.56866.qmail@mail.muc.de \
    --to=acm@muc.de \
    --cc=23827@debbugs.gnu.org \
    --cc=sdl.web@gmail.com \
    /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.