summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Johansson <christian@cvj.se>2018-04-14 16:57:17 +0200
committerChristian Johansson <christian@cvj.se>2018-04-14 16:57:17 +0200
commitad5bb005ed3afec2d8b9b2bc1df19fb9b5e2dd84 (patch)
tree0408f06a51e30c5d13d79b8c0bce9b109acafb6e
parentff3e96929d4532e33422a5980a6e3ca9f2fcf032 (diff)
Improve detection of remacs client in macOSv2.7.3
-rw-r--r--with-editor.el4
1 files changed, 3 insertions, 1 deletions
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))