]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't check the exit status, it can be misleading
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 10 Jul 2015 01:38:16 +0000 (04:38 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 10 Jul 2015 01:40:09 +0000 (04:40 +0300)
* lisp/progmodes/xref.el (xref-collect-matches): Don't check the
exit status, it can be misleading.

lisp/progmodes/xref.el

index 042429e3efea5a9b43183f0ae58e785bb915b8b8..e76f0ed0b8d9ddc56787004d8fd2b91608d44a84 100644 (file)
@@ -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))