diff options
author | Jonas Bernoulli <jonas@bernoul.li> | 2017-07-06 12:49:40 +0200 |
---|---|---|
committer | Jonas Bernoulli <jonas@bernoul.li> | 2017-07-06 12:49:40 +0200 |
commit | e300dab6c4be06ae42bc2f1919ed37e8624c3605 (patch) | |
tree | 5d34dfd89d897b1eb1d04a7f163ab26d17ea8c92 /with-editor.el | |
parent | 9fc047751b537178b5123fead9426d72b794b4d3 (diff) |
with-editor-locate-emacsclient: cosmetics
Diffstat (limited to 'with-editor.el')
-rw-r--r-- | with-editor.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/with-editor.el b/with-editor.el index 7cb5e7b..54b43b9 100644 --- a/with-editor.el +++ b/with-editor.el @@ -107,15 +107,14 @@ (defun with-editor-locate-emacsclient () "Search for a suitable Emacsclient executable." - (--if-let (with-editor-locate-emacsclient-1 (with-editor-emacsclient-path) 3) - it - (display-warning 'with-editor (format "\ + (or (with-editor-locate-emacsclient-1 (with-editor-emacsclient-path) 3) + (display-warning 'with-editor (format "\ Cannot determine a suitable Emacsclient Determining an Emacsclient executable suitable for the current Emacs instance failed. For more information please see https://github.com/magit/magit/wiki/Emacsclient.")) - nil)) + nil)) (defun with-editor-locate-emacsclient-1 (path depth) (let* ((version-lst (-take depth (split-string emacs-version "\\."))) |