From 65be6923e72645fc9c7eb9ed5947a0239224692c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 2 Nov 2020 17:00:13 -0500 Subject: [PATCH] Fix wrong-number-of-args on 'doom install' Only affects Emacs 26.x users, because `file-name-quote`s signature changed in 27.1. --- core/core-lib.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-lib.el b/core/core-lib.el index e0553dc77..30d152f6a 100644 --- a/core/core-lib.el +++ b/core/core-lib.el @@ -689,7 +689,9 @@ REMOTE is non-nil, search on the remote host indicated by (when (stringp res) (file-local-name res))) ;; Use 1 rather than file-executable-p to better match the ;; behavior of call-process. - (let ((default-directory (file-name-quote default-directory 'top))) + (let ((default-directory + (let (file-name-handler-alist) + (file-name-quote default-directory)))) (locate-file command exec-path exec-suffixes 1))))) (provide 'core-lib)