branch: elpa/with-editor
commit e300dab6c4be06ae42bc2f1919ed37e8624c3605
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
with-editor-locate-emacsclient: cosmetics
---
with-editor.el | 7 +++----
1 file 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 "\\.")))