From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Remembering a regexp across searches Date: Wed, 02 Feb 2005 11:25:23 +0100 Organization: Organization?!? Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1107341490 12251 80.91.229.2 (2 Feb 2005 10:51:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Feb 2005 10:51:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 02 11:51:30 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CwI6X-0003pG-JD for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Feb 2005 11:51:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwIJb-0007xO-Sx for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Feb 2005 06:04:56 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-X-Trace: individual.net cN4cAlhn74MHm8HHkZbPjAjJTltVQqsdNM14rS7+PAtvXq6z+q X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:ax7vdoHD9Rl+Zx2nG77m3DJ6qPM= Original-Xref: shelby.stanford.edu gnu.emacs.help:128334 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:23843 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23843 Michael Preminger writes: > Maybe something I would expect to find in the FAQ, but to no avail: > > I need to do repeating incremental searches of regular expression. > > when I find what I was looking for - I need to do some changes > (manually), and then search for the next occurrence corresponding to > the same regexp. > > Sometimes the regexps are complicated, and retyping them in the > Iserach-buffer is tedious. > > How do I avoid this re-typing? Is there a way to make emacs "remember" > a regexp and re-use it in a handy way? Just type another C-s and you are set. So if you did your first search with C-u C-s something then C-u C-s C-s will repeat the search. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum