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:41:56 +0200 Message-ID: <56A11864.7030905@taydin.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1453398146 32525 80.91.229.3 (21 Jan 2016 17:42:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jan 2016 17:42:26 +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:42:21 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 1aMJFU-0005QQ-R5 for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Jan 2016 18:42:20 +0100 Original-Received: from localhost ([::1]:49162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMJFU-0004Nl-5c for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Jan 2016 12:42:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMJFA-0004J4-Rx for help-gnu-emacs@gnu.org; Thu, 21 Jan 2016 12:42:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMJF7-0003et-K5 for help-gnu-emacs@gnu.org; Thu, 21 Jan 2016 12:42:00 -0500 Original-Received: from bonsai.taydin.org ([213.14.134.124]:39376 helo=mail.taydin.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMJF7-0003eb-Dm for help-gnu-emacs@gnu.org; Thu, 21 Jan 2016 12:41:57 -0500 Original-Received: from [10.2.1.100] (unknown [10.2.1.100]) by mail.taydin.org (Postfix) with ESMTPSA id EEE11440038 for ; Thu, 21 Jan 2016 19:41:55 +0200 (EET) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 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:108806 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