From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help 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 Message-ID: References: <874l002ca7.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="164424"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "help-gnu-emacs@gnu.org" , Zhang Haijun To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 25 15:41:52 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNzqi-000gfy-PD for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Oct 2019 15:41:52 +0200 Original-Received: from localhost ([::1]:60084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNzqg-0007up-RU for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Oct 2019 09:41:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33015) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNzVL-00014w-Eb for help-gnu-emacs@gnu.org; Fri, 25 Oct 2019 09:19:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNzVI-0003bw-7m for help-gnu-emacs@gnu.org; Fri, 25 Oct 2019 09:19:47 -0400 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:47087) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNzVI-0003bj-20 for help-gnu-emacs@gnu.org; Fri, 25 Oct 2019 09:19:44 -0400 Original-Received: by mail-wr1-x434.google.com with SMTP id n15so2281546wrw.13 for ; Fri, 25 Oct 2019 06:19:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=kQZC6PS9u+mC9aigyj8sNL+904A4awL59iiSaE8U/m8=; b=gUxnYwemQoAfAKjdg9EQVw+DUHCnF0fIpJ8bnbY/8tpkHcqwqY5x8vBlT1INMjzLzX hWr7IXKOb+zeeVZXYVu0TV+a1Sv5vHg4LueBKot4bEo10iNDLIc0jK87JCIiyVw+S8cS Cs78/0PHBGzvxmBZSXQUMMcniKgzhH6POk3OFbOh6pQMD7wqno66w8hJdr9bRSm//yX4 GkGG1LEjLKEWSAT9vRVjqXLcNseGH+4uWgkCGvPki+tarmmPJ0ohzzywvyfIYDm1J2gn QJWZp3+CYK7abz8Aih4D4JB8iKv74Qntn7FKy9TKTFT4eJWgDEAE955AzJeoJV4Kjuze a/rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=kQZC6PS9u+mC9aigyj8sNL+904A4awL59iiSaE8U/m8=; b=ELu1gKq/7jsoF/9nBu3b1cQ5O3z3c8+Fd4gy35tpk5yaUqVmJY1qNv09ySUoptJM0B qnXuNDoAZ8yi3Uu2hMcWWv2swaIqGMZnnJv9vX6hBAMiNUGox2Ep7aXtngQcMDSzh0Tg xfRmAc1MVfYwoxi+iIqoObf6dtc+8XOOUDayEWiTw8ZAOw9dfOh2P53QBWI690R6CMhq SQyTIpxAWe5QBxocttlPcH/y93i/Pl45gvOJ3I/f9fvzUBPwAL2D9GeehrTgXaT050+B 5j0CndulFBMrAZOcEerblNNkxFsCDpMoXK7JlLIDi8TTe0+lBMCleSj/fERZNlohGzD+ IVnw== X-Gm-Message-State: APjAAAVQgHjpYHugzVwTcfj579WCFjm9I9ADOhSj/UZOvdM/+iUJu0tl FM+GzSfzdDR99uCdJGXVi0Y3uS8U X-Google-Smtp-Source: APXvYqyC5foh/DpJVLIBNDpYD8bWTEhotv+7eQp5TIdqi4cgr5qKFApKwq9Ye+DDJnzHmj6pKQ64SQ== X-Received: by 2002:adf:ea50:: with SMTP id j16mr2918814wrn.295.1572009582125; Fri, 25 Oct 2019 06:19:42 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id f20sm2048709wmb.6.2019.10.25.06.19.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 06:19:41 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <874l002ca7.fsf@web.de> (Michael Heerdegen's message of "Wed, 23 Oct 2019 08:42:24 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::434 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121725 Archived-At: >>>>> On Wed, 23 Oct 2019 08:42:24 +0200, Michael Heerdegen said: Michael> Zhang Haijun writes: >> Is there a custom variable like =E2=80=98user-safe-local-variables= =E2=80=99 which can >> be set to =E2=80=98(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=CA=BCs also 'before-hack-local-variables-hook', which you could use to munge 'file-local-variables-alist' before it gets applied. Robert