From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: automatic search/search and replace for a marked string Date: Sat, 22 Aug 2009 23:14:17 +0800 Message-ID: References: <61780ed3-2c6b-4233-8f05-3ec082689bb8@s15g2000yqs.googlegroups.com> <87k50vx6tm.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250954194 26015 80.91.229.12 (22 Aug 2009 15:16:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Aug 2009 15:16:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 22 17:16:28 2009 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 1MesKP-0006b7-HL for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2009 17:16:25 +0200 Original-Received: from localhost ([127.0.0.1]:39607 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MesKO-00016T-PP for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2009 11:16:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MesIa-0000k3-Qn for help-gnu-emacs@gnu.org; Sat, 22 Aug 2009 11:14:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MesIV-0000ib-Tu for help-gnu-emacs@gnu.org; Sat, 22 Aug 2009 11:14:32 -0400 Original-Received: from [199.232.76.173] (port=36036 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MesIV-0000iO-Ls for help-gnu-emacs@gnu.org; Sat, 22 Aug 2009 11:14:27 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.250]:63232) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MesIV-0000KS-9s for help-gnu-emacs@gnu.org; Sat, 22 Aug 2009 11:14:27 -0400 Original-Received: by rv-out-0708.google.com with SMTP id f25so643865rvb.6 for ; Sat, 22 Aug 2009 08:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=3uuFIhkjjNZbSz3C/A1LPLNzX9TatduPl2m95gS5vsg=; b=i0oKtVb4O+SZGlRP7NAGfNN30fDqtsxgaKcre93ziLAOa05MqPNDipJOqZkEBCaEIq QQ95te+YiC2lEmuGIt7+s1YVZAwqeNMet5OzVmyLuFg4x+o4sHWV3zgxyudMAaj9BOjr jfacK2KCRtrSLyCyfJ48RZiWtUpUVXQIF4xW0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=r/blozkJWr4Vie0DhsY46Fz/vBSmLNF1U5KGWqHtBrERifHyYPvqLN7DtSjLGIgXty ci7wFz1nSE4f9r50c12Hu9CFstuLk3stCw+GlDUXLlhqhx9SrqtAsrv4LvujkR4U6nUA BzQ6XK62sh5s1hhLzPfelk3y0LL977k7KCL7g= Original-Received: by 10.141.48.9 with SMTP id a9mr1271778rvk.249.1250954066083; Sat, 22 Aug 2009 08:14:26 -0700 (PDT) Original-Received: from ?192.168.0.5? ([123.121.238.163]) by mx.google.com with ESMTPS id g31sm12132566rvb.56.2009.08.22.08.14.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 22 Aug 2009 08:14:25 -0700 (PDT) In-Reply-To: <87k50vx6tm.fsf@galatea.local> X-Mailer: Apple Mail (2.936) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:67409 Archived-At: On Aug 22, 2009, at 10:27 PM, Pascal J. Bourguignon wrote: > lichtkind writes: > >> Hello, >> >> I have marked a string. Now I want to search for this string in the >> whole text. I know that I can search with C-R or C-S. and type in the >> searchstring. I'm looking for a way, that the marked string is >> automatic the searchstring. This should also work for the other >> search/ search and replace types. > > M-w C-s M-y > > You would normally paste (yank) with C-y, but strangely in the C-s > minibuffer, you have to use M-y. There's also some relevant stuff in Isearch Yanking: (info "(emacs)Isearch Yank")) E > > -- > __Pascal Bourguignon__