From: Eric Hanchrow <offby1@blarg.net>
To: help-gnu-emacs@gnu.org
Subject: Re: How to search a whole word in emacs?
Date: Fri, 26 Oct 2007 14:08:24 -0700 [thread overview]
Message-ID: <87ejfhtwhj.fsf@offby1.atm01.sea.blarg.net> (raw)
In-Reply-To: 1193422116.266878.76080@z24g2000prh.googlegroups.com
I need to search a whole word in a big file. For example, I need to
search "Machine" but I don't need to know anything like
"machine_state", "running_machine_state" etc. The search shall be case
sensitive.
I've tried C-s ret C-w Machine but it returns every word with
"Machine" in it. I just need the exact word.
You want either
M-C-s \ b M a c h i n e \ b
or perhaps
M-x word-search-forward RET Machine RET
--
Asking the Iraqi people to assume Saddam's debts
is rather like telling a man who has been shot in the head
that he has to pay for the bullet.
-- James Surowiecki
next prev parent reply other threads:[~2007-10-26 21:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-26 18:08 How to search a whole word in emacs? webinfinite
2007-10-26 21:08 ` Amy Templeton
2007-10-26 21:08 ` Eric Hanchrow [this message]
2007-10-26 21:54 ` David Hansen
2007-10-27 10:10 ` Dieter Wilhelm
2007-10-26 22:05 ` Drew Adams
2007-10-27 9:45 ` Johan Bockgård
[not found] ` <mailman.2615.1193432708.18990.help-gnu-emacs@gnu.org>
2007-11-23 0:44 ` David Combs
2007-11-23 8:26 ` Xah Lee
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ejfhtwhj.fsf@offby1.atm01.sea.blarg.net \
--to=offby1@blarg.net \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).