help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to search a whole word in emacs?


From: Eric Hanchrow
Subject: Re: How to search a whole word in emacs?
Date: Fri, 26 Oct 2007 14:08:24 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

    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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]