[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: repeating a search a certain number of times

From: Marcin Borkowski
Subject: Re: repeating a search a certain number of times
Date: Thu, 21 Jan 2016 23:14:16 +0100
User-agent: mu4e 0.9.13; emacs

On 2016-01-21, at 18:41, Timur Aydin <address@hidden> wrote:

> 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 <find>, 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?

Others will probably chime in, and I don't have the time to write that
function for you, but you might want to read these sections in the Elisp

(info "(emacs)Rebinding")
(info "(elisp)Using interactive")

(If you're reading this message in Emacs, place the point after any of
the above expressions, and press C-x C-e.)


Marcin Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

reply via email to

[Prev in Thread] Current Thread [Next in Thread]