all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>,
	Zhang Haijun <ccsmile2008@outlook.com>
Subject: Re: Is it possible to ignore all variable except 'tab-width' in dir-locals-file or local-variables?
Date: Fri, 25 Oct 2019 15:19:40 +0200	[thread overview]
Message-ID: <m2tv7xq7wz.fsf@gmail.com> (raw)
In-Reply-To: <874l002ca7.fsf@web.de> (Michael Heerdegen's message of "Wed, 23 Oct 2019 08:42:24 +0200")

>>>>> On Wed, 23 Oct 2019 08:42:24 +0200, Michael Heerdegen <michael_heerdegen@web.de> said:

    Michael> Zhang Haijun <ccsmile2008@outlook.com> writes:
    >> Is there a custom variable like ‘user-safe-local-variables’ which can
    >> be set to ‘(tab-width) to control this?

    Michael> Looks there is only an `ignored-local-variables' user option.  The
    Michael> filtering is done in `hack-local-variables-filter' if you want to look
    Michael> at the code.  So it seems what you want is not possible by only
    Michael> configuring an option, you would have to advice
    Michael> `hack-local-variables-filter'.

Thereʼs also 'before-hack-local-variables-hook', which you could use
to munge 'file-local-variables-alist' before it gets applied.

Robert



  reply	other threads:[~2019-10-25 13:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23  0:54 Is it possible to ignore all variable except 'tab-width' in dir-locals-file or local-variables? Zhang Haijun
2019-10-23  6:42 ` Michael Heerdegen
2019-10-25 13:19   ` Robert Pluim [this message]
2019-10-26  0:56     ` Zhang Haijun

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=m2tv7xq7wz.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=ccsmile2008@outlook.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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.