[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file com

From: Robert Cochran
Subject: Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation
Date: Mon, 08 Jan 2018 19:42:19 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Noam Postavsky <address@hidden> 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 ‘booleanp’".

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"))

Have I done something wrong?

~Robert Cochran

GPG Fingerprint - BD0C 5F8B 381C 64F0 F3CE  E7B9 EC9A 872C 41B2 77C2

reply via email to

[Prev in Thread] Current Thread [Next in Thread]