emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 5a41dd0: Reset default-directory inside *xref-gre


From: Dmitry Gutov
Subject: [Emacs-diffs] emacs-26 5a41dd0: Reset default-directory inside *xref-grep* buffer
Date: Mon, 25 Sep 2017 18:47:45 -0400 (EDT)

branch: emacs-26
commit 5a41dd0a1f317b36f86fb4e52db945385250c56e
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Reset default-directory inside *xref-grep* buffer
    
    * lisp/progmodes/xref.el (xref-collect-matches):
    Reset default-directory, too. (Bug#28575)
---
 lisp/progmodes/xref.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 623c9c4..80cdcb3 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]