diff options
| author | Dmitry Gutov | 2024-05-07 19:09:28 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2024-05-07 19:18:47 +0300 |
| commit | f60e5f18745fc73fb0c71ecaeba2f3e52f323805 (patch) | |
| tree | 11526978c29d8f0210391882a891a842f856b937 | |
| parent | 45e134fea72848d9aacde73b3e0a8d4138319895 (diff) | |
| download | emacs-f60e5f18745fc73fb0c71ecaeba2f3e52f323805.tar.gz emacs-f60e5f18745fc73fb0c71ecaeba2f3e52f323805.zip | |
; xref-matches-in-files: Fix the previous change (bug#70813)
| -rw-r--r-- | lisp/progmodes/xref.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 29fc6cd560f..9fa8383ef10 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el | |||
| @@ -1922,8 +1922,9 @@ to control which program to use when looking for matches." | |||
| 1922 | (hits nil) | 1922 | (hits nil) |
| 1923 | ;; Support for remote files. The assumption is that, if the | 1923 | ;; Support for remote files. The assumption is that, if the |
| 1924 | ;; first file is remote, they all are, and on the same host. | 1924 | ;; first file is remote, they all are, and on the same host. |
| 1925 | (dir (or (file-name-directory (car files)) | 1925 | (dir (if (file-name-absolute-p (car files)) |
| 1926 | default-directory)) | 1926 | (file-name-directory (car files)) |
| 1927 | default-directory)) | ||
| 1927 | (remote-id (file-remote-p dir)) | 1928 | (remote-id (file-remote-p dir)) |
| 1928 | ;; The 'auto' default would be fine too, but ripgrep can't handle | 1929 | ;; The 'auto' default would be fine too, but ripgrep can't handle |
| 1929 | ;; the options we pass in that case. | 1930 | ;; the options we pass in that case. |