Fix associate!'s :files refusing a list of strings

Due to changes under the hood, the :files FORM property requires FORM to
either be a nested form of and/or sexps, or a single string. This is
inconsistent with the plurality of ":files", so it has been fixed to
accept a list of strings (with an implicit (and ...)).
This commit is contained in:
Henrik Lissner 2018-05-31 16:59:53 +02:00
parent 97cbb13c22
commit a4d03654bd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -358,7 +358,10 @@ The available conditions are:
(not (bound-and-true-p ,mode))
(and buffer-file-name (not (file-remote-p buffer-file-name)))
,(if match `(if buffer-file-name (string-match-p ,match buffer-file-name)) t)
,(if files (doom--resolve-path-forms files '(doom-project-root)) t)
,(if files (doom--resolve-path-forms
(if (stringp (car files)) (cons 'and files) files)
'(doom-project-root))
t)
,(or pred-form t))
(,mode 1)))
,@(if (and modes (listp modes))