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: Kevin Rodgers
Subject: Re: custom rgrep with multi dirs
Date: Mon, 16 Jun 2008 23:26:21 -0600
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)

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]