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

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

[nongnu] elpa/with-editor ad5bb00 078/140: Improve detection of remacs c


From: Jonas Bernoulli
Subject: [nongnu] elpa/with-editor ad5bb00 078/140: Improve detection of remacs client in macOS
Date: Fri, 6 Aug 2021 12:51:23 -0400 (EDT)

branch: elpa/with-editor
commit ad5bb005ed3afec2d8b9b2bc1df19fb9b5e2dd84
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Improve detection of remacs client in macOS
---
 with-editor.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/with-editor.el b/with-editor.el
index 76864a2..b61104a 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -122,7 +122,9 @@ please see 
https://github.com/magit/magit/wiki/Emacsclient.";))))
   (let* ((version-lst (cl-subseq (split-string emacs-version "\\.") 0 depth))
          (version-reg (concat "^" (mapconcat #'identity version-lst "\\."))))
     (or (locate-file-internal
-         (if (equal invocation-name "remacs") "remacsclient" "emacsclient")
+         (if (equal (downcase invocation-name) "remacs")
+             "remacsclient"
+           "emacsclient")
          path
          (cl-mapcan
           (lambda (v) (cl-mapcar (lambda (e) (concat v e)) exec-suffixes))



reply via email to

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