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

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

Re: layout-history?


From: Tassilo Horn
Subject: Re: layout-history?
Date: Tue, 28 Jul 2015 10:17:38 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

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



reply via email to

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