diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2017-09-26 01:44:54 +0300 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2017-09-26 01:47:23 +0300 |
commit | 5a41dd0a1f317b36f86fb4e52db945385250c56e (patch) | |
tree | 93ea17f26b8e444cf33ec08b1cc82c6dd7c606fa /lisp/progmodes/xref.el | |
parent | 49cd561dc62ea6b3fbedab7aef0f020733f4cf09 (diff) | |
download | emacs-5a41dd0a1f317b36f86fb4e52db945385250c56e.tar.gz |
Reset default-directory inside *xref-grep* buffer
* lisp/progmodes/xref.el (xref-collect-matches):
Reset default-directory, too. (Bug#28575)
Diffstat (limited to 'lisp/progmodes/xref.el')
-rw-r--r-- | lisp/progmodes/xref.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 623c9c4e07f..80cdcb3f18b 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -928,12 +928,14 @@ IGNORES is a list of glob patterns." files (expand-file-name dir) ignores)) + (def default-directory) (buf (get-buffer-create " *xref-grep*")) (`(,grep-re ,file-group ,line-group . ,_) (car grep-regexp-alist)) (status nil) (hits nil)) (with-current-buffer buf (erase-buffer) + (setq default-directory def) (setq status (call-process-shell-command command nil t)) (goto-char (point-min)) |