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

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

Re: layout-history?


From: Andreas Röhler
Subject: Re: layout-history?
Date: Tue, 28 Jul 2015 10:40:32 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


Am 28.07.2015 um 10:17 schrieb Tassilo Horn:
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

Hi Andreas,

when working with a two- or three-buffer layout, coming back from
just-one-window displayed, the orginal layout is lost.

One way would be to register window-configuration.
Yes, either manually or using `winner-mode'.

However, that would re-store point/focus also, which might not be
wanted here.
You mean, if the buffer of the current single window is part of the
window config you want to switch to, then point should stay where it is
right now and the window holding that buffer in the window config should
be selected?

I think that should be doable pretty easily when using `winner-mode' by
using an around advice on `winner-set' which checks the selected
window's buffer and its point, then lets `winner-set' to its workings,
and then selects the window of the old buffer and updates point in case
the old buffer is shown by the new window configuration.

Bye,
Tassilo

That's the direction, thanks pointing at.



reply via email to

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