Fix non-string args to file-exists-p! macro

This commit is contained in:
Henrik Lissner 2019-10-12 00:21:23 -04:00
parent 1d072a6c9e
commit 30c091d3f5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -33,7 +33,8 @@ This is used by `file-exists-p!' and `project-file-exists-p!'."
(let ((filevar (make-symbol "file")))
`(let* ((file-name-handler-alist nil)
(,filevar ,spec))
(and ,(if directory
(and (stringp ,filevar)
,(if directory
`(let ((default-directory ,directory))
(,exists-fn ,filevar))
(list exists-fn filevar))