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

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

Re: Use text in emacs buffer to populate command window


From: Jambunathan K
Subject: Re: Use text in emacs buffer to populate command window
Date: Tue, 19 Feb 2013 00:07:51 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

acomber <deedexy@gmail.com> writes:

> eg I use m-x highlight-regexp I want to also grab the
> text under the cursor.  How do I do that?  

Have you tried M-n when you see the prompt?

This is some command most don't know about or don't use when
prompted. (I know I shouldn't be talking for others) When Emacs prompts
for something in the minibuffer, it almost always provides NOT A SINGLE
DEFAULT BUT MULTIPLE DEFAULTS.  And you can run through the other
defaults using M-n.

When I highlight, I almost always highlight the "thing" at point.
highlight-regepx provides (car regexp-history).  This option baffles and
and I cannot simply relate to how this default could be a useful
default.  

I would like to change this behaviour.  This is one of my pet peeves.
It is in my list of things to do wrt highlight-regexp.  In Emacs 24.4,
there is a way to highlight symbol at point in a easy way.  This most
likely suffices for highlighting the word at point also.  May be I will
add word at point to the defaults.
-- 



reply via email to

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