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

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

Re: how to switch to last visited buffer in other window ?


From: Dodge, Edwardx K
Subject: Re: how to switch to last visited buffer in other window ?
Date: 27 Jan 2005 13:22:54 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

Ben Barrowes <barrowes@alum.mit.edu> writes:

M-x switch-to-buffer <RETURN>

> This just switches to the next buffer window in some predetermined
> list. I want to go to the last buffer visited before the current
> buffer regardless of how I got there.
> 
> BTW, other-buffer didn't do anything on my emacs, other-window worked,
> though...
> 
> 
> Mathias Dahl wrote:
> > Ben Barrowes <barrowes@alum.mit.edu> writes:
> >
> >>When using emacs, I typically have 5 or so windows open in the same
> >>session.
> >>
> >>Is there any way to save the current buffer name into a register? or
> >>somewhere where I can get it back?
> > I'm not sure I understand exactly what you want, but I use this:
> > (defun switch-prev-buffer ()
> >   (interactive)
> >   (switch-to-buffer (other-buffer)))
> > (global-set-key [f1] 'switch-prev-buffer)
> > Try it and see.
> > /Mathias

-- 
Edward Dodge

   __o   | Contractor: Husdon Mask Design
 _`\(,_  | Phone:      (978) 553-6586
(_)/ (_) | 

reply via email to

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