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.devel Subject: Re: "after" variable watchers Date: Thu, 27 May 2021 19:53:24 +0300 Message-ID: <83o8cw86ez.fsf@gnu.org> References: <83lf8du09t.fsf@gnu.org> <3431d752-559a-7d33-e2fb-2d81dd6cc794@gmx.at> <5a8b6fc9-cca8-374c-39f8-3f3d0f83fbca@gmx.at> <83r1i1o6q1.fsf@gnu.org> <263b9804-b1ce-5559-41a3-cdb930bb9223@gmx.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="778"; mail-complaints-to="usenet@ciao.gmane.io" Cc: npostavs@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 27 18:54:59 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lmJHe-000AW7-Mn for ged-emacs-devel@m.gmane-mx.org; Thu, 27 May 2021 18:54:58 +0200 Original-Received: from localhost ([::1]:44872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmJHd-0008WV-Q7 for ged-emacs-devel@m.gmane-mx.org; Thu, 27 May 2021 12:54:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmJG7-00071d-D1 for emacs-devel@gnu.org; Thu, 27 May 2021 12:53:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53826) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmJG4-0007KI-VC; Thu, 27 May 2021 12:53:23 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4975 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmJG4-0006j4-Hh; Thu, 27 May 2021 12:53:20 -0400 In-Reply-To: <263b9804-b1ce-5559-41a3-cdb930bb9223@gmx.at> (message from martin rudalics on Mon, 24 May 2021 10:48:29 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269949 Archived-At: > Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, npostavs@gmail.com > From: martin rudalics > Date: Mon, 24 May 2021 10:48:29 +0200 > > > these values are needed by redisplay, and calculate them only then? > > If a specified value does not fit, we should be able react in different > ways: > > - When an application asks for a window size that is not large enough to > accommodate its decorations, we should be able to reject that request > and signal an error. > > - When the WM shrinks our frame so that a particular window is not large > enough to include all of its decorations, we have to comply and do > something reasonable to make that window display its contents orderly. > > The display engine is not able to distinguish these cases. And even if > it were, how should it react in the first case? I believe the idea was to run the same function(s) you intend to call from the watcher at redisplay time. So if your functions are able to figure this out, so will redisplay.