|
From: | Kevin Rodgers |
Subject: | Re: doing an Occur in an Occur buffer |
Date: | Fri, 16 Jan 2004 09:44:35 -0700 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Kevin Rodgers wrote:
Dan Jacobson wrote:There should be some protection from doing an Occur in an Occur buffer, trying to whittle down matches, instead blowing it away.(defadvice occur (around occur-buffer-warning activate) (if (and (interactive-p) (equal (buffer-name) "*Occur*") (yes-or-no-p "Running `occur' in the *Occur* buffer will lose \ its contents; proceed anyway?" )) ad-do-it))
Oops, that should be (if (or (not (interactive-p)) (not (equal (buffer-name) "*Occur*")) (yes-or-no-p "Running `occur' in the *Occur* buffer will lose \ its contents; proceed anyway?" )) -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |