unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: jadamson@partners.org (Joel J. Adamson)
To: help-gnu-emacs@gnu.org
Subject: Re: How to toggle to buffer previously selected ?
Date: Fri, 08 Feb 2008 09:27:52 -0500	[thread overview]
Message-ID: <8763wz8n94.fsf@W0053328.mgh.harvard.edu> (raw)
In-Reply-To: mailman.7148.1202469108.18990.help-gnu-emacs@gnu.org

"Francis Moreau" <francis.moro@gmail.com> writes:

> On Feb 7, 2008 7:57 PM, Tassilo Horn <tassilo@member.fsf.org> wrote:
>> "Francis Moreau" <francis.moro@gmail.com> writes:
>>
> Hmm it doesn't do exactly what I described: you need to specify a window
> number.

Most often I just enter "M-%%<(- number-of-windows 1> C-x o", however
this is pretty much the same as window-number (which I'm very happy to
find out about).

Another thing I do pretty often is just re-split the windows.  For
example


--------------------
|         |        |
|         |        |
|         |        |
|    1    |   2    |
|         |        |
|         |        |
|         |        |
--------------------

C-x 1 in window 2
--------------------
|                  |
|                  |
|                  |
|    2             |
|                  |
|                  |
|                  |
--------------------

C-x 3 C-x o C-x b #<buffer 1>

--------------------
|         |        |
|         |        |
|         |        |
|    2    |   1    |
|         |        |
|         |        |
|         |        |
--------------------


Window configurations are not sacred and manipulating them is easy.  I
could make this into "exchange-windows" but it's easy enough as it is
(the above takes about 1 second on a slow day).

> It's weird that we can't do this almost trivial windows back and forth
> selection.

Usually I've found that these trivial things are difficult or have not
been implemented because it's better to do something else.  However,
Emacs is all about freedom, so do it!

Joel
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109


  parent reply	other threads:[~2008-02-08 14:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-07 10:45 How to toggle to buffer previously selected ? Francis Moreau
2008-02-07 10:52 ` Bastien Guerry
2008-02-07 10:53 ` Tassilo Horn
2008-02-07 15:46   ` Francis Moreau
2008-02-07 15:58     ` Lennart Borgman (gmail)
2008-02-07 16:18     ` Thierry Volpiatto
2008-02-07 18:57     ` Tassilo Horn
2008-02-08 11:11       ` Francis Moreau
     [not found]       ` <mailman.7148.1202469108.18990.help-gnu-emacs@gnu.org>
2008-02-08 14:27         ` Joel J. Adamson [this message]
2008-02-08 19:08           ` Martin Marcher
     [not found] <mailman.7093.1202381161.18990.help-gnu-emacs@gnu.org>
2008-02-15 13:32 ` Sam Peterson

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8763wz8n94.fsf@W0053328.mgh.harvard.edu \
    --to=jadamson@partners.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).