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

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

Re: Grep


From: Kevin Rodgers
Subject: Re: Grep
Date: Mon, 25 Feb 2002 13:03:52 -0700

I wrote:
> Both `M-x grep' and `M-x occur' create an additional buffer, but you can
> prevent them from modifying your window configuration by displaying it in
> a separate frame:
> 
> (setq special-display-buffer-names
>       (cons "*grep*" special-display-buffer-names))
> 
> (setq special-display-buffer-names
>       (cons "*Occur*" special-display-buffer-names))

That second form results in a "Cannot switch buffers in a dedicated window"
error, because occur-mode-goto-occurrence and occur-mode-mouse-goto call
pop-to-buffer.  The first form works because compilation-goto-locus calls
switch-to-buffer-other-frame (instead of switch-to-buffer) when

      (and (window-dedicated-p (selected-window))
           (eq (selected-window) (frame-root-window)))

so I think the occur-mode-* functions need to be modified to handle that
condition.

-- 
Kevin Rodgers <address@hidden>



reply via email to

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