all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "B. T. Raven" <ecinmn@peoplepc.com>
Subject: Re: query-replace
Date: Fri, 05 May 2006 14:55:06 GMT	[thread overview]
Message-ID: <eHJ6g.1270$Ae1.540@newsread1.news.pas.earthlink.net> (raw)
In-Reply-To: 87bqudhsox.fsf@ulm.malte.spiess


"Malte Spiess" <cuts@arcor.de> wrote in message
news:87bqudhsox.fsf@ulm.malte.spiess...
> Pedro Sa da Costa <op132650c@mail.telepac.pt> writes:
>
> > Hi,
> >
> > 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.
>
> The simplest way should be to replace "and " by "or ".
>
> > Thanks,
> > Pedro
>
> Greetings
> Malte

Even simpler is M-%  _and_  RET _or_  (where the underscores represent
explicit spaces typed into the pattern strings.

Ed

  reply	other threads:[~2006-05-05 14:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1453.1146785668.9609.help-gnu-emacs@gnu.org>
2006-05-05  0:15 ` query-replace liyer.vijay
2006-05-05  0:19 ` query-replace Johan Bockgård
2006-05-05  6:49 ` query-replace Malte Spiess
2006-05-05 14:55   ` B. T. Raven [this message]
2006-05-05 17:11     ` query-replace Kevin Rodgers
2006-05-06  0:25       ` query-replace Pedro Sa da Costa
2006-05-06  2:50         ` query-replace Nikos Apostolakis
     [not found]       ` <mailman.1499.1146875164.9609.help-gnu-emacs@gnu.org>
2006-05-06  2:03         ` query-replace Barry Margolin
2006-05-31  2:26           ` query-replace David Combs
     [not found]     ` <mailman.1484.1146849219.9609.help-gnu-emacs@gnu.org>
2006-05-06  0:40       ` query-replace Miles Bader
2006-05-08 17:28         ` query-replace Kevin Rodgers
     [not found]         ` <mailman.1583.1147109410.9609.help-gnu-emacs@gnu.org>
2006-05-31  2:22           ` query-replace David Combs
2006-05-04 23:33 query-replace Pedro Sa da Costa
2006-05-05  0:40 ` query-replace Nikos Apostolakis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='eHJ6g.1270$Ae1.540@newsread1.news.pas.earthlink.net' \
    --to=ecinmn@peoplepc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.