unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#516: [PATCH] Minor Enhancement for grep.el: auto-input the symbol into minibuffer command line.
@ 2008-07-02  3:47 Kazuo YAGI
  2009-12-05  0:38 ` Juri Linkov
  2019-06-27 18:05 ` bug#516: [PATCH] Minor Enhancement for grep.el: auto-input the symbol " Lars Ingebrigtsen
  0 siblings, 2 replies; 7+ messages in thread
From: Kazuo YAGI @ 2008-07-02  3:47 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

Hi guys,

I'd like to suggest a minor enhancement for "lisp/progmodes/grep.el".

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.

Also attached is the images for showing how to work "grep-find" function
before and after this patch.

I confirmed that it is possible to apply this patch both 22.1 and 22.2 version.

Thanks,
- Kazuo YAGI

[-- Attachment #2: grep.el.patch --]
[-- Type: text/x-diff, Size: 484 bytes --]

--- cur/grep.el	2007-04-08 11:08:48.000000000 +0900
+++ my/grep.el	2008-07-02 11:19:47.000000000 +0900
@@ -566,7 +566,7 @@ easily repeat a find command."
      (grep-compute-defaults)
      (if grep-find-command
 	 (list (read-from-minibuffer "Run find (like this): "
-				     grep-find-command nil nil
+				     (concat grep-find-command (thing-at-point 'symbol)) nil nil
                                      'grep-find-history))
        ;; No default was set
        (read-string

[-- Attachment #3: before.png --]
[-- Type: image/png, Size: 15397 bytes --]

[-- Attachment #4: after.png --]
[-- Type: image/png, Size: 15506 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-06-27 18:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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   ` bug#516: [PATCH] Minor Enhancement for grep.el: auto-input thesymbol " Drew Adams
2009-12-05 19:51     ` 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

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