Skip to content

Commit

Permalink
Improve detection of remacs client in macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
cjohansson committed Apr 14, 2018
1 parent ff3e969 commit ad5bb00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion with-editor.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ad5bb00

Please sign in to comment.