From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#30397: Random numbers in grep mode-line Date: Sun, 11 Feb 2018 20:54:52 -0800 (PST) Message-ID: <92b33e1f-f133-4ad1-9bda-4d40353db19a@default> References: <87tvurtbek.fsf@mail.linkov.net> <87zi4gpm2r.fsf@mail.linkov.net> <87h8qnb3yi.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1518411269 5893 195.159.176.226 (12 Feb 2018 04:54:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2018 04:54:29 +0000 (UTC) Cc: 30397@debbugs.gnu.org, Noam Postavsky To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 12 05:54:24 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 1el684-0000Pq-6w for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Feb 2018 05:54:12 +0100 Original-Received: from localhost ([::1]:40536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1el6A5-0003EM-RC for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Feb 2018 23:56:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1el69w-0003De-3K for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 23:56:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1el69r-0004NF-9a for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 23:56:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59140) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1el69r-0004MZ-1p for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 23:56:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1el69q-0005Xa-JX for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 23:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Feb 2018 04:56:02 +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.151841130621230 (code B ref 30397); Mon, 12 Feb 2018 04:56:02 +0000 Original-Received: (at 30397) by debbugs.gnu.org; 12 Feb 2018 04:55:06 +0000 Original-Received: from localhost ([127.0.0.1]:38804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1el68w-0005WM-Bh for submit@debbugs.gnu.org; Sun, 11 Feb 2018 23:55:06 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:55548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1el68v-0005Vq-2c for 30397@debbugs.gnu.org; Sun, 11 Feb 2018 23:55:05 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w1C4qQpJ001060; Mon, 12 Feb 2018 04:54:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=qqev4xLSLH2DtfpvSHHbBnxJvhLHpVpJWjHLMK6qQqI=; b=jDNgCCBQ//zRfD/5zogJwy3VXq60qql9a15EkqqYiODHcz9oGQt7QVtRHJAyMJA0UAwD SzG7ApvhXbSwdJm3ZeJc3yYzvxnAuufFbCZAmLT8SJ3/wZKqAJBjN19IZyNYYkqZNKRC cD/RsvYdqbU6n8cKmAZAhaVCPVBGazpc15MeVtvPB5Jaz3kAr0xaO9Ze2SYtxieoVnDI vdtrIQNAbbKkJb5Z1c3RJtK7U640UIW4gmCmtk6Ly0Akl4G0oZnX8ghbDv0lY8GYFPgP YFMwjHVWh2OOLjTMuIsOyxSdzD7fq35aOeEKDGT+S9uuhCgtqhVa/KhihPKwdO0W+Dxu Rw== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2g33gyg3ue-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Feb 2018 04:54:56 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w1C4ssLR024269 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 12 Feb 2018 04:54:55 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w1C4ssr3022856; Mon, 12 Feb 2018 04:54:54 GMT In-Reply-To: <87h8qnb3yi.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4639.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8802 signatures=668668 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=878 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802120060 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:143187 Archived-At: > > Is the total number of lines (in the search space) also > > available? If so, would that be useful? Maybe something > > like this? > > > > Grep finished at Thu Jul 21 15:02:15 - 42 matches in 5/113 lines > > ^^^^ >=20 > Unfortunately the total number of lines is not available. > There is even problems with getting the right number of matches. > When grep doesn't highlight matches, we can't count them. In that case, the explanation/description should say that it is the number of matches highlighted, not the number of matches. > Another problem is that grep matches to be printed at the end of the > grep buffer can't be counted in grep-regexp-alist because it is > based on font-lock which is invoked at unpredictable times > when grep process is already finished. This leaves only one way > to count matches in grep-filter in this patch. >=20 > For the same reason, printing the number of compilation errors at > the end of the compilation buffer can't be implemented for bug#13417. If the numbers shown depend on font-lock and are not necessarily accurate then the doc should make that clear.