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: Thu, 1 Nov 2018 16:46:10 -0700 (PDT) Message-ID: References: <87o9bfqfc3.fsf@mail.linkov.net> <988284b2-58af-428d-9c6f-da56db0c6565@default> <874ld5elxb.fsf@mail.linkov.net> <3e52e081-ad81-41a6-a0d6-295790db82d4@default> <877ei049f6.fsf@mail.linkov.net> <2231d642-cb4a-4114-9896-be995e4c6460@default> <87r2g7kp8u.fsf@mail.linkov.net> <8629624d-6118-4b6b-b626-77801112326a@default> <76796f6d-4d0d-47d6-bea7-0944cf53cb18@default> <877ehx7qj9.fsf@mail.linkov.net> <2dca8e1b-2949-4b07-8467-27f873dd0f3d@default> <87a7msl9oz.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 1541115907 15432 195.159.176.226 (1 Nov 2018 23:45:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Nov 2018 23:45:07 +0000 (UTC) Cc: charles@aurox.ch, 29321@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 02 00:45:02 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 1gIMe6-0003te-7I for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Nov 2018 00:45:02 +0100 Original-Received: from localhost ([::1]:47140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIMgC-0002N5-BI for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2018 19:47:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIMg5-0002MA-He for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 19:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIMg2-0006p2-Qr for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 19:47:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54808) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIMg2-0006ou-L1 for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 19:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gIMg1-0001g5-KF for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 19:47: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: Thu, 01 Nov 2018 23:47:01 +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.15411159956413 (code B ref 29321); Thu, 01 Nov 2018 23:47:01 +0000 Original-Received: (at 29321) by debbugs.gnu.org; 1 Nov 2018 23:46:35 +0000 Original-Received: from localhost ([127.0.0.1]:59066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIMfa-0001fN-Tk for submit@debbugs.gnu.org; Thu, 01 Nov 2018 19:46:35 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:47134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIMfZ-0001f9-3R for 29321@debbugs.gnu.org; Thu, 01 Nov 2018 19:46:33 -0400 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 wA1NiCrb149676; Thu, 1 Nov 2018 23:46:18 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=XKJE8OVHV7JX2LIycmsHKUIPbXhHtqXagE6kPL6azCs=; b=iAlCxiRzHnVAD/O9XYRaS0tsW3obora7T73+MJm4XGe+c55tl8Ve2c684gf8HBvww/sG ald9BT1U8itONXa/Q0cHS/CIwhnf5DTIFgNN62i4V5CZDerUbXTx3g1GMHUUkFP0w8+X YcgduzdVS1OH/0j1KVQbhZieL0j7Duwu09iDNdmmVN0Ogn11vKcmE1hbcgNvBNf4oqww dOWAvJveYhQ8NYg3JU1yt93fuXB7GyV1KN46t8jOJoDMAoFzt9l83XyeQtg0gnX/oCH+ yPIPNG94ytVKtWxGVCDp0Mt5RuD4BNwudMon27vfe0n0JdTPwicGPCNwpR+Ouai9PhbU ug== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2nducmgek2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 01 Nov 2018 23:46:18 +0000 Original-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 wA1NkCID015811 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 1 Nov 2018 23:46:13 GMT Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wA1NkBCO013772; Thu, 1 Nov 2018 23:46:11 GMT In-Reply-To: <87a7msl9oz.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=9064 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811010198 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:151931 Archived-At: > >> > I tried it, but I still see the problem. If I repeat > >> > quickly there won't be a count in the prompt, and not > >> > just at the beginning. Or there might be one, but > >> > then when I switch direction it disappears (rightly > >> > so, as you pointed out), but if I continue repeating > >> > in that new direction the count never appears. > >> > >> When you type too quickly, lazy-highlighting (that also counts > >> the number of matches) has no chance to run its timer function. > >> It runs with (run-with-idle-timer lazy-highlight-initial-delay ...) > >> This means that it runs only after lazy-highlight-initial-delay > >> (by default, 0.25 secs) of inactivity. > > > > Sure, but why does the count not get displayed after you > > slow down or even stop (while remaining in Isearch). > > That's my question. > > > > That it doesn't get shown as long as you just keep C-M-s > > pressed, without letting up, is understandable. But why > > isn't the count shown when you let up? >=20 > I now see that you are testing in the *info* buffer. > Yes, I see the same - the number of matches and overlays > are not updated when going to another Info node. > I fixed this to check the previous and current values > of (point-min) and (point-max) - they are different in > different Info nodes. >=20 > Another problem when the number was not displayed is > when you start searching forward at the end of the buffer, > and there are matches above. I fixed it to display e.g. > "0/123", meaning there are 123 matches total, but there is > no current match yet. >=20 > Also in a new version attached I added a new function > isearch-lazy-count-format that is easy to redefine > to display current/total in another format either > in the message prefix or suffix. Thanks for checking and for the new version. I'll give it a try when I can. But no, I wasn't testing in *info*. I think I was testing just in isearch.el (the new one). I don't recall for sure. But what made you think I was testing in *info*? And why does the buffer matter? Being able to specify the format is good. (Haven't looked at the code yet, but I would have expected a variable (even an option perhaps) instead of a function, a priori.) Thx - Drew