From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30397: Random numbers in grep mode-line Date: Fri, 09 Feb 2018 11:50:34 +0200 Message-ID: <83fu6a4hlh.fsf@gnu.org> References: <87tvurtbek.fsf@mail.linkov.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1518170468 24903 195.159.176.226 (9 Feb 2018 10:01:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Feb 2018 10:01:08 +0000 (UTC) Cc: 30397@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 09 11:01:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ek5UB-0005Kc-9K for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Feb 2018 11:00:51 +0100 Original-Received: from localhost ([::1]:56319 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ek5WB-0001c0-84 for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Feb 2018 05:02:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ek5Lf-0008Rd-Ak for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 04:52:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ek5Le-0003cH-8n for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 04:52:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54996) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ek5Le-0003c7-4Y for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 04:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ek5Ld-00084T-Ul for bug-gnu-emacs@gnu.org; Fri, 09 Feb 2018 04:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Feb 2018 09:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30397 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30397-submit@debbugs.gnu.org id=B30397.151816986830929 (code B ref 30397); Fri, 09 Feb 2018 09:52:01 +0000 Original-Received: (at 30397) by debbugs.gnu.org; 9 Feb 2018 09:51:08 +0000 Original-Received: from localhost ([127.0.0.1]:34653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ek5Kk-00082l-Mp for submit@debbugs.gnu.org; Fri, 09 Feb 2018 04:51:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ek5Ki-00082H-M9 for 30397@debbugs.gnu.org; Fri, 09 Feb 2018 04:51:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ek5Ka-0002by-30 for 30397@debbugs.gnu.org; Fri, 09 Feb 2018 04:50:59 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ek5KZ-0002bq-Uj; Fri, 09 Feb 2018 04:50:56 -0500 Original-Received: from [176.228.60.248] (port=1590 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ek5KZ-0007uk-Ag; Fri, 09 Feb 2018 04:50:55 -0500 In-reply-to: <87tvurtbek.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 08 Feb 2018 23:32:51 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143048 Archived-At: > From: Juri Linkov > Date: Thu, 08 Feb 2018 23:32:51 +0200 > > What do these seemingly random numbers in the mode-line of the *grep* > buffer mean? I don't get any logic behind these colored numbers. > They are neither the number of matches nor the number of matched lines. > And why non-zero numbers are always highlighted in red as errors > when there are no errors in the grep output? What was the goal > of this feature and where it is documented? >From NEWS: ** Compilation mode [...] *** The number of errors, warnings, and informational messages is now displayed in the mode line. These are updated as compilation proceeds. Also mentioned in the user manual, in "Compilation": While compilation proceeds, the mode line is updated to show the number of errors, warnings, and informational messages that have been seen so far. I've now added a similar text in "Grep". Maybe we should modify the display for Grep, e.g. show only one number, and use a distinct face that doesn't display as red by default.