From: Dmitry Gutov Date: Mon, 25 Sep 2017 22:44:54 +0000 (+0300) Subject: Reset default-directory inside *xref-grep* buffer X-Git-Tag: emacs-26.0.90~104^2~19 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5a41dd0a1f317b36f86fb4e52db945385250c56e;p=emacs.git Reset default-directory inside *xref-grep* buffer * lisp/progmodes/xref.el (xref-collect-matches): Reset default-directory, too. (Bug#28575) --- 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))