From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Cochran Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation Date: Mon, 08 Jan 2018 19:42:19 -0800 Message-ID: <87373fpujo.fsf@cochranmail.com> References: <87wp0yhsgu.fsf@cochranmail.com> <87vaggrfqo.fsf@cochranmail.com> <87r2r2txqp.fsf@cochranmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1515469279 4849 195.159.176.226 (9 Jan 2018 03:41:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 Jan 2018 03:41:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 09 04:41:15 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYkmn-0000r9-4Q for ged-emacs-devel@m.gmane.org; Tue, 09 Jan 2018 04:41:13 +0100 Original-Received: from localhost ([::1]:50989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYkom-0005ve-Nj for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2018 22:43:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYkof-0005vF-6w for emacs-devel@gnu.org; Mon, 08 Jan 2018 22:43:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYkob-0002LX-0O for emacs-devel@gnu.org; Mon, 08 Jan 2018 22:43:09 -0500 Original-Received: from vps28183.inmotionhosting.com ([23.235.221.66]:53387) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eYkoa-0001wV-Nw for emacs-devel@gnu.org; Mon, 08 Jan 2018 22:43:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cochranmail.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zzMl+l2qNLLTtsw8iDsRIGwwQQIZRCYpst7yG2evHnM=; b=5mbW2o0hkPMYYGaIALkM4kRjC0 O5jw2P71nBdI4hS1EUjQDv2H0zilY0O9KnsoNq9ltDVYyjJSigTEQIljE6SfSLyNxFbUk8FeyEyU4 6eiC9BePtMTTpdZ2TBausfRSb8WROln8fLbGNJfQQFDjTZz6qKzAgHV9iaz/K9SpHOgQYA3thYE2T VlMAGKRIXsMDtEVjUnOd8WBRQjpuP2H133eEUuYl4PWXjF2uA7eSps6S74m07mSq3d2eNXHv6g8Um FrfRP32wR3LqAUskttjM6KkI/N6GY3oV438EvAh+v7McHmIIPHkjo+3elX2wT9d/OdCXVh1v4C/OP RgxxqRmw==; Original-Received: from 131-191-86-130.as.clicknet.org ([131.191.86.130]:52120 helo=SoraLaptop) by vps28183.inmotionhosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1eYknu-0001eE-Qd; Mon, 08 Jan 2018 19:42:22 -0800 In-Reply-To: (Noam Postavsky's message of "Mon, 8 Jan 2018 07:25:37 -0500") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps28183.inmotionhosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - cochranmail.com X-Get-Message-Sender-Via: vps28183.inmotionhosting.com: authenticated_id: robert@cochranmail.com X-Authenticated-Sender: vps28183.inmotionhosting.com: robert@cochranmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 23.235.221.66 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221742 Archived-At: Noam Postavsky writes: > When defining a user option using `defcustom', you can set its > `safe-local-variable' property by adding the arguments `:safe FUNCTION' > to `defcustom' (*note Variable Definitions::). Uhm, when I did that (removing the put, and adding ":safe #'booleanp" to the defcustom), Emacs prompts that the variable list in the file may not be safe, despite the fact that describe variable clearly states "This variable is safe as a file local variable if its value satisfies the predicate =E2=80=98booleanp=E2=80=99". This is the whole contents of the file: #+BEGIN_SRC emacs-lisp ;;; -*- byte-compile-error-on-warn: t -*- (defun test/foobar () ;; string-to-unibyte being something I know for fact is marked ;; obsolete, causing a warn (string-to-unibyte "foo")) #+END_SRC Have I done something wrong? Thanks, --=20 ~Robert Cochran GPG Fingerprint - BD0C 5F8B 381C 64F0 F3CE E7B9 EC9A 872C 41B2 77C2