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: Mon, 29 Oct 2018 20:19:39 -0700 (PDT) Message-ID: <2231d642-cb4a-4114-9896-be995e4c6460@default> 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> 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 1540869553 13707 195.159.176.226 (30 Oct 2018 03:19:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2018 03:19:13 +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 Tue Oct 30 04:19:08 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 1gHKYc-0003Ng-J2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2018 04:19:06 +0100 Original-Received: from localhost ([::1]:50478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHKai-0007SR-Ij for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2018 23:21:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHKaZ-0007S2-RN for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 23:21:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHKaU-0001Y7-SC for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 23:21:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48525) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHKaU-0001Y1-NR for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 23:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gHKaU-00054M-Hf for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 23:21:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Oct 2018 03:21: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.154086960319389 (code B ref 29321); Tue, 30 Oct 2018 03:21:02 +0000 Original-Received: (at 29321) by debbugs.gnu.org; 30 Oct 2018 03:20:03 +0000 Original-Received: from localhost ([127.0.0.1]:52783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHKZW-00052e-N5 for submit@debbugs.gnu.org; Mon, 29 Oct 2018 23:20:02 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:36372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHKZU-000527-M0 for 29321@debbugs.gnu.org; Mon, 29 Oct 2018 23:20:01 -0400 Original-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 w9U3JePE111165; Tue, 30 Oct 2018 03:19:46 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 : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=FMaG2KJMHrd0uWCEHK04UAH+cQtIeh/c2N3rII0sesk=; b=vQdYWDVWsbFKOy/neieJMGa2h27rXMwQkK+y/m7M2nVfl93LLx2YLXANUOPSGzZhRm6L 7my0e7mxE+UtbiL4E2vXhMdfJgomNYJtAJ6WOwOL/M9szJHgS9Jk974iu68qRth7YN5E a6S4ufBvg7TIYpaake8zXy1lWjsVuRB7nB1Zi+gSwfLx0iPf525M7TVWbOI7BEU4Tdo2 SoJE6c1dnk2ylgPw5Y7GtBuSWqifYZ1xBs7ST6L/ncCLV9PHhwDyfGlmeRVj09cC2oyH xFkwxMqFboFXJn4Xd+APMFJI1j5/pYt8u6zivCVYefSpXDIFNcyHblM+hwOzYRIJWDkc wg== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2ncgnqsb2a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Oct 2018 03:19:46 +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 w9U3Jeoo021307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Oct 2018 03:19:40 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 w9U3JeuH002294; Tue, 30 Oct 2018 03:19:40 GMT 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=9061 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-1810300026 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:151803 Archived-At: OK, tried it. Yes, I apparently mispatched last time. This version is more like the first version (and the code looks more like what I had before, for *-new-loop*). I still do see the problem (did I mention this one?) that if I reverse direction so that the prompt changes to, say, Overwrapped..., there is no count shown. But later sometimes it comes back. Does this make sense? Why would the prompt sometimes disappear? That must mean that, for some reason, `isearch-lazy-count-current' is nil, right? Do you see this? It might help to repeat-search quickly; dunno. I'm still searching just with the regexp "se\(.*\)r", FWIW. But what's weird is that other times when I do (what I think is) the exact same thing I see no problem - no loss of count from the prompt when switching direction. In any case, if I quit search and restart it the count is always displayed again in the prompt. Maybe play with it a bit to see if you don't see what I mentioned sometimes? I think I can make it happen by repeating slowly just after switching direction (either direction). I have a feeling it's related to the fact that when you first switch direction the count is missing from the prompt, just as it is missing when you first type `C-M-s' or `C-M-r', to start Isearch. I'm guessing that sometimes that initial state remains, for some reason - as if it were the first time, just starting Isearch. Does this ring a bell at all? Is there some way it might think that it's just starting out and so does not show the count? HTH - Drew