emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple displays and ttys


From: Stefan Monnier
Subject: Re: multiple displays and ttys
Date: Sat, 22 Sep 2007 15:38:31 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

>     I suggest the patch below which makes that only the frames on
>     the `current terminal' are considered as visible.

> It seems logical, for most purposes.  But I think it would be a good
> idea to check the calls to the principal primitives that loop over
> windows, to see which calls specify visible windows only, and check if
> this is right for all of them.  It is probably right for most of them;
> what I am not sure of is whether it is right for all of them.

> We might want to make the arguments which traditionally mean "visible
> frames" now mean "visible on this terminal", and create some other way
> to say "visible on any terminal" -- if the latter is really needed.
> But if it isn't needed, we are better off keeping things simple
> and not creating it.

It's very difficult to check each and every use of this since it's called
from several different functions, so I cannot claim that I've done an
exhaustive search.  But I've been using this change for a several years and
grepped several times during this interval to try and find relevant pieces
of code, mostly because they all tend to either forget about multiple-frames
situations (and pass an implicit nil argument to only consider the selected
frame) or use the t argument thinking "if nil is not good enough, then
t ought to do it".

I have never encountered any use that needed to know about "visible, even on
other screens", so I think we can install the change as is, and in case we
ever come across the need for the old meaning of `visible' (and 0), we can
add it at that point.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]