From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: 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@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 1456791714 25183 80.91.229.3 (1 Mar 2016 00:21:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2016 00:21:54 +0000 (UTC) Cc: Gideon Stupp , emacs-devel@gnu.org, 10614@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 01 01:21:44 2016 Return-path: Envelope-to: ged-emacs-devel@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 1aaY4O-0008DK-7v for ged-emacs-devel@m.gmane.org; Tue, 01 Mar 2016 01:21:44 +0100 Original-Received: from localhost ([::1]:39907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaY4N-0002wc-B9 for ged-emacs-devel@m.gmane.org; Mon, 29 Feb 2016 19:21:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaY4J-0002wU-M4 for emacs-devel@gnu.org; Mon, 29 Feb 2016 19:21:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaY4I-0003vB-NE for emacs-devel@gnu.org; Mon, 29 Feb 2016 19:21:39 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:36155 helo=homiemail-a19.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaY4I-0003v7-ES for emacs-devel@gnu.org; Mon, 29 Feb 2016 19:21:38 -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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 69.163.253.7 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200833 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)?