bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#47207: 28.0.50; decode_next_window_args crash


From: Eli Zaretskii
Subject: bug#47207: 28.0.50; decode_next_window_args crash
Date: Wed, 17 Mar 2021 20:15:00 +0200

> Cc: 47207@debbugs.gnu.org, acm@muc.de
> From: martin rudalics <rudalics@gmx.at>
> Date: Wed, 17 Mar 2021 19:01:26 +0100
> 
>  >> How would we handle that suggestion in say `next-window-any-frame'?
>  >
>  > Skip tooltip frames, I guess.
> 
> But how if we don't want to do it in `next-frame'?

I don't think I understand what's bothering you.  The idea is simple:
if you get a frame that's a tooltip frame, ask for another one.

> Checking whether the returned frame is a tooltip frame in
> `next-window-any-frame' means any Lisp code that does not do
> something similar can crash Emacs.

Crash how?

In any case, the idea that something applications might forget to do
would mean we must push the checks to lower levels sounds wrong to me.
Lower levels should be free from application-level constraints, so
that if someone wants to write code which breaks those constraints,
he/she could do that.  That those who do it must know what they are
doing is a truism; restricting legitimate uses for fear of
illegitimate ones is punishing the innocent for fear of the evil --
that's the problem with TSA, for example.





reply via email to

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