all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: acomber <deedexy@gmail.com>
Cc: Help-gnu-emacs@gnu.org
Subject: Re: Use text in emacs buffer to populate command window
Date: Tue, 19 Feb 2013 00:07:51 +0530	[thread overview]
Message-ID: <87a9r1lb7k.fsf@gmail.com> (raw)
In-Reply-To: <1361211922783-278645.post@n5.nabble.com> (acomber's message of "Mon, 18 Feb 2013 10:25:22 -0800 (PST)")

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	other threads:[~2013-02-18 18:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-18 18:25 Use text in emacs buffer to populate command window acomber
2013-02-18 18:37 ` Jambunathan K [this message]
2013-02-18 18:43   ` Jambunathan K
2013-02-18 18:47   ` acomber
2013-02-18 18:54     ` Drew Adams
2013-02-18 18:41 ` Drew Adams

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=87a9r1lb7k.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=deedexy@gmail.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.