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

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

Re: C-x b w/Multiple Windows and Frames


From: Alan Lue
Subject: Re: C-x b w/Multiple Windows and Frames
Date: Sat, 18 Nov 2006 14:44:11 -0800 (PST)

Awesome.  This is exactly what I was looking for.

Thanks,
Alan

--- Kevin Rodgers <ihs_4664@yahoo.com> wrote:

> Alan Lue wrote:
> > Using `C-x b' without an argument displays the
> most
> > recent buffer among those not currently displayed.
>  I
> > find this behavior annoying when I intend to keep
> the
> > same buffer displayed in multiple windows and
> frames;
> > oftentimes I need to briefly visit another file,
> and
> > when I return to a buffer that is already
> displayed in
> > another frames, I need to specify its name
> explicity.
> > 
> > Is there some way I could modify the behavior of
> > `switch-to-buffer' so that invoking `C-x b'
> without an
> > argument will bring me back to the most recent
> buffer,
> > whether or not it is currently displayed in
> another
> > window/frame?
> 
> Try this:
> 
> (defadvice switch-to-buffer (before
> interactive-default-buffer activate)
>    "Consider buffers that are already visible as the
> default BUFFER."
>    (interactive (list (read-buffer "Switch to
> buffer: "
>                                 (other-buffer (current-buffer) t)))))
> 
> -- 
> Kevin
> 
> 
> 
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
> 



 
____________________________________________________________________________________
Sponsored Link

Mortgage rates near 39yr lows. 
$510k for $1,698/mo. Calculate new payment! 
www.LowerMyBills.com/lre




reply via email to

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