summaryrefslogtreecommitdiff
path: root/with-editor.el
diff options
context:
space:
mode:
Diffstat (limited to 'with-editor.el')
-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))