unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Martin Barth <martin@senfdax.de>
To: help-gnu-emacs@gnu.org
Subject: Re: find-grep-dired - default directory to start with (SOLVED)
Date: Tue, 28 Jul 2015 17:54:31 +0200	[thread overview]
Message-ID: <55B7A5B7.7090702@senfdax.de> (raw)
In-Reply-To: <878ua0icwq.fsf@web.de>



Am 28.07.2015 um 16:18 schrieb Michael Heerdegen:
> 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:
i've got only the .elc file there.

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


according to the source, isn't this considered to be changed, in order
to apply "customization"?

(defcustom grep-find-command nil
  "The default find command for \\[grep-find].
In interactive usage, the actual value of this variable is set up
by `grep-compute-defaults'; to change the default value, use
Customize or call the function `grep-apply-setting'."
  :type '(choice string
		 (const :tag "Not Set" nil))
  :set 'grep-apply-setting
  :group 'grep)


If not, then i guess there is no easy way to apply a "wrapper" since the find statement always contains the "find ." instead of what i want to achive a "find /some/where/else". So, copy paste the grep-find function and reimplement it? i am not sure if this is good since changes to grep.el will never reflect in my change again. my lisp skills are to lousy for that anyways.





  reply	other threads:[~2015-07-28 15:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-28 12:25 find-grep-dired - default directory to start with Martin Barth
2015-07-28 12:38 ` Martin Barth
2015-07-28 12:43 ` Dmitry Gutov
2015-07-28 13:05   ` Martin Barth
2015-07-28 13:08     ` Dmitry Gutov
2015-07-28 13:24       ` find-grep-dired - default directory to start with (SOLVED) Martin Barth
2015-07-28 13:34         ` Dmitry Gutov
2015-07-28 14:18           ` Michael Heerdegen
2015-07-28 15:54             ` Martin Barth [this message]
2015-07-28 16:01             ` Drew Adams
2015-07-28 16:28               ` Michael Heerdegen
2015-07-28 14:27   ` find-grep-dired - default directory to start with Bobby Casey
2015-07-28 14:30     ` Dmitry Gutov

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=55B7A5B7.7090702@senfdax.de \
    --to=martin@senfdax.de \
    --cc=help-gnu-emacs@gnu.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.
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).