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

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

Re: How to toggle to buffer previously selected ?


From: Joel J. Adamson
Subject: Re: How to toggle to buffer previously selected ?
Date: Fri, 08 Feb 2008 09:27:52 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"Francis Moreau" <address@hidden> writes:

> On Feb 7, 2008 7:57 PM, Tassilo Horn <address@hidden> wrote:
>> "Francis Moreau" <address@hidden> 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


reply via email to

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