[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find-grep-dired - default directory to start with (SOLVED)
From: |
Michael Heerdegen |
Subject: |
Re: find-grep-dired - default directory to start with (SOLVED) |
Date: |
Tue, 28 Jul 2015 16:18:13 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Dmitry Gutov <dgutov@yandex.ru> writes:
> On 07/28/2015 04:24 PM, Martin Barth wrote:
>
> > Making completion list...
> > `find-grep' is an alias for `grep-find'
> > find-library-name: Can't find library
> > /usr/share/emacs/24.3/lisp/progmodes/grep.el
>
> No idea what's going on there.
Maybe he doesn't have the el sources installed at his OS? Here is the
definition:
--8<---------------cut here---------------start------------->8---
(defun grep-find (command-args)
"Run grep via find, with user-specified args COMMAND-ARGS.
Collect output in a buffer.
While find runs asynchronously, you can use the \\[next-error] command
to find the text that grep hits refer to.
This command uses a special history list for its arguments, so you can
easily repeat a find command."
(interactive
(progn
(grep-compute-defaults)
(if grep-find-command
(list (read-shell-command "Run find (like this): "
grep-find-command 'grep-find-history))
;; No default was set
(read-string
"compile.el: No `grep-find-command' command available. Press RET.")
(list nil))))
(when command-args
(let ((null-device nil)) ; see grep
(grep command-args))))
--8<---------------cut here---------------end--------------->8---
> > so with googling a bit i found out that there is a grep-find-command
> > variable that you can modify
This can not be set directly because it has a :set spec in the
defcustom.
> I wouldn't call this a good solution for your problem. Now you can
> grep in an arbitrary directory at all.
>
> Further, you'll break other commands that use grep-find-command, now
> or in the future.
Indeed.
Michael.
- find-grep-dired - default directory to start with, Martin Barth, 2015/07/28
- Re: find-grep-dired - default directory to start with, Martin Barth, 2015/07/28
- Re: find-grep-dired - default directory to start with, Dmitry Gutov, 2015/07/28
- Re: find-grep-dired - default directory to start with, Martin Barth, 2015/07/28
- Re: find-grep-dired - default directory to start with, Dmitry Gutov, 2015/07/28
- Re: find-grep-dired - default directory to start with (SOLVED), Martin Barth, 2015/07/28
- Re: find-grep-dired - default directory to start with (SOLVED), Dmitry Gutov, 2015/07/28
- Re: find-grep-dired - default directory to start with (SOLVED),
Michael Heerdegen <=
- Re: find-grep-dired - default directory to start with (SOLVED), Martin Barth, 2015/07/28
- RE: find-grep-dired - default directory to start with (SOLVED), Drew Adams, 2015/07/28
- Re: find-grep-dired - default directory to start with (SOLVED), Michael Heerdegen, 2015/07/28
Re: find-grep-dired - default directory to start with, Bobby Casey, 2015/07/28