unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: layout-history?
Date: Tue, 28 Jul 2015 10:17:38 +0200	[thread overview]
Message-ID: <87oaiw4rx9.fsf@gnu.org> (raw)
In-Reply-To: <55B72F8E.8020100@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6h\?\= \=\?utf-8\?Q\?ler\=22's\?\= message of "Tue, 28 Jul 2015 09:30:22 +0200")

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	other threads:[~2015-07-28  8:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-28  7:30 layout-history? Andreas Röhler
2015-07-28  8:17 ` Tassilo Horn [this message]
2015-07-28  8:40   ` layout-history? Andreas Röhler

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=87oaiw4rx9.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=andreas.roehler@easy-emacs.de \
    --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).