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#29321: Isearch hit count Date: Sat, 27 Oct 2018 14:31:21 -0700 (PDT) Message-ID: References: <87o9bfqfc3.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 1540675814 22132 195.159.176.226 (27 Oct 2018 21:30:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 27 Oct 2018 21:30:14 +0000 (UTC) Cc: 29321@debbugs.gnu.org To: Juri Linkov , charles@aurox.ch Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 27 23:30:09 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 1gGW9m-0005cz-Vl for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2018 23:30:07 +0200 Original-Received: from localhost ([::1]:37871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGWBt-0006kh-A7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2018 17:32:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGWBj-0006kZ-KL for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 17:32:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGWBe-0004yc-KP for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 17:32:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41599) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gGWBe-0004yM-GJ for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 17:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gGWBe-0003sa-3c for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 17:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Oct 2018 21:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29321 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29321-submit@debbugs.gnu.org id=B29321.154067590114885 (code B ref 29321); Sat, 27 Oct 2018 21:32:02 +0000 Original-Received: (at 29321) by debbugs.gnu.org; 27 Oct 2018 21:31:41 +0000 Original-Received: from localhost ([127.0.0.1]:45857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGWBI-0003s1-ND for submit@debbugs.gnu.org; Sat, 27 Oct 2018 17:31:40 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:42954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGWBG-0003ro-Uk for 29321@debbugs.gnu.org; Sat, 27 Oct 2018 17:31:39 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9RLUAIl125359; Sat, 27 Oct 2018 21:31: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-2018-07-02; bh=nYBC9lr1okRekMwnniCQM00XZhv3d/6dEwDPl65MR8o=; b=1ECKC6FgwwxUFeGMM2RSwV2c2SgDf6T6cXNH/Y0/9P9LsEb8dMIxrTKOGqyxaW5s0A0x Ek3/YN4p2ujlT0MiH6cK2kvnagtkUp94xPFCM3PPVlvVKIYAjzOKm2CEGfwwbs7/uxcp 1UTvoTW6wdpeaCoLQ4+v6f9Gk+ul4SpIQE37UO71bRBfVPD2nubSRLEbD11ceuxDNlS7 Vnc+MAwPFeDD6aR7jZB6co4Z8Y+DwmiE3eR9tYJabt/pUzKqDzxFXgC4oSHDPQp/05HL heepDmHEQgi/y4ivkRAE4yI61eUWjx1ucen7ozVoFSMGb54otiGpze48kXEHjaO+Snr5 gQ== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2ncfyph85p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 27 Oct 2018 21:31:24 +0000 Original-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 w9RLVN2q000707 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 27 Oct 2018 21:31:23 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9RLVMwB024888; Sat, 27 Oct 2018 21:31:22 GMT In-Reply-To: <87o9bfqfc3.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4756.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9059 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=698 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810270197 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:151713 Archived-At: > > Isearch could show in the mode line how many matches follow or precede > > the currently highlighted one (or we could write "3 of 4 matches", as, > > e.g., Firefox does). For big files, it could be helpful to calculate > > this information either lazily or in another thread. >=20 > Thanks to Drew,=20 Thanks to you, not me. I did something similar, but partial and misguided, trying to use only *-max-*. The code you added is similar but DTRT. > now we have the full-buffer lazy-highlighting > loop that can be reused for Isearch hit count. >=20 > Here is a minimal patch that implements this feature: