From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: liyer.vijay@gmail.com Newsgroups: gmane.emacs.help Subject: Re: query-replace Date: 4 May 2006 17:15:02 -0700 Organization: http://groups.google.com Message-ID: <1146788102.773943.212800@j73g2000cwa.googlegroups.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1146789702 19163 80.91.229.2 (5 May 2006 00:41:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 May 2006 00:41:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 05 02:41:42 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 1FboO2-0001V7-Hw for geh-help-gnu-emacs@m.gmane.org; Fri, 05 May 2006 02:41:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FboO2-0008KF-0x for geh-help-gnu-emacs@m.gmane.org; Thu, 04 May 2006 20:41:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!j73g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 216.47.129.41 Original-X-Trace: posting.google.com 1146788109 21347 127.0.0.1 (5 May 2006 00:15:09 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 5 May 2006 00:15:09 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060502 Ubuntu/dapper Firefox/1.5.0.2,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: j73g2000cwa.googlegroups.com; posting-host=216.47.129.41; posting-account=dPba2w0AAAAAulCJ1KybNHojA2NW0cbx Original-Xref: shelby.stanford.edu gnu.emacs.help:139222 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 Xref: news.gmane.org gmane.emacs.help:34845 Archived-At: Pedro Sa da Costa wrote: > 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. See C-M-% query-replace-regexp In your specific case, you need: M-x query-replace-regexp \band\b RET or RET > 2 - I know that this isn't latex mailing list, but i can't find any. > Anyone knows a mailing list to latex? comp.text.tex ? Cheers Vijay > Can we quote you on that? A long time ago, someone in the Lisp industry told me it was poor form quote people; it suggests that they lack value. -- Kent M Pitman in comp.lang.lisp