From 902386b60f9ef948aea29376d974de164d550b46 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 29 Aug 2018 12:44:09 +0200 Subject: [PATCH] Fix file-missing error during patch-macos Forgot to add Emacs.app to the end of the directories to be searched! Whoops! --- core/core-cli.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core/core-cli.el b/core/core-cli.el index e2bcc0377..8a9fd717b 100644 --- a/core/core-cli.el +++ b/core/core-cli.el @@ -308,12 +308,13 @@ problems with doom." (defun doom--find-emacsapp-path () (or (getenv "EMACS_APP_PATH") - (cl-find-if #'file-directory-p - (list "/usr/local/opt/emacs" - "/usr/local/opt/emacs-plus" - "/Applications" - "~/Applications") - :key (lambda (x) (concat x "/Emacs.app"))) + (cl-loop for dir in (list "/usr/local/opt/emacs" + "/usr/local/opt/emacs-plus" + "/Applications" + "~/Applications") + for appdir = (concat dir "/Emacs.app") + if (file-directory-p appdir) + return appdir) (user-error "Couldn't find Emacs.app"))) (defun doom-quickstart ()