From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikos Apostolakis Newsgroups: gmane.emacs.help Subject: Re: query-replace Date: Thu, 04 May 2006 20:40:32 -0400 Message-ID: <87vesl2tj3.fsf@sdf.lonestar.org> References: <445A8F35.7050607@mail.telepac.pt> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146789758 19274 80.91.229.2 (5 May 2006 00:42:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 May 2006 00:42:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 05 02:42:22 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FboOh-0001hw-Iq for geh-help-gnu-emacs@m.gmane.org; Fri, 05 May 2006 02:42:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FboOh-0000AG-3X for geh-help-gnu-emacs@m.gmane.org; Thu, 04 May 2006 20:42:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FboNB-0007w2-CN for help-gnu-emacs@gnu.org; Thu, 04 May 2006 20:40:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FboN9-0007v2-Sm for help-gnu-emacs@gnu.org; Thu, 04 May 2006 20:40:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FboN9-0007uy-NF for help-gnu-emacs@gnu.org; Thu, 04 May 2006 20:40:43 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FboNC-0008Vq-6g for help-gnu-emacs@gnu.org; Thu, 04 May 2006 20:40:46 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FboN6-0001Kx-V6 for help-gnu-emacs@gnu.org; Fri, 05 May 2006 02:40:40 +0200 Original-Received: from user-0cdf430.cable.mindspring.com ([24.215.144.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 May 2006 02:40:40 +0200 Original-Received: from absent by user-0cdf430.cable.mindspring.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 May 2006 02:40:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 22 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: user-0cdf430.cable.mindspring.com User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:NssS4qGRQGPkfddzrOyCqKJF6ng= 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:34847 Archived-At: Pedro Sa da Costa writes: > 1 - > I have this text: "and the android goes away." > I want to replace the word "and" to "or", but i don't want to > replace the word " [and]roid". How should i do this in emacs? The > M-% doesn't work in this case. > Well you could answer "n" when the query is at the word "android", but I guess you don't want to do that ;) You can try "query-replace-regexp" which by default is bound to "C-M-%", for your example: "C-M-% \ RET to RET" > Thanks, > Pedro -- Nikos