branch: elpa/with-editor
commit 495a545178bc43adf96dc0dd7dd0546e56127d7c
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
Use locate-file instead of locate-file-internal
The extra steps in `locate-file' don't affect the result and
they are very cheap so doing them needlessly doesn't matter.
---
lisp/with-editor.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/with-editor.el b/lisp/with-editor.el
index d710e83ebe..0edceff610 100644
--- a/lisp/with-editor.el
+++ b/lisp/with-editor.el
@@ -128,7 +128,7 @@ please see
https://github.com/magit/magit/wiki/Emacsclient."))))
(defun with-editor-locate-emacsclient-1 (path depth)
(let* ((version-lst (cl-subseq (split-string emacs-version "\\.") 0 depth))
(version-reg (concat "^" (mapconcat #'identity version-lst "\\."))))
- (or (locate-file-internal
+ (or (locate-file
(if (equal (downcase invocation-name) "remacs")
"remacsclient"
"emacsclient")