From unknown Fri Aug 15 02:05:21 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#30397 <30397@debbugs.gnu.org> To: bug#30397 <30397@debbugs.gnu.org> Subject: Status: Random numbers in grep mode-line Reply-To: bug#30397 <30397@debbugs.gnu.org> Date: Fri, 15 Aug 2025 09:05:21 +0000 retitle 30397 Random numbers in grep mode-line reassign 30397 emacs submitter 30397 Juri Linkov severity 30397 minor tag 30397 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 08 16:38:32 2018 Received: (at submit) by debbugs.gnu.org; 8 Feb 2018 21:38:32 +0000 Received: from localhost ([127.0.0.1]:34359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejtto-0006xE-Gi for submit@debbugs.gnu.org; Thu, 08 Feb 2018 16:38:32 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejttm-0006x0-Ha for submit@debbugs.gnu.org; Thu, 08 Feb 2018 16:38:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejttg-0008VS-E9 for submit@debbugs.gnu.org; Thu, 08 Feb 2018 16:38:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43964) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ejttg-0008VN-An for submit@debbugs.gnu.org; Thu, 08 Feb 2018 16:38:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejtte-0006PU-TO for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 16:38:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejttd-0008Us-Ro for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 16:38:22 -0500 Received: from sub3.mail.dreamhost.com ([69.163.253.7]:46338 helo=homiemail-a23.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ejttd-0008UN-MA for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 16:38:21 -0500 Received: from homiemail-a23.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a23.g.dreamhost.com (Postfix) with ESMTP id BBEC04B0089 for ; Thu, 8 Feb 2018 13:38:20 -0800 (PST) Received: from localhost.linkov.net (m91-129-111-42.cust.tele2.ee [91.129.111.42]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a23.g.dreamhost.com (Postfix) with ESMTPSA id 0D8FA4B007C for ; Thu, 8 Feb 2018 13:38:19 -0800 (PST) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: Random numbers in grep mode-line Organization: LINKOV.NET Date: Thu, 08 Feb 2018 23:32:51 +0200 Message-ID: <87tvurtbek.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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 debbugs-submit-bounces@debbugs.gnu.org Thu Feb 08 16:49:08 2018 Received: (at 30397) by debbugs.gnu.org; 8 Feb 2018 21:49:08 +0000 Received: from localhost ([127.0.0.1]:34367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eju44-0007D0-I9 for submit@debbugs.gnu.org; Thu, 08 Feb 2018 16:49:08 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:40640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eju43-0007Co-Db for 30397@debbugs.gnu.org; Thu, 08 Feb 2018 16:49:07 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w18LgeBN179084; Thu, 8 Feb 2018 21:49:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=/pXaZIIGZagClXc4s6LI/Ze/2dJGlmtLN7vT/HCoqgc=; b=WLml07kDcasJYPsDNbKo1fex0ihGrIj9cPMLY7MnZos0WhcO+rkR1SEWThN1wf/Mbcob tjk95CEnY9HjlzgoYq8hF0nW5jjsk47TOENiq1EAYJ2jd+JIfLlJF3+DDGgKvZNTtopp rnS6Jx6Pc5wlqN1KCkY6tRvFmfntliihuD8S0FgR14V39oh3F5f0fcUrHmKJRjufv0kQ bKw9/qqmo1LWNVUojZyi6vjJsijZaK970YcWfBx7PWtk4ZYnuiN3SXdO6LByLCnO7Llk jp4Wcxq94JXegSYD+meoBo38OCrs2eeg7dZTmZVwTUG52yRkq9496b8CW5LgDLmOucDj ug== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2g0x358759-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 08 Feb 2018 21:49:00 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w18Lmu4I011646 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Feb 2018 21:48:58 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w18Lmu5N001567; Thu, 8 Feb 2018 21:48:56 GMT MIME-Version: 1.0 Message-ID: <702f1621-529b-47b0-a15d-898a2fd81f79@default> Date: Thu, 8 Feb 2018 13:48:55 -0800 (PST) From: Drew Adams To: Juri Linkov , 30397@debbugs.gnu.org Subject: RE: bug#30397: Random numbers in grep mode-line References: <87tvurtbek.fsf@mail.linkov.net> In-Reply-To: <87tvurtbek.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)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8799 signatures=668665 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=756 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802080252 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30397 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) > 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? +1. A mouseover tooltip says this: 1. Number of errors so far 2. Number of warnings so far 3. Number of informational messages so far But `C-h m' says nothing about this (it should). And clicking `compilation-mode' (the parent) in the `C-h m' output shows that mode's doc, but it too says nothing about this. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 08 18:00:48 2018 Received: (at 30397) by debbugs.gnu.org; 8 Feb 2018 23:00:48 +0000 Received: from localhost ([127.0.0.1]:34454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejvBQ-0000Xm-4W for submit@debbugs.gnu.org; Thu, 08 Feb 2018 18:00:48 -0500 Received: from mail-wr0-f177.google.com ([209.85.128.177]:36885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejvBO-0000XY-6G for 30397@debbugs.gnu.org; Thu, 08 Feb 2018 18:00:47 -0500 Received: by mail-wr0-f177.google.com with SMTP id a43so6388283wrc.4 for <30397@debbugs.gnu.org>; Thu, 08 Feb 2018 15:00:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=23EMzAPp6PlDs9lAfmfkywfMAG1L97lREzzm/jC/KXk=; b=bFzsskJ9rrZk9RASjU2pzzYsdyovWxqVpLRJKlS4XGbgCLTE7eGw4Fi82N1tTk74fF f08/44p3UHci25l44kL0tXSLxUXSbcJoiD6bq2+lRfQ5kMEHfo0h0JWwn9qk+k+rIifx Kx6iitUB60yD6LQCN4XyLbeoLEZa2Ti4c2tp8O0BBNOYSVjcyv7Rz5jRpWCh+m+bQ4Qh oWaS/A495ouTjrUvmIgM2WH7o2dLPqttkfoP15H78DXwLHWT1T+1UtZ6SK+r5UfO0qLs kFZcM4f7qA5eleGjasQcd5RGqMzi5jZzEpaK6c5Bg432pBcDYGBNhCZkKnXbF+U3v4s9 9rhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=23EMzAPp6PlDs9lAfmfkywfMAG1L97lREzzm/jC/KXk=; b=pBij73uLheFi+oe7tlT4kX9bYlQPDQJACBEuZQdE8pSbF/P+Rm2XQcCWYXgPECJAkG +k1FAHPH0RZOD8c4DhP6bK86sSGYmksoc0j9X9MgM6TIcA9F5etquJ/HMekNcJqCsYfM QnuHdz0AxDKoZ/mhHEiM8RTUmlVjX0hTfbVMOSXAC4cGHG7VJWBJJBstABO2Bo0PNkMd 1AQP8H9Y9PqPewef+kydjAmmVqPZ1KQTQeWDpF2FM5f3UUpbcVmNJL8DGXg+hB9xleDf mgs0Ya9HXfaxyqTJACcAIeSyhI5Ebdhb9RPfvvk8F72gfMbVvLTEb74VM521juPdebQC Ca9w== X-Gm-Message-State: APf1xPASCG/5mGuMvTI3OmWkeZe9cb7NX4B3StGrvh9AS/tSk/ICVwZT eNt0KtylAD/EB7UrKn2TPCUfXuWl3i1PcMThEJc= X-Google-Smtp-Source: AH8x224u4Tk2TgZOjvmSYpIgIYwrfsl6I3UqGZKxR5Ur7qu54TrRjf4xr7GMlbib2wLBMWmOyyL+pG/lnEftZMi0pj8= X-Received: by 10.223.195.1 with SMTP id n1mr645689wrf.130.1518130840241; Thu, 08 Feb 2018 15:00:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.182.69 with HTTP; Thu, 8 Feb 2018 15:00:39 -0800 (PST) In-Reply-To: <87tvurtbek.fsf@mail.linkov.net> References: <87tvurtbek.fsf@mail.linkov.net> From: Noam Postavsky Date: Thu, 8 Feb 2018 18:00:39 -0500 X-Google-Sender-Auth: ui21d6DonQeLXgVW9Zrdok49Ixg Message-ID: Subject: Re: bug#30397: Random numbers in grep mode-line To: Juri Linkov Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On Thu, Feb 8, 2018 at 4:32 PM, Juri Linkov wrote: > What was the goal of this feature and where it is documented? `(emacs) Compilation' (and similar in etc/NEWS): While compilation proceeds, the mode line is updated to show the number of errors, warnings, and informational messages that have been seen so far. Perhaps it needs some adjustment for grep. Original report: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25354 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 09 04:51:08 2018 Received: (at 30397) by debbugs.gnu.org; 9 Feb 2018 09:51:08 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Fri, 09 Feb 2018 11:50:34 +0200 Message-Id: <83fu6a4hlh.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-reply-to: <87tvurtbek.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 08 Feb 2018 23:32:51 +0200) Subject: Re: bug#30397: Random numbers in grep mode-line References: <87tvurtbek.fsf@mail.linkov.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 09 04:52:00 2018 Received: (at 30397) by debbugs.gnu.org; 9 Feb 2018 09:52:00 +0000 Received: from localhost ([127.0.0.1]:34659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ek5Lc-000846-KE for submit@debbugs.gnu.org; Fri, 09 Feb 2018 04:52:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ek5Lb-00083u-Pg for 30397@debbugs.gnu.org; Fri, 09 Feb 2018 04:51:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ek5LT-0003Ui-H5 for 30397@debbugs.gnu.org; Fri, 09 Feb 2018 04:51:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ek5LT-0003UV-CR; Fri, 09 Feb 2018 04:51:51 -0500 Received: from [176.228.60.248] (port=1591 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ek5LS-0007yP-Bk; Fri, 09 Feb 2018 04:51:50 -0500 Date: Fri, 09 Feb 2018 11:51:30 +0200 Message-Id: <83eflu4hjx.fsf@gnu.org> From: Eli Zaretskii To: Drew Adams In-reply-to: <702f1621-529b-47b0-a15d-898a2fd81f79@default> (message from Drew Adams on Thu, 8 Feb 2018 13:48:55 -0800 (PST)) Subject: Re: bug#30397: Random numbers in grep mode-line References: <87tvurtbek.fsf@mail.linkov.net> <702f1621-529b-47b0-a15d-898a2fd81f79@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org, juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Thu, 8 Feb 2018 13:48:55 -0800 (PST) > From: Drew Adams > > But `C-h m' says nothing about this (it should). > > And clicking `compilation-mode' (the parent) in the `C-h m' output > shows that mode's doc, but it too says nothing about this. I don't see modes whose "C-h m" tells anything about mode-line indicators. Do you? From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 09 10:28:11 2018 Received: (at 30397) by debbugs.gnu.org; 9 Feb 2018 15:28:11 +0000 Received: from localhost ([127.0.0.1]:35580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekAax-0006vL-G8 for submit@debbugs.gnu.org; Fri, 09 Feb 2018 10:28:11 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:47842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekAav-0006v8-Js for 30397@debbugs.gnu.org; Fri, 09 Feb 2018 10:28:10 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w19FRL4J147051; Fri, 9 Feb 2018 15:28:01 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=HVN9rHPrBV+Ui3LLc9xqzNiepMrU1M7ryaetzP4t81c=; b=dvPuWxTygd5ExPO3sg6glMaQC9bduqsjXHl2FuQR98hn4IXSv32BYJkt38YzHgCjCqkT c/AggYy6SejEEeXnSWq+68bx/5LhPSUpKRMbd0YVtXBSTE1mvho6UgfVYn+g0WqS0F1s ddXeVE9BCSOXgWOcOyAbrvAQTxj+ZH5wml4QJHI7cpnv6n8xpYA10fCcwnP2qLksuBXW yIG9+ugF4H+qAzuPqkD9KYjkwnirK5kK1FSmsCYp9FnwnleVczPh5mxUiVXeG2kx9hlJ G8ZFLjv1W3m4QRQUEnrtHUPtSVEOo4hwEX31bY8XXIRZdlLmxw3zqvY8Y6QeJXCAo3f/ rg== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2g1dp8r984-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 09 Feb 2018 15:28:00 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w19FS0hX000610 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 9 Feb 2018 15:28:00 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w19FRvPx020645; Fri, 9 Feb 2018 15:27:57 GMT MIME-Version: 1.0 Message-ID: <3e9d0fd8-b859-4eec-8f34-54185dd6c0f3@default> Date: Fri, 9 Feb 2018 07:27:55 -0800 (PST) From: Drew Adams To: Eli Zaretskii , Drew Adams Subject: RE: bug#30397: Random numbers in grep mode-line References: <<87tvurtbek.fsf@mail.linkov.net>> <<702f1621-529b-47b0-a15d-898a2fd81f79@default>> <<83eflu4hjx.fsf@gnu.org>> In-Reply-To: <<83eflu4hjx.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4639.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8799 signatures=668665 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=869 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802090196 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org, juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) > > But `C-h m' says nothing about this (it should). > > > > And clicking `compilation-mode' (the parent) in the `C-h m' output > > shows that mode's doc, but it too says nothing about this. >=20 > I don't see modes whose "C-h m" tells anything about mode-line > indicators. Do you? No. And? How many modes do you see that have mode-line info that needs explanation? There might well be some others - in that case, feel free to file bugs for those too. The point is that if something the mode does is not obvious from the UI, it might help for the mode doc to say something about it. For `grep', in particular, these numbers, even with their mouseover tooltips, may leave users scratching their heads. Juri is hardly a novice, to either Emacs or `grep'. I'm not that much of a novice either. We both, apparently, feel that this mode-line indication is not sufficiently self-expanatory. There may even be some question (e.g. for `grep') how useful it is. If you agree that better help about this would be in order, where would you suggest putting that help, if not on `C-h m'? (If you don't agree that improvement is needed then why ask about putting it on `C-h m'?) From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 09 10:35:43 2018 Received: (at 30397) by debbugs.gnu.org; 9 Feb 2018 15:35:43 +0000 Received: from localhost ([127.0.0.1]:35585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekAiF-00076V-8k for submit@debbugs.gnu.org; Fri, 09 Feb 2018 10:35:43 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53263) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekAiD-00076I-Gn for 30397@debbugs.gnu.org; Fri, 09 Feb 2018 10:35:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekAi4-0006ld-SV for 30397@debbugs.gnu.org; Fri, 09 Feb 2018 10:35:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekAi4-0006lY-Mv; Fri, 09 Feb 2018 10:35:32 -0500 Received: from [176.228.60.248] (port=2288 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ekAi3-0004ON-TY; Fri, 09 Feb 2018 10:35:32 -0500 Date: Fri, 09 Feb 2018 17:35:11 +0200 Message-Id: <83zi4i2n2o.fsf@gnu.org> From: Eli Zaretskii To: Drew Adams In-reply-to: <3e9d0fd8-b859-4eec-8f34-54185dd6c0f3@default> (message from Drew Adams on Fri, 9 Feb 2018 07:27:55 -0800 (PST)) Subject: Re: bug#30397: Random numbers in grep mode-line References: <<87tvurtbek.fsf@mail.linkov.net>> <<702f1621-529b-47b0-a15d-898a2fd81f79@default>> <<83eflu4hjx.fsf@gnu.org>> <3e9d0fd8-b859-4eec-8f34-54185dd6c0f3@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org, juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Fri, 9 Feb 2018 07:27:55 -0800 (PST) > From: Drew Adams > Cc: juri@linkov.net, 30397@debbugs.gnu.org > > > > But `C-h m' says nothing about this (it should). > > > > > > And clicking `compilation-mode' (the parent) in the `C-h m' output > > > shows that mode's doc, but it too says nothing about this. > > > > I don't see modes whose "C-h m" tells anything about mode-line > > indicators. Do you? > > No. And? > > How many modes do you see that have mode-line info > that needs explanation? >From my POV, almost all of those which put there something that is not just the mode's (abbreviated) name. > There might well be some others - in that case, feel free to file > bugs for those too. Filing a bug doesn't solve the problem. > If you agree that better help about this would be > in order, where would you suggest putting that help, > if not on `C-h m'? Our current practice is to describe that in the manual. If we decide to add that to "C-h m", we should do that for all the modes. We should also consider the discoverability: "C-h m" is not where I would look for documentation of a mode, only for its keybindings. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 09 10:43:34 2018 Received: (at 30397) by debbugs.gnu.org; 9 Feb 2018 15:43:34 +0000 Received: from localhost ([127.0.0.1]:35593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekApq-0007HR-Co for submit@debbugs.gnu.org; Fri, 09 Feb 2018 10:43:34 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:35754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekApp-0007HF-5w for 30397@debbugs.gnu.org; Fri, 09 Feb 2018 10:43:33 -0500 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 w19FgKUU008543; Fri, 9 Feb 2018 15:43:24 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=f+6a6tIykUqBfjE08dV5niXiKN3SAGFdMcvr1DMZdpk=; b=npqf+JQXe33nRfGdBVWJk+Ah5+LGrd/FYBqkF0QseD/nluM+DajWqEyg9fu/ZWrpNIYn R4/+D5WPNWrwE1FTE0mIJxVKsLiu9biDi7Z7BGJwsyjHqsu9uGuFgUUiwJ2dN9a+PTfJ p22JY2mshSAUSX4KZszGoollbEkNIY+XyVui/vhO35Y79Wd5EYy7oAqa7N3HugXjxW4O MTi2rB2Sc1caxlwzeVZiCWcr+wWcBdjFwZxT2iGPDctyYnxF210UtYIyJ5QIDp60zkRi /EH1hpCIgyeHUXZNl94Msf3YtYJEoRj1kbQ7iLe1mMjlSjZ8q9IBbDlQ/xUO6R5P3Nur ew== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2g1dkxgf4u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 09 Feb 2018 15:43:24 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w19FhNwB023656 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 9 Feb 2018 15:43:23 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w19FhMxj004899; Fri, 9 Feb 2018 15:43:23 GMT MIME-Version: 1.0 Message-ID: <29fde032-6320-4078-836c-46736dea149f@default> Date: Fri, 9 Feb 2018 07:43:21 -0800 (PST) From: Drew Adams To: Eli Zaretskii , Juri Linkov Subject: RE: bug#30397: Random numbers in grep mode-line References: <<87tvurtbek.fsf@mail.linkov.net>> <<83fu6a4hlh.fsf@gnu.org>> In-Reply-To: <<83fu6a4hlh.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4639.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8799 signatures=668665 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=824 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802090200 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) > 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. Probably, yes. It is especially for `grep' that the indications are not so clear or helpful (the last two). From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 09 10:59:25 2018 Received: (at 30397) by debbugs.gnu.org; 9 Feb 2018 15:59:25 +0000 Received: from localhost ([127.0.0.1]:35606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekB5B-0007e3-8P for submit@debbugs.gnu.org; Fri, 09 Feb 2018 10:59:25 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:53560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekB57-0007do-Je for 30397@debbugs.gnu.org; Fri, 09 Feb 2018 10:59:22 -0500 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 w19Fuml0021091; Fri, 9 Feb 2018 15:59:15 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=VkXnvXGU+cDWq/j+3h4ZRegVbYHVPFVlZQHwJSZ7+fk=; b=aizSuSNd7mIu80QdgElxw14bYlm5t7v2fSHfdFgECuYhP4rQ6hO32hA/05J3Qav+OUMB 49npoaOFOtmd/qp/tdFjh9myM6YkCqNgNcTVYPSS5iG2Mpv5YdHJWv/Dozi2eM+4r1Yt MKRbn8P/seJGHaxy95tvaozNKiu4BjixZh2SBSVALT08bctkxRm3T2wBZR+n3cPPzaEU UTxJ139eukzkX60lnp+hHrVM165CLP3f5bfDa0oHiZm7fgK0ibpKCuPoHs3LP9z3tNRX MRgtTy0JCFVxnmjDx906DzSBNLtg1SWtRF+joNGUcidCN+A3vCp1sQjujRJ4W1t7sSTc Wg== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2g1dkxgj8h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 09 Feb 2018 15:59:15 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w19FxE9G015511 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 9 Feb 2018 15:59:15 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w19FxERa013507; Fri, 9 Feb 2018 15:59:14 GMT MIME-Version: 1.0 Message-ID: <571596f8-5f15-4b7e-b0b4-9842ea36aa7d@default> Date: Fri, 9 Feb 2018 07:59:12 -0800 (PST) From: Drew Adams To: Eli Zaretskii , Drew Adams Subject: RE: bug#30397: Random numbers in grep mode-line References: <<<87tvurtbek.fsf@mail.linkov.net>>> <<<702f1621-529b-47b0-a15d-898a2fd81f79@default>>> <<<83eflu4hjx.fsf@gnu.org>>> <<3e9d0fd8-b859-4eec-8f34-54185dd6c0f3@default>> <<83zi4i2n2o.fsf@gnu.org>> In-Reply-To: <<83zi4i2n2o.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4639.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8799 signatures=668665 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=953 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802090203 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org, juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) > > If you agree that better help about this would be > > in order, where would you suggest putting that help, > > if not on `C-h m'? >=20 > Our current practice is to describe that in the manual. That's OK by me. Somewhere is better than nowhere. The manual is better than just NEWS. > If we decide to add that to "C-h m", we should do that > for all the modes. That doesn't follow. We sometimes describe some keys in `C-h m' output. That doesn't mean we should describe all keys in the mode map. We should describe what needs to be described - in particular, (1) things that might be the least obvious, clear or easy to discover and (2) things that might be the most important to know. > We should also consider the discoverability: Definitely. That's why NEWS doesn't suffice. The best discoverability for something in the mode-line is mouseover tooltip info - right there. The second best is clicking that thing in the mode line - right there. For mode indications in the mode-line, I do think that `C-h m' would not be a bad place to describe them, when the info is needed (i.e., when they are not clear on their own and you cannot get more info about them from the mode-line itself - see previous). > "C-h m" is not where I would look for documentation > of a mode, only for its keybindings. Only its key bindings? Not I. To me, `C-h m' should give an overview of the mode: what it's for etc. If `C-h m' for some mode just lists a few key bindings then I'm disappointed and want more info. `C-h m' is sometimes (often? typically?) the doc string of the mode function. As such, like any command doc string, it should describe the command. I mention these general thoughts about `C-h m' because you brought up the general question. I have no problem with this bug being fixed by adding description in the manual. And perhaps modifiying what users see for `grep' in the UI. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 16:47:30 2018 Received: (at 30397) by debbugs.gnu.org; 10 Feb 2018 21:47:30 +0000 Received: from localhost ([127.0.0.1]:37293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekczZ-0004ok-Q9 for submit@debbugs.gnu.org; Sat, 10 Feb 2018 16:47:29 -0500 Received: from sub3.mail.dreamhost.com ([69.163.253.7]:41109 helo=homiemail-a101.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekczY-0004oc-8v for 30397@debbugs.gnu.org; Sat, 10 Feb 2018 16:47:28 -0500 Received: from homiemail-a101.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a101.g.dreamhost.com (Postfix) with ESMTP id 5FE68117E06A; Sat, 10 Feb 2018 13:47:27 -0800 (PST) Received: from localhost.linkov.net (m91-129-100-74.cust.tele2.ee [91.129.100.74]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a101.g.dreamhost.com (Postfix) with ESMTPSA id 71BAF117E065; Sat, 10 Feb 2018 13:47:26 -0800 (PST) From: Juri Linkov To: Noam Postavsky Subject: Re: bug#30397: Random numbers in grep mode-line Organization: LINKOV.NET References: <87tvurtbek.fsf@mail.linkov.net> Date: Sat, 10 Feb 2018 23:32:44 +0200 In-Reply-To: (Noam Postavsky's message of "Thu, 8 Feb 2018 18:00:39 -0500") Message-ID: <87zi4gpm2r.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) >> What was the goal of this feature and where it is documented? > > `(emacs) Compilation' (and similar in etc/NEWS): > > While compilation proceeds, the mode line is updated to show the > number of errors, warnings, and informational messages that have been > seen so far. > > Perhaps it needs some adjustment for grep. > > Original report: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25354 Yes, some adjustment is needed for grep. That reminded me about two unclosed feature requests: bug#13417 and bug#14017 that proposed to display these numbers also at the bottom of output buffers. But the showstopper was to decide on the final format of such messages. Although this looks good: Grep finished with 42 matches in 5 lines at Thu Jul 21 15:02:15 Than the mode-line will display two numbers: the number of matches and the number of matching lines (in green). From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 17:01:48 2018 Received: (at 30397) by debbugs.gnu.org; 10 Feb 2018 22:01:48 +0000 Received: from localhost ([127.0.0.1]:37318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekdDQ-0005AH-JX for submit@debbugs.gnu.org; Sat, 10 Feb 2018 17:01:48 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:59542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekdDP-0005A5-Ci for 30397@debbugs.gnu.org; Sat, 10 Feb 2018 17:01:47 -0500 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 w1AM1f37140407; Sat, 10 Feb 2018 22:01:41 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=JVxpiQF3jzJEEJHWbx/5LyunJ3EPYLbHmmsZAHm/MEk=; b=LGvOusjaZZm9J29OjPUmWumdCk9F00BM1S5eJlFWd0DU8UWyMvmnf/JH+THI2rn5AM0K opkvf9+V0p0cLA1KiaGnBrE7DvY4zm7EzMV79RJJHwlojTJwvn3pJAIi9/GbmSjlbDs1 43QQFD+Mde34fra25W11s05EftSrGzjyI3Hp6lg9cQixavKl2OLbZTCxiDOJ0rZ+t/kN h5f8EC5zL/F0zQjXwJoF/Jx6MFndEV0oZ0EDuBsqx3ltHFc5OGgFikfqeZAHfxc3Qs4a idfkZQQ3puaSB2OpHHO2+bUfj9NrvFdHFIz3Xs+HYc+oF2Go1hYGehJvFUhX4vI+1TgB Kw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2g28dnr1fb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 10 Feb 2018 22:01:41 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w1AM1emC028398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 10 Feb 2018 22:01:40 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w1AM1eGo026713; Sat, 10 Feb 2018 22:01:40 GMT MIME-Version: 1.0 Message-ID: Date: Sat, 10 Feb 2018 14:01:38 -0800 (PST) From: Drew Adams To: Juri Linkov , Noam Postavsky Subject: RE: bug#30397: Random numbers in grep mode-line References: <87tvurtbek.fsf@mail.linkov.net> <87zi4gpm2r.fsf@mail.linkov.net> In-Reply-To: <87zi4gpm2r.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)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8801 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=638 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802100291 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) > Yes, some adjustment is needed for grep. That reminded me > about two unclosed feature requests: bug#13417 and bug#14017 > that proposed to display these numbers also at the bottom of > output buffers. But the showstopper was to decide on the > final format of such messages. Although this looks good: >=20 > Grep finished with 42 matches in 5 lines at Thu Jul 21 15:02:15 >=20 > Than the mode-line will display two numbers: the number of matches > and the number of matching lines (in green). 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 ^^^^ From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 11 15:45:22 2018 Received: (at 30397) by debbugs.gnu.org; 11 Feb 2018 20:45:22 +0000 Received: from localhost ([127.0.0.1]:38646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekyV0-0000Rx-7Y for submit@debbugs.gnu.org; Sun, 11 Feb 2018 15:45:22 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekyUy-0000Rj-PU for 30397@debbugs.gnu.org; Sun, 11 Feb 2018 15:45:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekyUs-0004wG-Pm for 30397@debbugs.gnu.org; Sun, 11 Feb 2018 15:45:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekyUi-0004jE-Lt; Sun, 11 Feb 2018 15:45:04 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ekyUi-0000oS-69; Sun, 11 Feb 2018 15:45:04 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Juri Linkov In-reply-to: <87zi4gpm2r.fsf@mail.linkov.net> (message from Juri Linkov on Sat, 10 Feb 2018 23:32:44 +0200) Subject: Re: bug#30397: Random numbers in grep mode-line References: <87tvurtbek.fsf@mail.linkov.net> <87zi4gpm2r.fsf@mail.linkov.net> Message-Id: Date: Sun, 11 Feb 2018 15:45:04 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > While compilation proceeds, the mode line is updated to show the > > number of errors, warnings, and informational messages that have been > > seen so far. That has a gratuitous passive verb. This text avoids that and is clearer in other ways. ====================================================================== The mode line displays and updates the number of errors, number of warnings, and number of informational messages emitted by compilation. ====================================================================== Would someone please install this and ack? -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) Skype: No way! See https://stallman.org/skype.html. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 11 16:45:50 2018 Received: (at 30397) by debbugs.gnu.org; 11 Feb 2018 21:45:50 +0000 Received: from localhost ([127.0.0.1]:38670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekzRW-0001o6-42 for submit@debbugs.gnu.org; Sun, 11 Feb 2018 16:45:50 -0500 Received: from sub3.mail.dreamhost.com ([69.163.253.7]:42742 helo=homiemail-a100.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekzRU-0001ny-Gr for 30397@debbugs.gnu.org; Sun, 11 Feb 2018 16:45:48 -0500 Received: from homiemail-a100.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a100.g.dreamhost.com (Postfix) with ESMTP id BE67031A073; Sun, 11 Feb 2018 13:45:47 -0800 (PST) Received: from localhost.linkov.net (m91-129-100-74.cust.tele2.ee [91.129.100.74]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a100.g.dreamhost.com (Postfix) with ESMTPSA id 7160B31A070; Sun, 11 Feb 2018 13:45:46 -0800 (PST) From: Juri Linkov To: Drew Adams Subject: Re: bug#30397: Random numbers in grep mode-line Organization: LINKOV.NET References: <87tvurtbek.fsf@mail.linkov.net> <87zi4gpm2r.fsf@mail.linkov.net> Date: Sun, 11 Feb 2018 23:40:05 +0200 In-Reply-To: (Drew Adams's message of "Sat, 10 Feb 2018 14:01:38 -0800 (PST)") Message-ID: <87h8qnb3yi.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=-=-= Content-Type: text/plain >> Yes, some adjustment is needed for grep. That reminded me >> about two unclosed feature requests: bug#13417 and bug#14017 >> that proposed to display these numbers also at the bottom of >> output buffers. But the showstopper was to decide on the >> final format of such messages. Although this looks good: >> >> Grep finished with 42 matches in 5 lines at Thu Jul 21 15:02:15 >> >> Than the mode-line will display two numbers: the number of matches >> and the number of matching lines (in green). > > 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 > ^^^^ 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. 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. For the same reason, printing the number of compilation errors at the end of the compilation buffer can't be implemented for bug#13417. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=grep-matches-mode-line.patch diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index 9ce4ff8..23de8aa 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -425,6 +425,14 @@ grep-match-face (defvar grep-context-face 'shadow "Face name to use for grep context lines.") +(defvar grep-num-matches-found 0) + +(defconst grep-mode-line-matches + `(" [" (:propertize (:eval (int-to-string grep-num-matches-found)) + face ,grep-hit-face + help-echo "Number of matches so far") + "]")) + (defvar grep-mode-font-lock-keywords '(;; Command output lines. (": \\(.+\\): \\(?:Permission denied\\|No such \\(?:file or directory\\|device or address\\)\\)$" @@ -432,7 +440,7 @@ grep-mode-font-lock-keywords ;; remove match from grep-regexp-alist before fontifying ("^Grep[/a-zA-z]* started.*" (0 '(face nil compilation-message nil help-echo nil mouse-face nil) t)) - ("^Grep[/a-zA-z]* finished \\(?:(\\(matches found\\))\\|with \\(no matches found\\)\\).*" + ("^Grep[/a-zA-z]* finished \\(?:with \\(\\(?:[0-9]+ \\)?matches found\\)\\|with \\(no matches found\\)\\).*" (0 '(face nil compilation-message nil help-echo nil mouse-face nil) t) (1 compilation-info-face nil t) (2 compilation-warning-face nil t)) @@ -503,21 +511,28 @@ grep-process-setup (setenv "GREP_COLOR" "01;31") ;; GREP_COLORS is used in GNU grep 2.5.2 and later versions (setenv "GREP_COLORS" "mt=01;31:fn=:ln=:bn=:se=:sl=:cx=:ne")) + (setq-local grep-num-matches-found 0) (set (make-local-variable 'compilation-exit-message-function) - (lambda (status code msg) - (if (eq status 'exit) - ;; This relies on the fact that `compilation-start' - ;; sets buffer-modified to nil before running the command, - ;; so the buffer is still unmodified if there is no output. - (cond ((and (zerop code) (buffer-modified-p)) - '("finished (matches found)\n" . "matched")) - ((not (buffer-modified-p)) - '("finished with no matches found\n" . "no match")) - (t - (cons msg code))) - (cons msg code)))) + 'grep-exit-message) (run-hooks 'grep-setup-hook)) +(defun grep-exit-message (status code msg) + "Return a status message for grep results." + (if (eq status 'exit) + ;; This relies on the fact that `compilation-start' + ;; sets buffer-modified to nil before running the command, + ;; so the buffer is still unmodified if there is no output. + (cond ((and (zerop code) (buffer-modified-p)) + (if (> grep-num-matches-found 0) + (cons (format "finished with %d matches found\n" grep-num-matches-found) + "matched") + '("finished with matches found\n" . "matched"))) + ((not (buffer-modified-p)) + '("finished with no matches found\n" . "no match")) + (t + (cons msg code))) + (cons msg code))) + (defun grep-filter () "Handle match highlighting escape sequences inserted by the grep process. This function is called from `compilation-filter-hook'." @@ -535,7 +550,8 @@ grep-filter (while (re-search-forward "\033\\[0?1;31m\\(.*?\\)\033\\[[0-9]*m" end 1) (replace-match (propertize (match-string 1) 'face nil 'font-lock-face grep-match-face) - t t)) + t t) + (cl-incf grep-num-matches-found)) ;; Delete all remaining escape sequences (goto-char beg) (while (re-search-forward "\033\\[[0-9;]*[mK]" end 1) @@ -775,6 +791,8 @@ grep-mode grep-hit-face) (set (make-local-variable 'compilation-error-regexp-alist) grep-regexp-alist) + (set (make-local-variable 'compilation-mode-line-errors) + grep-mode-line-matches) ;; compilation-directory-matcher can't be nil, so we set it to a regexp that ;; can never match. (set (make-local-variable 'compilation-directory-matcher) '("\\`a\\`")) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 11 23:55:06 2018 Received: (at 30397) by debbugs.gnu.org; 12 Feb 2018 04:55:06 +0000 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 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 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== 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 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 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 MIME-Version: 1.0 Message-ID: <92b33e1f-f133-4ad1-9bda-4d40353db19a@default> Date: Sun, 11 Feb 2018 20:54:52 -0800 (PST) From: Drew Adams To: Juri Linkov Subject: RE: bug#30397: Random numbers in grep mode-line References: <87tvurtbek.fsf@mail.linkov.net> <87zi4gpm2r.fsf@mail.linkov.net> <87h8qnb3yi.fsf@mail.linkov.net> 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)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) > > 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 10:47:42 2018 Received: (at 30397) by debbugs.gnu.org; 12 Feb 2018 15:47:42 +0000 Received: from localhost ([127.0.0.1]:39868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elGKU-0008KH-If for submit@debbugs.gnu.org; Mon, 12 Feb 2018 10:47:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elGKT-0008K6-Jz for 30397@debbugs.gnu.org; Mon, 12 Feb 2018 10:47:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elGKL-0006Nx-MZ for 30397@debbugs.gnu.org; Mon, 12 Feb 2018 10:47:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elGKB-0006Bg-83; Mon, 12 Feb 2018 10:47:23 -0500 Received: from [176.228.60.248] (port=2626 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elGKA-0007MM-Ny; Mon, 12 Feb 2018 10:47:23 -0500 Date: Mon, 12 Feb 2018 17:47:11 +0200 Message-Id: <83tvumyzuo.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-reply-to: <87h8qnb3yi.fsf@mail.linkov.net> (message from Juri Linkov on Sun, 11 Feb 2018 23:40:05 +0200) Subject: Re: bug#30397: Random numbers in grep mode-line References: <87tvurtbek.fsf@mail.linkov.net> <87zi4gpm2r.fsf@mail.linkov.net> <87h8qnb3yi.fsf@mail.linkov.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org, drew.adams@oracle.com, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Juri Linkov > Date: Sun, 11 Feb 2018 23:40:05 +0200 > Cc: 30397@debbugs.gnu.org, Noam Postavsky > > diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el > index 9ce4ff8..23de8aa 100644 > --- a/lisp/progmodes/grep.el > +++ b/lisp/progmodes/grep.el Thanks, this LGTM for the emacs-26 branch. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 11:35:37 2018 Received: (at 30397) by debbugs.gnu.org; 12 Feb 2018 16:35:37 +0000 Received: from localhost ([127.0.0.1]:39917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elH4r-0002wy-4A for submit@debbugs.gnu.org; Mon, 12 Feb 2018 11:35:37 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elH4p-0002wl-Cx for 30397@debbugs.gnu.org; Mon, 12 Feb 2018 11:35:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elH4h-0007A2-Df for 30397@debbugs.gnu.org; Mon, 12 Feb 2018 11:35:30 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elH4V-0006wP-0d; Mon, 12 Feb 2018 11:35:15 -0500 Received: from [176.228.60.248] (port=2696 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elH4N-0004UO-Qm; Mon, 12 Feb 2018 11:35:08 -0500 Date: Mon, 12 Feb 2018 18:34:56 +0200 Message-Id: <83o9kuyxn3.fsf@gnu.org> From: Eli Zaretskii To: rms@gnu.org In-reply-to: (message from Richard Stallman on Sun, 11 Feb 2018 15:45:04 -0500) Subject: Re: bug#30397: Random numbers in grep mode-line References: <87tvurtbek.fsf@mail.linkov.net> <87zi4gpm2r.fsf@mail.linkov.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30397 Cc: npostavs@users.sourceforge.net, 30397@debbugs.gnu.org, juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Richard Stallman > Date: Sun, 11 Feb 2018 15:45:04 -0500 > Cc: 30397@debbugs.gnu.org, npostavs@users.sourceforge.net > > > > While compilation proceeds, the mode line is updated to show the > > > number of errors, warnings, and informational messages that have been > > > seen so far. > > That has a gratuitous passive verb. > This text avoids that and is clearer in other ways. > > ====================================================================== > The mode line displays and updates the number of errors, number of > warnings, and number of informational messages emitted by compilation. > ====================================================================== > > Would someone please install this and ack? Ack. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 16:40:17 2018 Received: (at 30397) by debbugs.gnu.org; 12 Feb 2018 21:40:17 +0000 Received: from localhost ([127.0.0.1]:40131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elLph-0001VR-N1 for submit@debbugs.gnu.org; Mon, 12 Feb 2018 16:40:17 -0500 Received: from sub3.mail.dreamhost.com ([69.163.253.7]:38099 helo=homiemail-a22.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elLpg-0001VH-U3; Mon, 12 Feb 2018 16:40:17 -0500 Received: from homiemail-a22.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a22.g.dreamhost.com (Postfix) with ESMTP id F091911406A; Mon, 12 Feb 2018 13:40:15 -0800 (PST) Received: from localhost.linkov.net (m91-129-100-74.cust.tele2.ee [91.129.100.74]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a22.g.dreamhost.com (Postfix) with ESMTPSA id DBB4D114068; Mon, 12 Feb 2018 13:40:14 -0800 (PST) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#30397: Random numbers in grep mode-line Organization: LINKOV.NET References: <87tvurtbek.fsf@mail.linkov.net> <87zi4gpm2r.fsf@mail.linkov.net> <87h8qnb3yi.fsf@mail.linkov.net> <83tvumyzuo.fsf@gnu.org> Date: Mon, 12 Feb 2018 23:39:42 +0200 In-Reply-To: <83tvumyzuo.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 12 Feb 2018 17:47:11 +0200") Message-ID: <87k1vhvqe9.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30397 Cc: 30397@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) tags 30397 fixed close 30397 26.1 tags 14017 fixed close 14017 26.1 tags 13417 wontfix close 13417 quit >> diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el >> index 9ce4ff8..23de8aa 100644 >> --- a/lisp/progmodes/grep.el >> +++ b/lisp/progmodes/grep.el > > Thanks, this LGTM for the emacs-26 branch. Pushed to the emacs-26 branch. From unknown Fri Aug 15 02:05:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 13 Mar 2018 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator