diff options
| author | Dmitry Gutov | 2015-07-10 04:38:16 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2015-07-10 04:40:09 +0300 |
| commit | 53cf3cfec12250d89790482d031f95a3cd5c484a (patch) | |
| tree | de6da00ae42438a51ff1ab26855d014f7b8a8c7c | |
| parent | f8c720b55b9419c849ea9febe6f888761a61949b (diff) | |
| download | emacs-53cf3cfec12250d89790482d031f95a3cd5c484a.tar.gz emacs-53cf3cfec12250d89790482d031f95a3cd5c484a.zip | |
Don't check the exit status, it can be misleading
* lisp/progmodes/xref.el (xref-collect-matches): Don't check the
exit status, it can be misleading.
| -rw-r--r-- | lisp/progmodes/xref.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 042429e3efe..e76f0ed0b8d 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el | |||
| @@ -772,12 +772,12 @@ tools are used, and when." | |||
| 772 | hits) | 772 | hits) |
| 773 | (with-current-buffer buf | 773 | (with-current-buffer buf |
| 774 | (erase-buffer) | 774 | (erase-buffer) |
| 775 | (when (eq (call-process-shell-command command nil t) 0) | 775 | (call-process-shell-command command nil t) |
| 776 | (goto-char (point-min)) | 776 | (goto-char (point-min)) |
| 777 | (while (re-search-forward grep-re nil t) | 777 | (while (re-search-forward grep-re nil t) |
| 778 | (push (cons (string-to-number (match-string 2)) | 778 | (push (cons (string-to-number (match-string 2)) |
| 779 | (match-string 1)) | 779 | (match-string 1)) |
| 780 | hits)))) | 780 | hits))) |
| 781 | (unwind-protect | 781 | (unwind-protect |
| 782 | (delq nil | 782 | (delq nil |
| 783 | (mapcar (lambda (hit) (xref--collect-match hit regexp)) | 783 | (mapcar (lambda (hit) (xref--collect-match hit regexp)) |