From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: custom rgrep with multi dirs
Date: Mon, 16 Jun 2008 23:50:38 -0700 (PDT) [thread overview]
Message-ID: <ffd20961-64d2-4756-baaf-5a453abefeeb@k37g2000hsf.googlegroups.com> (raw)
In-Reply-To: mailman.13435.1213680387.18990.help-gnu-emacs@gnu.org
> > I guess i need the (require 'grep) but that didn't help. Any hints?
>
> Just a guess: call grep-compute-defaults in your interactive form,
> just like all the commands defined in grep.el.
thank you. That's it.
Xah
On Jun 16, 10:26 pm, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:
> Xah wrote:
> > I have this function:
>
> > (defun xah-find-word-usage (myword)
> > "Grep a dir for a word's usage."
> > (interactive "sWord to search: ")
> > ;;(require 'grep)
> > (rgrep myword "*\\.html" "~/web/p")
> > )
>
> > However, if i call if for the first time, i get
> > “grep-expand-template: Wrong type argument: stringp, nil”.
>
> > But if i have used rgrep before in this session, then it works.
>
> > I guess i need the (require 'grep) but that didn't help. Any hints?
>
> Just a guess: call grep-compute-defaults in your interactive form,
> just like all the commands defined in grep.el.
>
> --
> Kevin Rodgers
> Denver, Colorado, USA
prev parent reply other threads:[~2008-06-17 6:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-14 9:31 custom rgrep with multi dirs Xah
2008-06-16 15:26 ` Xah
2008-06-17 5:26 ` Kevin Rodgers
[not found] ` <mailman.13435.1213680387.18990.help-gnu-emacs@gnu.org>
2008-06-17 6:50 ` Xah [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ffd20961-64d2-4756-baaf-5a453abefeeb@k37g2000hsf.googlegroups.com \
--to=xahlee@gmail.com \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.