]> git.eshelyaron.com Git - emacs.git/commitdiff
Reset default-directory inside *xref-grep* buffer
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 25 Sep 2017 22:44:54 +0000 (01:44 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 25 Sep 2017 22:47:23 +0000 (01:47 +0300)
* lisp/progmodes/xref.el (xref-collect-matches):
Reset default-directory, too. (Bug#28575)

lisp/progmodes/xref.el

index 623c9c4e07fc92c112166bb38a87d8cded66589d..80cdcb3f18bf61e702b9c75543994246b3d82386 100644 (file)
@@ -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))