emacs-devel
[Top][All Lists]
Advanced

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

Re: *Occur in buf*?


From: Benjamin Rutt
Subject: Re: *Occur in buf*?
Date: Fri, 26 Jul 2002 13:53:54 -0400
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (sparc-sun-solaris2.8)

Richard Stallman <address@hidden> writes:

>     IWBNI M-x occur created an *Occur in buf* buffer so that I wouldn't have
>     to do this, rather than *Occur*.
>
> I think that for most users this would create unnecessary clutter.
> Perhaps it is best if you simply do this as a customization.

Here is one such easy customization:

;; occur - make it work on occur buffers
(defadvice occur (before occur-uniquify activate)
  "Make occur work in *Occur* buffers."
  (if (string-match "\*Occur\*" (buffer-name)) (rename-uniquely)))
-- 
Benjamin



reply via email to

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