From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#10614: [EXPERIMENTAL PATCH] Extending Isearch-repeat-forward/backward to support a prefix argument following suggesion by Juri Linkov Date: Tue, 01 Mar 2016 01:44:52 +0200 Organization: LINKOV.NET Message-ID: <87k2lnytcb.fsf__33876.8521477052$1456791749$gmane$org@mail.linkov.net> References: <8737shxr1k.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456791749 25971 80.91.229.3 (1 Mar 2016 00:22:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2016 00:22:29 +0000 (UTC) Cc: 10614@debbugs.gnu.org, Gideon Stupp , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 01 01:22:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aaY4q-0008SX-5z for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Mar 2016 01:22:12 +0100 Original-Received: from localhost ([::1]:39913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaY4p-0003fX-Ju for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 19:22:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaY4h-0003XL-K4 for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 19:22:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaY4g-00049B-I5 for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 19:22:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaY4g-000492-FO for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 19:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aaY4g-0006e9-Bj for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 19:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Mar 2016 00:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10614 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 10614-submit@debbugs.gnu.org id=B10614.145679170325518 (code B ref 10614); Tue, 01 Mar 2016 00:22:02 +0000 Original-Received: (at 10614) by debbugs.gnu.org; 1 Mar 2016 00:21:43 +0000 Original-Received: from localhost ([127.0.0.1]:54335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaY4N-0006dW-3Y for submit@debbugs.gnu.org; Mon, 29 Feb 2016 19:21:43 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:48569 helo=homiemail-a19.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaY4L-0006dG-6l for 10614@debbugs.gnu.org; Mon, 29 Feb 2016 19:21:41 -0500 Original-Received: from homiemail-a19.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a19.g.dreamhost.com (Postfix) with ESMTP id E0397604069; Mon, 29 Feb 2016 16:21:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jurta.org; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version: content-type; s=jurta.org; bh=kQ7Z3oviJNiwoc728d54+5bVQ7Q=; b=f7 79+eXp3i+0wBaaS1zT9h4QlGns3k+AMRqOVaZzqjTVG7A5WI6xR7ftsU6AJZq+4x d2GGJQNFfHTCFpUqMRElQaGPcrkmMNFerzkz7HKSzx2vLfWFLAj4nxanzID/TRAw 1/54juHWACUWKjic8Yq9pI9WVdLFbNXOgy5I0ZUa0= Original-Received: from localhost.linkov.net (62.65.219.72.cable.starman.ee [62.65.219.72]) (Authenticated sender: jurta@jurta.org) by homiemail-a19.g.dreamhost.com (Postfix) with ESMTPA id A29C3604061; Mon, 29 Feb 2016 16:21:36 -0800 (PST) In-Reply-To: <8737shxr1k.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 25 Feb 2016 16:36:15 +1030") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (x86_64-pc-linux-gnu) 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114183 Archived-At: >> This experimental patch implements a suggestion by Juri Linkov to >> extend isearch-repeat-forward/backward to support a prefix >> argument. Instead of pressing C-s / C-r multiple times it is possible >> with this patch to enter a prefix argument which runs the command >> multiple times for you. If a negative argument is given for >> isearch-repeat-forward then isearch-repeat-backward is run and visa >> versa. Visual hints are added to the matched strings to help figure >> out what argument should be given. > > Hm... I guess I can see why this would be attractive, but I'm a bit > sceptical. Numeric prefixes make sense in many instances, but I would > myself never this "hm, I must repeat the search three times"... I would > just hit `C-s' four times instead. That seems faster and more > convenient... What if you need to visit a Nth occurrence where N is larger than the number of keystrokes with numeric prefixes (while using isearch for navigation)?