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, 3 Nov 2018 18:22:45 -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> <87ftwjod61.fsf@aol.com> <87va5d7lc8.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 1541294469 19694 195.159.176.226 (4 Nov 2018 01:21:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Nov 2018 01:21:09 +0000 (UTC) Cc: 29321@debbugs.gnu.org To: Juri Linkov , Live System User Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 04 02:21:05 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 1gJ767-00050K-Ug for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Nov 2018 02:21:04 +0100 Original-Received: from localhost ([::1]:57269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJ78E-0000NS-F5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Nov 2018 21:23:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJ787-0000HL-3s for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 21:23:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJ784-00046R-2O for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 21:23:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57221) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gJ782-00045W-B3 for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 21:23:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gJ782-00071p-6K for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 21:23: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, 04 Nov 2018 01:23: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.154129457726992 (code B ref 29321); Sun, 04 Nov 2018 01:23:02 +0000 Original-Received: (at 29321) by debbugs.gnu.org; 4 Nov 2018 01:22:57 +0000 Original-Received: from localhost ([127.0.0.1]:33246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJ77w-00071I-OD for submit@debbugs.gnu.org; Sat, 03 Nov 2018 21:22:56 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:39198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJ77v-000712-7a for 29321@debbugs.gnu.org; Sat, 03 Nov 2018 21:22:55 -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 wA41EmkA181505; Sun, 4 Nov 2018 01:22:48 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=5rps24+L0dUQ69VcjbOTKLzXsbfKRi5cGMnvhd4dfPc=; b=KKZ2ZaIMRI9mK3oIDQ6dlFT+heq3VxmaCXB+TNooJ0iSAwYMnXWa1DG8Ck+3eVoFtSAb 32zr2/cQ2mD7l0gj1bbrXlxdkE9R6tyz4AekuHMH/ky3kVEeLenQCzS8zEeTxcyRppRu FVStLDDL8V2Rl/wFs4vEKJAwywRvB+GPw2sVGa8HUc6pb4z3r5WVR8vUccjDxu/orz0u +hTEL/eRi5IAiIfOV0yuVC1uyJ3gaElY8IJniP2PljqQyIoQPxN/fhMpqqk1l1w1ePtm t9Tfa8Akg1kLcIvC+nG9s7XaHX3ElpvEHqsNPHh8Tl1SptelGIdtiYXUzgmCDtJWcOl+ zQ== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2nh4aq9wj5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 04 Nov 2018 01:22:48 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id wA41Mkij026171 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 4 Nov 2018 01:22:47 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wA41Mk9o013636; Sun, 4 Nov 2018 01:22:46 GMT In-Reply-To: <87va5d7lc8.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=9066 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-1811040009 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:151997 Archived-At: I haven't looked at your patches for this (goto match #) yet. (I haven't even had a chance to check your last patch for the count yet.) I was thinking about this request, and thinking along these lines: Where we count, push (match # . buffer-position) to an alist variable. The variable would get reinitialized when counting gets reinitialized (e.g. for a new search string, direction change, or startup of Isearch). That alist could be used to go to any given match, either during the current Isearch or later. If they wanted, users could even save copies of the alist for different searches, for subsequent reuse. Just a (naive) thought. Haven't really thought it through. It should be possible to move directly to a given match occurrence, without starting anew from the start of the buffer, no? Feel free to say such an approach would be silly. Or slow or whatever. I was thinking of binding a key during Isearch to move to an occurrence by its match number. `M-g' perhaps. With a numeric prefix arg it would move to that number. With no prefix arg it would prompt for the number (with completion requiring a match against the alist). Just a thought.