branch: elpa/with-editor
commit ad5bb005ed3afec2d8b9b2bc1df19fb9b5e2dd84
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>

    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