From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#14017: Highlight prefix line numbers in occur Date: Thu, 30 May 2013 02:47:51 +0300 Organization: JURTA Message-ID: <87txlljql4.fsf@mail.jurta.org> References: <871ub8idk6.fsf@mail.jurta.org> <87zjxsihvq.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369871512 25323 80.91.229.3 (29 May 2013 23:51:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 May 2013 23:51:52 +0000 (UTC) To: 14017@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 30 01:51:51 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uhq9l-0002wx-D5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 May 2013 01:51:49 +0200 Original-Received: from localhost ([::1]:52586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhq9k-0005la-LY for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 May 2013 19:51:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhq9d-0005l3-6A for bug-gnu-emacs@gnu.org; Wed, 29 May 2013 19:51:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uhq9Y-0001xh-Jo for bug-gnu-emacs@gnu.org; Wed, 29 May 2013 19:51:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhq9Y-0001xd-GL for bug-gnu-emacs@gnu.org; Wed, 29 May 2013 19:51:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UhqAw-00048C-Fd for bug-gnu-emacs@gnu.org; Wed, 29 May 2013 19:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 May 2013 23:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14017 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14017-submit@debbugs.gnu.org id=B14017.136987157815858 (code B ref 14017); Wed, 29 May 2013 23:53:02 +0000 Original-Received: (at 14017) by debbugs.gnu.org; 29 May 2013 23:52:58 +0000 Original-Received: from localhost ([127.0.0.1]:40993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhqAs-00047j-1I for submit@debbugs.gnu.org; Wed, 29 May 2013 19:52:58 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:47175 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhqAq-00047c-6K for 14017@debbugs.gnu.org; Wed, 29 May 2013 19:52:57 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 46AC5258B9E91C for <14017@debbugs.gnu.org>; Wed, 29 May 2013 16:51:28 -0700 (PDT) In-Reply-To: <87zjxsihvq.fsf@mail.jurta.org> (Juri Linkov's message of "Sun, 24 Mar 2013 23:54:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74651 Archived-At: > Another problem I found with the line numbers in `occur' is that > the number of matches it reports in the header line is wrong. > If there are more than one match on a line, the total number > of matches is more than the total number of matching lines > currently displayed in the header line. So I propose > to change the format of the occur header line from: > > 2 matches for "is" in buffer: *scratch* > > to: > > 4 matches in 2 lines for "is" in buffer: *scratch* > > I found that the exact number of matches (as opposed to > the number of matching lines) often is necessary to know beforehand > how many times it requires to type C-s to visit all matches > or how many times to type y/n to replace all matches in the buffer. This is installed now. I propose to use a similar message for grep output as well, i.e. to change the current format: Grep finished with no matches found at Tue Jul 19 15:43:12 Grep finished (matches found) at Thu Jul 21 15:02:15 to: Grep finished with no matches found at Tue Jul 19 15:43:12 Grep finished with 42 matches found at Thu Jul 21 15:02:15 or if grep can count only matching lines then: Grep finished with 42 matching lines at Thu Jul 21 15:02:15 otherwise: Grep finished with 42 matches in 5 lines at Thu Jul 21 15:02:15