From: Xavier Maillard Date: Sat, 23 Feb 2008 02:00:02 GMT Subject: Re: [PATCH] git.el: Add a git-grep command Message-ID: <200802230200.m1N202Y7007392@localhost.localdomain> In-Reply-To: <87d4qpgs9y.dlv@maison.homelinux.org> Hi, Here is a modification with inclusion of git-grep only when the grep library is available. +(require 'grep () t) +(when (featurep 'grep) + (defvar git-grep-history nil) + + (defun git-grep (regexp &optional files dir) Why not just do something like this ? (when (require 'grep () t) (defvar ...) (defun git-grep ...)) Regards, Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org