GNU bug report logs -
#516
[PATCH] Minor Enhancement for grep.el: auto-input the symbol into minibuffer command line.
Previous Next
Reported by: Kazuo YAGI <kyagi <at> miraclelinux.com>
Date: Wed, 2 Jul 2008 03:55:04 UTC
Severity: wishlist
Tags: patch, wontfix
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
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
[grep.el.patch (text/x-diff, inline)]
--- 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
[before.png (image/png, inline)]
[after.png (image/png, inline)]
This bug report was last modified 6 years and 22 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.