emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/with-editor e300dab 041/140: with-editor-locate-emacsclien


From: Jonas Bernoulli
Subject: [nongnu] elpa/with-editor e300dab 041/140: with-editor-locate-emacsclient: cosmetics
Date: Fri, 6 Aug 2021 12:51:16 -0400 (EDT)

branch: elpa/with-editor
commit e300dab6c4be06ae42bc2f1919ed37e8624c3605
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    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 "\\.")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]