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

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

Re: How do I highlight word at point?


From: Giorgos Keramidas
Subject: Re: How do I highlight word at point?
Date: Sun, 19 Oct 2008 18:14:00 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix)

On Sun, 19 Oct 2008 14:09:09 +0200, Francis Moreau <address@hidden> wrote:
> Giorgos Keramidas <address@hidden> writes:
>> Please include the full question in the body of the post too in
>> future posts.  It makes things much easier to read in some
>> environments :-)
>
> eh ? what kind of environment are you using ?
> It looks like it's high time to update ;)

It should be easy to find out: Gnus.  It's shown in the User-Agent
header of my posts, and I'm actually quite fond of it.

I wasn't referring to *my* environment, which is mostly `ok' for all my
email and news needs.  There are news readers that go out of their way
to _hide_ the header though.  It's a very common form of courtesy to
spare the reader the trouble of going back and forth, by typing fully
legible, complete sentences in the body of email & news messages.

>> I think what you asked may be done by typing `M-b M-@'.
>
> M-b is bind to 'backward-word'.
>
> Which function 'M-b M-@' is bind in your "special" environment ?

M-b is backward-word, but I should have written a more clear explanation
of what I was aiming for.

Yes, `M-@' is bound to `mark-word'.  The important detail is that the
`mark-word' function selects the part of the word that is _after_ the
current location of the point.

So if the current `point' is already at the start of a word, then `M-@'
will do the right thing.

When the point is in the middle of a word, however, you can move the
point to the start of the current word with `M-b' and then use `M-@' to
mark the full word.




reply via email to

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