File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1218,6 +1218,9 @@ IGNORES is a list of glob patterns for files to ignore."
1218
1218
#'xref-matches-in-directory
1219
1219
" 27.1" )
1220
1220
1221
+ (declare-function tramp-tramp-file-p " tramp" )
1222
+ (declare-function tramp-file-local-name " tramp" )
1223
+
1221
1224
;;;### autoload
1222
1225
(defun xref-matches-in-files (regexp files )
1223
1226
" Find all matches for REGEXP in FILES.
@@ -1240,7 +1243,12 @@ FILES must be a list of absolute file names."
1240
1243
" " )
1241
1244
(shell-quote-argument (xref--regexp-to-extended regexp)))))
1242
1245
(when remote-id
1243
- (setq files (mapcar #'file-local-name files )))
1246
+ (require 'tramp )
1247
+ (setq files (mapcar
1248
+ (if (tramp-tramp-file-p dir)
1249
+ #'tramp-file-local-name
1250
+ #'file-local-name )
1251
+ files )))
1244
1252
(with-current-buffer output
1245
1253
(erase-buffer )
1246
1254
(with-temp-buffer
You can’t perform that action at this time.
0 commit comments