From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christiano Farina Haesbaert Newsgroups: gmane.emacs.help Subject: Re: How to mark and search text in less keystrokes ? Date: Thu, 2 Oct 2008 10:31:06 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5d837dee-5a38-4f09-adac-a8a67dac5d07@m73g2000hsh.googlegroups.com> References: <48E4DA74.80007@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1222969255 17934 80.91.229.12 (2 Oct 2008 17:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2008 17:40:55 +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 Oct 02 19:41:54 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KlSBP-0001LN-Sy for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Oct 2008 19:41:49 +0200 Original-Received: from localhost ([127.0.0.1]:53293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlSAL-0001lq-TW for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Oct 2008 13:40:41 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m73g2000hsh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 201.21.216.91 Original-X-Trace: posting.google.com 1222968666 7444 127.0.0.1 (2 Oct 2008 17:31:06 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 2 Oct 2008 17:31:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000hsh.googlegroups.com; posting-host=201.21.216.91; posting-account=H8WgEAoAAAAmhM7sj9Nt0gGBBvhOiOHG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3, gzip(gfe), gzip(gfe) X-HTTP-Via: 1.1 stargate.datacom:3128 (squid/2.6.STABLE5) Original-Xref: news.stanford.edu gnu.emacs.help:162963 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 Xref: news.gmane.org gmane.emacs.help:58304 Archived-At: On Oct 2, 12:42=A0pm, "Drew Adams" wrote: > > > How can I search for the occurences of the word myfunc at the same > > > buffer AND mark my position where I was, so I can iterate > > > through the results and get back to my original spot at any time. > > One reply: > > > To go back use C-g > > Another reply, saying the same thing: > > > C-g will quit search and return point to where you started > > But C-g takes you back to the beginning only if you never exited Isearch = (e.g. > with RET). > > I thought the OP meant that he exited search and later wanted to get back= to the > search start. For that, just use `C-x C-x'. Actually you are right, that's what I meant, I figured that C-g would only work after my reply, C-x C-x is what I need indeed. Thanks a lot.