[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor 495a545178: Use locate-file instead of locate-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/with-editor 495a545178: Use locate-file instead of locate-file-internal |
Date: |
Fri, 18 Mar 2022 12:59:01 -0400 (EDT) |
branch: elpa/with-editor
commit 495a545178bc43adf96dc0dd7dd0546e56127d7c
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
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")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/with-editor 495a545178: Use locate-file instead of locate-file-internal,
ELPA Syncer <=