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#51490: Show an indicator when Emacs is busy somewhere in the Emacs window Date: Wed, 21 Sep 2022 17:01:53 +0300 Message-ID: <834jx0vnam.fsf@gnu.org> References: <83ee8a2pm7.fsf@gnu.org> <87fssq2orj.fsf@gnus.org> <87pmru18xg.fsf@gnus.org> <87lf2i18pv.fsf@gnus.org> <87h7d618j7.fsf@gnus.org> <87bl3e2m1y.fsf@gnus.org> <87pmrtz1y7.fsf@gnus.org> <83pmrt1bsa.fsf@gnu.org> <87y26hxm8a.fsf@gnus.org> <87k0hvviiu.fsf@gnus.org> <87a6iqr8il.fsf@gnus.org> <87r107nmq7.fsf@gnus.org> <83y1uewa55.fsf@gnu.org> <87fsgl7zri.fsf@gnus.org> <83illhueuo.fsf@gnu.org> <87wn9x543a.fsf@gnus.org> <83bkr8vpwy.fsf@gnu.org> <87bkr8am4o.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36463"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefan@marxist.se, 51490@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 21 17:03:26 2022 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 1ob1G1-0009IB-DX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 17:03:25 +0200 Original-Received: from localhost ([::1]:33240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ob1G0-0000pN-Fr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 11:03:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ob0Ic-0006jB-A2 for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 10:02:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ob0Ic-00046L-1Y for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 10:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ob0Ib-0000fd-T6 for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 10:02:01 -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, 21 Sep 2022 14:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51490 X-GNU-PR-Package: emacs Original-Received: via spool by 51490-submit@debbugs.gnu.org id=B51490.16637689122559 (code B ref 51490); Wed, 21 Sep 2022 14:02:01 +0000 Original-Received: (at 51490) by debbugs.gnu.org; 21 Sep 2022 14:01:52 +0000 Original-Received: from localhost ([127.0.0.1]:34878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ob0IS-0000fD-1T for submit@debbugs.gnu.org; Wed, 21 Sep 2022 10:01:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ob0IQ-0000ey-Dg for 51490@debbugs.gnu.org; Wed, 21 Sep 2022 10:01:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59710) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ob0IK-000440-Vo; Wed, 21 Sep 2022 10:01:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=A0v/wioAZ44e04IUU789Ltw1OSmnHiLr0Ze1pBO5c3A=; b=Evo72QKTXOgq y/LmU+tkVOgU7+R6lwl3bPQINRemOxoVjDxTAsnvChAFoCHB7hmGhhS9VnCStzzoq+u/7w7TT2WwG kW20MnkJGCPf5nROyDfoZL+W4n/KLxzwM2STvyiRqP97DZWPWFvWVhxECQQqgFOSZv9vBMu36j5S+ acNYqa2mL8RtpYlVQKiVuHdqKb5Y6zzlo9m8wONte7J1Dd8c5hn/iETn6kMuUardJ3BXmrowRTsaL tlnI93MA8i+1hrpva0fXxWUIyz1ogm2cUqv0as1EI4GOPbkmPnDvKZcBW4giUS5WCoG/Fnps9sycU nR76LTNCpNo50+ax9T3pcw==; Original-Received: from [87.69.77.57] (port=4480 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 1ob0IK-0006gr-2D; Wed, 21 Sep 2022 10:01:44 -0400 In-Reply-To: <87bkr8am4o.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 21 Sep 2022 15:32:39 +0200) 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:243365 Archived-At: > From: Lars Ingebrigtsen > Cc: stefan@marxist.se, 51490@debbugs.gnu.org > Date: Wed, 21 Sep 2022 15:32:39 +0200 > > Eli Zaretskii writes: > > > That's true, but if Lisp cannot run, neither can redisplay. They both > > access the internal Emacs state: buffers, variables, etc. Even to > > replace a single glyph, you'd need to access faces, right? > > I'm not sure that we have to? That's why I wondered whether we could > somehow get away with just altering the glyph matrix... We barely get away with that on TTY frames (that's how TTY menus are implemented). On GUI frames, I don't think it's feasible, not with the code we have now. As for not accessing any Lisp data: do you really believe our users will let us deprive them of even the minimal customization capabilities, like determining the face of this indicator and how it generally looks? I sincerely doubt that. > > Also, poking a single glyph on a GUI frame is unsafe, because no one > > can be sure the new glyph will have the same metrics as the old one. > > I was thinking way more primitive than that -- just altering the > pixelish data on some level. I.e., I wouldn't want to display the > characters | \ etc, but instead some pre-calculated pixel data. We don't write pixels to the glass, we call GUI APIs to do that.