From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#47207: 28.0.50; decode_next_window_args crash Date: Wed, 17 Mar 2021 20:15:00 +0200 Message-ID: <83eegdd4uz.fsf@gnu.org> References: <83r1kddi2r.fsf@gnu.org> <37300876-70d1-c741-8a4d-97d024fdf6cf@gmx.at> <83k0q5dbml.fsf@gnu.org> <64dca5b5-1234-9176-dcfe-b42d6eea2caa@gmx.at> <83h7l9d651.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11702"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 47207@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 17 19:16:40 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMaik-0002sF-Se for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Mar 2021 19:16:38 +0100 Original-Received: from localhost ([::1]:34308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMaij-0003tI-RN for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Mar 2021 14:16:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMaiA-0003rU-Jn for bug-gnu-emacs@gnu.org; Wed, 17 Mar 2021 14:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60647) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMaiA-0001vo-Ak for bug-gnu-emacs@gnu.org; Wed, 17 Mar 2021 14:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMaiA-000630-5O for bug-gnu-emacs@gnu.org; Wed, 17 Mar 2021 14:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Mar 2021 18:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47207 X-GNU-PR-Package: emacs Original-Received: via spool by 47207-submit@debbugs.gnu.org id=B47207.161600491423186 (code B ref 47207); Wed, 17 Mar 2021 18:16:02 +0000 Original-Received: (at 47207) by debbugs.gnu.org; 17 Mar 2021 18:15:14 +0000 Original-Received: from localhost ([127.0.0.1]:43960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMahO-00061t-6p for submit@debbugs.gnu.org; Wed, 17 Mar 2021 14:15:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMahL-00061c-Tz for 47207@debbugs.gnu.org; Wed, 17 Mar 2021 14:15:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40882) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMahF-0001Pa-1n; Wed, 17 Mar 2021 14:15:05 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3737 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lMahD-0001vC-Kq; Wed, 17 Mar 2021 14:15:04 -0400 In-Reply-To: (message from martin rudalics on Wed, 17 Mar 2021 19:01:26 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:202537 Archived-At: > Cc: 47207@debbugs.gnu.org, acm@muc.de > From: martin rudalics > 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.