unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: martin rudalics <rudalics@gmx.at>
Cc: Stephen Leake <stephen_leake@stephe-leake.org>, emacs-devel@gnu.org
Subject: Re: managing windows in two frames
Date: Sun, 08 Sep 2013 13:55:44 -0400	[thread overview]
Message-ID: <jwvob832odh.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <522AF3D8.8010303@gmx.at> (martin rudalics's message of "Sat, 07 Sep 2013 11:37:28 +0200")

>> Ah, indeed it's simpler.  It does have the disadvantage of relying on an
>> obsolete variable, tho.
> I thought Jorge wanted something that works with existing (and elder)
> Emacsen.

Both needs exist: to work in older Emacsen, and to be "clean and
simple".  I care more about the second one.

>> Maybe we should define a new macro `with-inhibit-window-changes' which
>> could replace save-window-excursion for those uses (it might use
>> save-window-excursion internally, just in case, but would also try to
>> prevent creation of frames and window changes in other frames).
> We could easily do that but for one issue: Some buffer display calls
> expect that neither snow nor rain will prevent Emacs from producing a
> suitable window (compare bug#15213).

I know, which is why with-inhibit-window-changes would probably not
really prevent changing windows; instead it would work hard to limit
window changes to those that can be fully reverted by
save-window-excursion.

> Also, a user's expectation that code following
>   (pop-to-buffer (generate-new-buffer " *temp*"))
> operates on the new buffer is not entirely silly given our current
> understanding of `pop-to-buffer'.

Indeed.  After pop-to-buffer it should "always" be the case that
current-buffer is the specified buffer and selected-window displays
that buffer.


        Stefan



  reply	other threads:[~2013-09-08 17:55 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-03  9:11 managing windows in two frames Stephen Leake
2013-09-03 12:52 ` martin rudalics
2013-09-04 18:16   ` Stephen Leake
2013-09-04 18:24     ` Stephen Leake
2013-09-04 19:33     ` Stefan Monnier
2013-09-04 21:22       ` Stephen Leake
2013-09-06 10:53         ` martin rudalics
2013-09-07  8:49           ` Stephen Leake
2013-09-07  9:37             ` martin rudalics
2013-09-07 13:19               ` Stephen Leake
2013-09-08  7:56                 ` martin rudalics
2013-09-04 21:33       ` Drew Adams
2013-09-06 10:52       ` martin rudalics
2013-09-06 13:22         ` Stefan Monnier
2013-09-06 10:52     ` martin rudalics
2013-09-07  8:56       ` Stephen Leake
2013-09-07  9:37         ` martin rudalics
2013-09-07 13:29           ` Stephen Leake
2013-09-03 13:59 ` Stefan Monnier
2013-09-03 14:15   ` martin rudalics
2013-09-03 14:30     ` Stefan Monnier
2013-09-03 16:23       ` martin rudalics
2013-09-03 20:34         ` Stefan Monnier
2013-09-04  6:25           ` martin rudalics
2013-09-04 13:24             ` Stefan Monnier
2013-09-04 15:04               ` martin rudalics
2013-09-04 17:44                 ` Stefan Monnier
2013-09-06 10:53                   ` martin rudalics
2013-09-06 13:44                     ` Stefan Monnier
2013-09-06 17:14                       ` martin rudalics
2013-09-06 19:00                         ` Stefan Monnier
2013-09-07  9:37                           ` martin rudalics
2013-09-08 17:55                             ` Stefan Monnier [this message]
2013-09-09  8:10                               ` martin rudalics
2013-09-09 14:05                                 ` Stefan Monnier
2013-09-04 18:19   ` Stephen Leake

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=jwvob832odh.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    --cc=stephen_leake@stephe-leake.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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