unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* layout-history?
@ 2015-07-28  7:30 Andreas Röhler
  2015-07-28  8:17 ` layout-history? Tassilo Horn
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Röhler @ 2015-07-28  7:30 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

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.

However, that would re-store point/focus also, which might not be wanted 
here.

Is there a way to restore windows-displayed from a certain geometry?
Or even walk trough previous geometries?

Thanks,

Andreas






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: layout-history?
  2015-07-28  7:30 layout-history? Andreas Röhler
@ 2015-07-28  8:17 ` Tassilo Horn
  2015-07-28  8:40   ` layout-history? Andreas Röhler
  0 siblings, 1 reply; 3+ messages in thread
From: Tassilo Horn @ 2015-07-28  8:17 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: layout-history?
  2015-07-28  8:17 ` layout-history? Tassilo Horn
@ 2015-07-28  8:40   ` Andreas Röhler
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Röhler @ 2015-07-28  8:40 UTC (permalink / raw)
  To: help-gnu-emacs


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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-28  8:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-28  7:30 layout-history? Andreas Röhler
2015-07-28  8:17 ` layout-history? Tassilo Horn
2015-07-28  8:40   ` layout-history? Andreas Röhler

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).