branch: elpa/inf-clojure
commit a37f998c48561ad055b0db7614f987d66aca833f
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Fix :safe predicate for inf-clojure-source-modes
The type is (repeat symbol) but the predicate was #'symbolp, which
returns nil for lists. This prevented the variable from being
recognized as safe in .dir-locals.el.
---
inf-clojure.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inf-clojure.el b/inf-clojure.el
index d6245c44ba..246109eb3c 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -317,7 +317,7 @@ mode. Default is whitespace followed by 0 or 1
single-letter colon-keyword
If a buffer has one of these major modes, it's considered a Clojure
source file by all `inf-clojure' commands."
:type '(repeat symbol)
- :safe #'symbolp)
+ :safe (lambda (val) (and (listp val) (cl-every #'symbolp val))))
(defun inf-clojure--modeline-info ()
"Return modeline info for `inf-clojure-minor-mode'.