From: Ben Barrowes <barrowes@alum.mit.edu>
Subject: Re: how to switch to last visited buffer in other window ?
Date: Thu, 27 Jan 2005 11:34:59 -0700 [thread overview]
Message-ID: <41f93453$1_5@news3.es.net> (raw)
In-Reply-To: <ihqhdl2lojl.fsf@hdhc0047.hd.intel.com>
switch-to-buffer isn't sufficient. When switch-to-buffer is called, it
defaults to taking you to currently undusplayed buffer, or you can
scroll through buffer-name-history, which doesn't always list the last
buffer you visited last.
I want to visit the last buffer I visited before the present one in the
other buffer's window. Problem is I can't seem to find out a way to
switch back when I don't know the name of the buffer I came from.
Ben
Dodge, Edwardx K wrote:
> 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
>
>
next prev parent reply other threads:[~2005-01-27 18:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-26 22:24 how to switch to last visited buffer in other window ? Ben Barrowes
2005-01-27 12:09 ` Mathias Dahl
2005-01-27 14:13 ` Ben Barrowes
2005-01-27 16:25 ` Peter Dyballa
2005-01-27 18:22 ` Dodge, Edwardx K
2005-01-27 18:34 ` Ben Barrowes [this message]
2005-01-27 18:49 ` Dodge, Edwardx K
2005-01-27 19:17 ` Ben Barrowes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='41f93453$1_5@news3.es.net' \
--to=barrowes@alum.mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.