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

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?

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

Michael.



  reply	other threads:[~2019-10-23  6:42 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 [this message]
2019-10-25 13:19   ` Robert Pluim
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=874l002ca7.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=ccsmile2008@outlook.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.