[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: macro help
From: |
Peter Lee |
Subject: |
Re: macro help |
Date: |
Fri, 10 Jan 2003 23:16:12 GMT |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 |
Jesper Harder <harder@myrealbox.com> writes:
> Try something like this:
>
> (defun grep-cur-word ()
> "grep-find on the current word"
> (interactive)
> (unless grep-find-command
> (grep-compute-defaults))
> (grep (concat grep-find-command "\"" (current-word) "\"")))
>
Works great, thanks a lot.
> PS: You posted the same question separately to comp.emacs and
> gnu.emacs.help. Please don't multi-post -- cross-post instead.
Sorry that was a mistake.