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 20:35:26 -0700 (PDT) Message-ID: <988284b2-58af-428d-9c6f-da56db0c6565@default> 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 1540697653 29429 195.159.176.226 (28 Oct 2018 03:34:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2018 03:34:13 +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 Sun Oct 28 04:34: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 1gGbq1-0007Th-Dy for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Oct 2018 04:34:05 +0100 Original-Received: from localhost ([::1]:38617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGbs7-0000v4-EW for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2018 23:36:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGbs0-0000un-5C for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 23:36:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGbrw-0002GV-FJ for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 23:36:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41882) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gGbru-0002Fw-H0 for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 23:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gGbru-0004L9-9d for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 23:36: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: Sun, 28 Oct 2018 03:36: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.154069774116657 (code B ref 29321); Sun, 28 Oct 2018 03:36:02 +0000 Original-Received: (at 29321) by debbugs.gnu.org; 28 Oct 2018 03:35:41 +0000 Original-Received: from localhost ([127.0.0.1]:46140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGbrY-0004Ka-LS for submit@debbugs.gnu.org; Sat, 27 Oct 2018 23:35:40 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:53952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGbrW-0004KN-Lb for 29321@debbugs.gnu.org; Sat, 27 Oct 2018 23:35:39 -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 w9S3ZU8K127723; Sun, 28 Oct 2018 03:35:30 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=PQRbzcfP/p/w2yppDR1ciBvCsShD+bVNxQcdiTKLNFQ=; b=jaaajwfgP5GI7o4yDiNXxsUI8l4SaY/Sq+vGIStZoOZICAO1EzKv4kA3QkKTYjFgdGzu JPwgsz0MsYmk50hhhbI1PJQU+07cNAC0XZBvn0VY7qjgNanPGSo+i5Th5w4ohBW17geU X+68lMAc+ilQrrIy27GJuAGmJAQWAzNAR8IQKTRqze7U9G4eOjHYQ7/zHQP3Ra7QDH/y CBEthfAPo2ejfKLMh8mEHWAZb35on+ST7RJjHhWYlQ2YmLcFgX26HD/mTyEXYmtClFCJ slrMsBN/8xQm842WY8MExMACf3QJiFXNP5zf+hYeH38StlGUzC4Moqtfa9t7pR8lfftr Bg== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2ncfet9jhk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 28 Oct 2018 03:35:30 +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 w9S3ZSf3008804 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 28 Oct 2018 03:35:28 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w9S3ZRgx028184; Sun, 28 Oct 2018 03:35:27 GMT In-Reply-To: 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810280032 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:151731 Archived-At: I'm seeing a bug, I think, when I switch directions. I applied your patch manually, so perhaps I made a mistake, but this is what I see: E.g., I search for "ea" in the patched isearch.el, starting about 1/2 way through the file, say at the beginning of the line "(isearch-define-mode-toggle invisible..." First, when I hit `C-s ea' I see 1248/2520, but then another `C-s' shows 1249/2530 - the total has jumped by 10. I continue searching forward, and the numbering seems normal: 1250/2530, 1251/2530. OK, so the initial total was off by 10. But at match #1251 I switch to `C-r', and the match number is 1241/2520: both the match number and the total are off by 10. On a small buffer I don't notice this problem. Do you see this too? If not, maybe I patched mistakenly. ---- Another problem I see is that sometimes when I switch directions no match number is displayed. After a few repeated searches in the new direction sometimes the match number reappears. E.g., I start and repeat a forward search for "ea" a few lines before the end of the buffer, then I reverse to `C-r'. But this problem is not reproducible reliably: sometimes it happens, sometimes the match number is shown each time, immediately. Dunno whether you will see this one. But if I didn't make a mistake applying the patch (to vanilla isearch.el) then I think you should be able to see the wrong-numbers problem.