From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Timur Aydin Newsgroups: gmane.emacs.help Subject: repeating a search a certain number of times Date: Thu, 21 Jan 2016 19:36:03 +0200 Message-ID: <56A11703.8050200@taydin.org> References: <87lh7n96er.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1453397788 26859 80.91.229.3 (21 Jan 2016 17:36:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jan 2016 17:36:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 21 18:36:24 2016 Return-path: Envelope-to: geh-help-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 1aMJ9i-0002sI-Aq for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Jan 2016 18:36:22 +0100 Original-Received: from localhost ([::1]:49107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMJ9e-0000ks-IY for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Jan 2016 12:36:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMJ9U-0000dt-2w for help-gnu-emacs@gnu.org; Thu, 21 Jan 2016 12:36:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMJ9Q-00026u-T0 for help-gnu-emacs@gnu.org; Thu, 21 Jan 2016 12:36:08 -0500 Original-Received: from bonsai.taydin.org ([213.14.134.124]:39374 helo=mail.taydin.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMJ9Q-00026q-LL for help-gnu-emacs@gnu.org; Thu, 21 Jan 2016 12:36:04 -0500 Original-Received: from [10.2.1.100] (unknown [10.2.1.100]) by mail.taydin.org (Postfix) with ESMTPSA id F06EC440038 for ; Thu, 21 Jan 2016 19:36:02 +0200 (EET) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 213.14.134.124 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108805 Archived-At: Hello, I have been looking for a way to repeat a search a certain number of times, and from the documentation i have found the search-forward function to do that: (search-forward "something" nil nil 5) But unfortunately this isn't bound to a key. The docstring says it is bound to , but I don't know what that means. It isn't a lisp function. I thought maybe it is a menu item, but can't see that in the menu either. So my question is, how can I bind this to a key so that when I press it, it asks me for the string, then the repetition count and then goes ahead and finds it? -- Timur