From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Titus von der Malsburg Newsgroups: gmane.emacs.devel Subject: Policy for declaring safe local variable values Date: Fri, 08 Oct 2021 09:11:03 +0000 Message-ID: <87bl3z98zk.fsf@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4935"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 08 11:12:16 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYlvL-00012V-Vx for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Oct 2021 11:12:15 +0200 Original-Received: from localhost ([::1]:53796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYlvK-0000wG-88 for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Oct 2021 05:12:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYluh-00007p-SG for emacs-devel@gnu.org; Fri, 08 Oct 2021 05:11:36 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:46165) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYluf-0001c5-Uq for emacs-devel@gnu.org; Fri, 08 Oct 2021 05:11:35 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 9A16B240026 for ; Fri, 8 Oct 2021 11:11:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1633684288; bh=mdBXeqhgUgae6T6oPHUxfxfcnxhIMWsdsvjFQDUgSNk=; h=From:To:Subject:Date:From; b=DUzrotAtB+qmDLI01Q764SBjTlpLl+1TSazER7L0FirMl9YhfCfD+u9bqb+JYiEPR 0nR8OzuG3xMs4Ingso0Nf2svSxS6BYg90QvZ1ejO1bxQ/5H8NqAyUxGS5KF8F39La+ kD+CzXYP976Jid8Or1n9nwsRWflJBVUjCVo9061wDWVwYe1XA9HaI+cmL71iIeQIka r3u02bwp6zxbJgnKSHO0dnRzIIel7KWF9yf0GSuPoDE1aCWreD6SUqAeLCeuROs4xI YJKMOy5ZJ0u8Le2vEQBtu0XJD5B8T8dlqfRAoj0oemKKvMP4edpbPx74uzkzPPdzZO 6drYdOlZIOzBg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HQj9X0Xfyz9rxG for ; Fri, 8 Oct 2021 11:11:27 +0200 (CEST) Received-SPF: pass client-ip=185.67.36.65; envelope-from=malsburg@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:276542 Archived-At: I have a configuration variable (in package bibtex-completion) that can use= fully be set to a local value via a =E2=80=98Local Variable=E2=80=98 commen= t in the file. E.g: # Local Variables: # bibtex-completion-bibliography: "/path/to/bibliography.bib" # End: However, it=E2=80=99s annoying that users have to confirm that the local va= lue for this variable is safe every time they open a file with a different = value for that variable. Question: Can I declare the variable safe for loc= al values in my package, e.g. (put 'bibtex-completion-bibliography 'safe-local-variable (lambda (_) t)) or would that violate Emacs conventions? Titus