From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#29321: Isearch hit count Date: Mon, 05 Nov 2018 00:50:33 +0200 Organization: LINKOV.NET Message-ID: <87tvkwe9ty.fsf@mail.linkov.net> 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 X-Trace: blaine.gmane.org 1541372416 19915 195.159.176.226 (4 Nov 2018 23:00:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Nov 2018 23:00:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Live System User , 29321@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 05 00:00:12 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 1gJRNL-00053i-E0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Nov 2018 00:00:11 +0100 Original-Received: from localhost ([::1]:60513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJRPR-00089U-UD for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Nov 2018 18:02:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJRPH-00089K-Hj for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2018 18:02:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJRPD-0006r0-EB for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2018 18:02:11 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58370) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gJRPA-0006pz-AM for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2018 18:02:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gJRP8-0002sf-5h for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2018 18:02:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Nov 2018 23:02: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.154137248511009 (code B ref 29321); Sun, 04 Nov 2018 23:02:02 +0000 Original-Received: (at 29321) by debbugs.gnu.org; 4 Nov 2018 23:01:25 +0000 Original-Received: from localhost ([127.0.0.1]:34394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJROX-0002rQ-6J for submit@debbugs.gnu.org; Sun, 04 Nov 2018 18:01:25 -0500 Original-Received: from otter.birch.relay.mailchannels.net ([23.83.209.139]:3329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJROR-0002rB-5J for 29321@debbugs.gnu.org; Sun, 04 Nov 2018 18:01:19 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 48F9A68281C; Sun, 4 Nov 2018 23:01:17 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a60.g.dreamhost.com (unknown [100.96.20.98]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id F1944682C2A; Sun, 4 Nov 2018 23:01:16 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a60.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sun, 04 Nov 2018 23:01:17 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Trade-Troubled: 24eb616b0501751d_1541372477155_1044519772 X-MC-Loop-Signature: 1541372477155:2280794993 X-MC-Ingress-Time: 1541372477154 Original-Received: from pdx1-sub0-mail-a60.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a60.g.dreamhost.com (Postfix) with ESMTP id BA10F80286; Sun, 4 Nov 2018 15:01:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=5m1aqL3ST8E8kkNXa5mJsauOWj4=; b= GtPODddTPLr/QIxDvl6UbT1MB7aW5j/1GLXGI9nINuDJf5NUIKSVGtvpuweTD4nx wtffVhJvJjYdXIgfGYa3I8lTFXeg7QKlU0qX1YBaItaDj2PtOM2KRgGZDM1ewhr8 0yLBbQzmFu2bWeyCD6VyAmIhCLUbsy0GhwzHsXG5Fvo= Original-Received: from mail.jurta.org (m91-129-101-157.cust.tele2.ee [91.129.101.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a60.g.dreamhost.com (Postfix) with ESMTPSA id 332D480287; Sun, 4 Nov 2018 15:01:14 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a60 In-Reply-To: (Drew Adams's message of "Sat, 3 Nov 2018 18:22:45 -0700 (PDT)") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrjeeggddugecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtuddrudehjeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutddurdduheejpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepughrvgifrdgruggrmhhssehorhgrtghlvgdrtghomhenucevlhhushhtvghrufhiiigvpedt 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:152035 Archived-At: > 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. A mapping from search parameters (search string, direction, etc.) to the matches and buffer-positions invalidates too quickly. Even using point-markers doesn't help when a user deletes a large region with former matches. > 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). I understand that in addition to relative counting like 'C-u 42 C-s' would do, you propose absolute counting like 'C-s M-g 42 RET'. But a question: shouldn't 'M-g' exit the search since it's a global prefix key.