mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-11 22:11:21 -08:00
Merge branch 'emacs-27' of git.savannah.gnu.org:/srv/git/emacs into emacs-27
This commit is contained in:
commit
f0da3aa83e
2 changed files with 6 additions and 3 deletions
|
|
@ -485,7 +485,7 @@ pattern to search for."
|
|||
(buffer-substring (point-min) (line-end-position))))
|
||||
(while (re-search-forward grep-re nil t)
|
||||
(push (list (string-to-number (match-string line-group))
|
||||
(concat remote-id (match-string file-group))
|
||||
(match-string file-group)
|
||||
(buffer-substring-no-properties (point) (line-end-position)))
|
||||
hits)))
|
||||
(setq xrefs (xref--convert-hits (nreverse hits) regexp))
|
||||
|
|
|
|||
|
|
@ -1291,8 +1291,11 @@ Such as the current syntax table and the applied syntax properties."
|
|||
|
||||
(defun xref--collect-matches (hit regexp tmp-buffer)
|
||||
(pcase-let* ((`(,line ,file ,text) hit)
|
||||
(file (and file (concat (file-remote-p default-directory) file)))
|
||||
(buf (xref--find-buffer-visiting file))
|
||||
(remote-id (file-remote-p default-directory))
|
||||
(file (and file (concat remote-id file)))
|
||||
(buf (unless remote-id
|
||||
;; find-buffer-visiting is slow on remote.
|
||||
(xref--find-buffer-visiting file)))
|
||||
(syntax-needed (xref--regexp-syntax-dependent-p regexp)))
|
||||
(if buf
|
||||
(with-current-buffer buf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue