help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom rgrep with multi dirs


From: Xah
Subject: Re: custom rgrep with multi dirs
Date: Mon, 16 Jun 2008 23:50:38 -0700 (PDT)
User-agent: G2/1.0

> > 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 <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]