unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Juri Linkov'" <juri@jurta.org>, <516@emacsbugs.donarmstrong.com>
Subject: bug#516: [PATCH] Minor Enhancement for grep.el: auto-input thesymbol into minibuffer command line.
Date: Fri, 4 Dec 2009 20:36:17 -0800	[thread overview]
Message-ID: <AF6FC014CDF1491FBE5CCF731EF6BA5B@us.oracle.com> (raw)
In-Reply-To: <87einaqjxu.fsf@mail.jurta.org>

> > This patch is to let you input the cursor position symbol 
> > automatically into minibuffer command line. I think it makes
> > us easier to use "grep-find" function.
> 
> There is a function `grep-default-command' in grep.el that does this.
> I wonder why it's used in `grep', but not in `grep-find'.  I think
> we should do the same in `grep-find'.

Yes, and as I've suggested before, if the region is active, then its contents,
surrounded by "s, should be the default search string. Example code:
http://www.emacswiki.org/emacs/grep%2b.el






  reply	other threads:[~2009-12-05  4:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-02  3:47 bug#516: [PATCH] Minor Enhancement for grep.el: auto-input the symbol into minibuffer command line Kazuo YAGI
2009-12-05  0:38 ` Juri Linkov
2009-12-05  4:36   ` Drew Adams [this message]
2009-12-05 19:51     ` bug#516: [PATCH] Minor Enhancement for grep.el: auto-input thesymbol " Juri Linkov
2009-12-05 20:28       ` Drew Adams
2009-12-06  0:35         ` Juri Linkov
2019-06-27 18:05 ` bug#516: [PATCH] Minor Enhancement for grep.el: auto-input the symbol " Lars Ingebrigtsen

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=AF6FC014CDF1491FBE5CCF731EF6BA5B@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=516@emacsbugs.donarmstrong.com \
    --cc=juri@jurta.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).