projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54a7268
)
; Fix search in remote project with relative file names
author
Dmitry Gutov
<dmitry@gutov.dev>
Thu, 16 May 2024 22:05:17 +0000
(
01:05
+0300)
committer
Dmitry Gutov
<dmitry@gutov.dev>
Thu, 16 May 2024 22:06:11 +0000
(
01:06
+0300)
lisp/progmodes/xref.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/xref.el
b/lisp/progmodes/xref.el
index 9013729c505097f3889fa6d0f401606e2ffc1315..ecaeac18c3ae39e5dfbf21385153e36a720c3c52 100644
(file)
--- a/
lisp/progmodes/xref.el
+++ b/
lisp/progmodes/xref.el
@@
-2101,7
+2101,10
@@
Such as the current syntax table and the applied syntax properties."
(defun xref--convert-hits (hits regexp)
(let (xref--last-file-buffer
(tmp-buffer (generate-new-buffer " *xref-temp*"))
- (xref--hits-remote-id (file-remote-p default-directory))
+ (xref--hits-remote-id (if (file-name-absolute-p (cadar hits))
+ ;; TODO: Add some test for this.
+ (file-remote-p default-directory)
+ default-directory))
(syntax-needed (xref--regexp-syntax-dependent-p regexp)))
(unwind-protect
(mapcan (lambda (hit)