unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Subject: select-window and select-frame
Date: Thu, 24 Oct 2002 19:48:31 -0400	[thread overview]
Message-ID: <200210242348.g9ONmVr17119@rum.cs.yale.edu> (raw)


As some people have noticed, the behavior of select-window was recently
changed so that it doesn't automatically select the window's frame
as well, so that we can now have the situation where the selected-window
is not on the same frame as the selected-frame.

I think this change of behavior in select-window is bad and should
be reverted.  It is incompatible and does break existing code.
Worse yet, when it introduces a bug, it might not be straightforward
to figure out where the bug is, you just end up with strange window
layouts.

Having the ability to distinguish between (selected-frame)
and (window-frame (selected-window)) is OK, but changing the behavior
of select-window is not.
I suggest we either introduce a new function that changes the
selected window without changing the selected frame, or add an argument
to select-window to control the behavior (with the default being
to behave like Emacs-21.1 and before did).


	Stefan


PS: IIRC the reason why the behavior was changed is because it is otherwise
    impossible to cycle through all the visible windows (and selecting
    them one after the other) without changing the active windows
    of other frames (the active window of the current frame can be
    preserved by using save-window-configuration but this only applies
    to the current frame).

             reply	other threads:[~2002-10-24 23:48 UTC|newest]

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

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=200210242348.g9ONmVr17119@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@rum.cs.yale.edu \
    /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).