all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Cc: monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org
Subject: Re: select-window and select-frame
Date: Tue, 29 Oct 2002 14:36:08 -0500	[thread overview]
Message-ID: <200210291936.g9TJa8R18412@rum.cs.yale.edu> (raw)
In-Reply-To: E185XK1-0002FB-00@fencepost.gnu.org

>     I think this change of behavior in select-window is bad and should
>     be reverted.  It is incompatible and does break existing code.
> 
> The solution I implemented seems to be bad, but it is not clear what a
> good solution is.
> 
> The original problem is that
> 
>   (save-selected-window
>     (select-window ...)
>     ..)
> 
> can permanently alter the frame-selected-window of a frame.  I tried
> solving it by making select-window not alter the frame-selected-window
> of a frame that isn't selected.  If we don't solve it that way, we need
> to solve it some other way, but what?

The problem is not so much with the "don't alter the frame-selected-window
of a frame that isn't selected" but with the fact that select-window does
not select the window's frame any more.

I think the best solution I can think of is to add an argument
to select-window which controls whether to change the selected-frame
or not (i.e. choose between the old and the new behavior).  That
means that code will need to be changed to fix the original problem,
but it seems that the original problem is not as important
as the problems introduced by the current fix.

Maybe the default could even be controlled by a variable that
could be temporarily bound by save-selected-window, although
I'm not sure if that's a good idea or not.


	Stefan

      parent reply	other threads:[~2002-10-29 19:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-24 23:48 select-window and select-frame Stefan Monnier
2002-10-26 20:14 ` Richard Stallman
2002-10-29 15:43   ` md5i
2002-10-29 19:36   ` Stefan Monnier [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200210291936.g9TJa8R18412@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@rum.cs.yale.edu \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.