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

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

Re: M-x grep should ask to write files first, like M-x compile


From: Kevin Rodgers
Subject: Re: M-x grep should ask to write files first, like M-x compile
Date: Thu, 27 Dec 2001 15:34:05 -0700

Dan Jacobson wrote:
> 
> M-x grep should ask the user if he wants to write each outstanding
> file, just like its sister command M-x compile does.

<plug>igrep.el does this</plug>.

If you want `M-x grep' to do it, just ask:

(defadvice grep (before save-some-buffers activate)
  "Save some modified file-visiting buffers.  Asks user about each one."
  (save-some-buffers))

-- 
Kevin Rodgers <kevinr@ihs.com>



reply via email to

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