Skip to content

Commit a37f998

Browse files
committed
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.
1 parent 3aa7f02 commit a37f998

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inf-clojure.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ mode. Default is whitespace followed by 0 or 1 single-letter colon-keyword
317317
If a buffer has one of these major modes, it's considered a Clojure
318318
source file by all `inf-clojure' commands."
319319
:type '(repeat symbol)
320-
:safe #'symbolp)
320+
:safe (lambda (val) (and (listp val) (cl-every #'symbolp val))))
321321

322322
(defun inf-clojure--modeline-info ()
323323
"Return modeline info for `inf-clojure-minor-mode'.

0 commit comments

Comments
 (0)