[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"))
#+END_SRC
Have I done something wrong?
Thanks,
--
~Robert Cochran
GPG Fingerprint - BD0C 5F8B 381C 64F0 F3CE E7B9 EC9A 872C 41B2 77C2
- [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Robert Cochran, 2018/01/04
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Noam Postavsky, 2018/01/04
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Stefan Monnier, 2018/01/04
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Robert Cochran, 2018/01/05
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Noam Postavsky, 2018/01/05
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Robert Cochran, 2018/01/06
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Noam Postavsky, 2018/01/08
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Eli Zaretskii, 2018/01/08
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation,
Robert Cochran <=
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Stefan Monnier, 2018/01/09
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Robert Cochran, 2018/01/10
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Eli Zaretskii, 2018/01/10
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Noam Postavsky, 2018/01/10
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Eli Zaretskii, 2018/01/10
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Noam Postavsky, 2018/01/10
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Eli Zaretskii, 2018/01/10
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Noam Postavsky, 2018/01/10
- Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation, Eli Zaretskii, 2018/01/10