From e300dab6c4be06ae42bc2f1919ed37e8624c3605 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Thu, 6 Jul 2017 12:49:40 +0200 Subject: with-editor-locate-emacsclient: cosmetics --- with-editor.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'with-editor.el') 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 "\\."))) -- cgit v1.2.3