summaryrefslogtreecommitdiff
path: root/with-editor.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2017-07-06 12:49:40 +0200
committerJonas Bernoulli <jonas@bernoul.li>2017-07-06 12:49:40 +0200
commite300dab6c4be06ae42bc2f1919ed37e8624c3605 (patch)
tree5d34dfd89d897b1eb1d04a7f163ab26d17ea8c92 /with-editor.el
parent9fc047751b537178b5123fead9426d72b794b4d3 (diff)
with-editor-locate-emacsclient: cosmetics
Diffstat (limited to 'with-editor.el')
-rw-r--r--with-editor.el7
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 "\\.")))