[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 53cf3cf 2/2: Don't check the exit status, it can be
From: |
Dmitry Gutov |
Subject: |
[Emacs-diffs] master 53cf3cf 2/2: Don't check the exit status, it can be misleading |
Date: |
Fri, 10 Jul 2015 01:40:21 +0000 |
branch: master
commit 53cf3cfec12250d89790482d031f95a3cd5c484a
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
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.
---
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 042429e..e76f0ed 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -772,12 +772,12 @@ tools are used, and when."
hits)
(with-current-buffer buf
(erase-buffer)
- (when (eq (call-process-shell-command command nil t) 0)
- (goto-char (point-min))
- (while (re-search-forward grep-re nil t)
- (push (cons (string-to-number (match-string 2))
- (match-string 1))
- hits))))
+ (call-process-shell-command command nil t)
+ (goto-char (point-min))
+ (while (re-search-forward grep-re nil t)
+ (push (cons (string-to-number (match-string 2))
+ (match-string 1))
+ hits)))
(unwind-protect
(delq nil
(mapcar (lambda (hit) (xref--collect-match hit regexp))