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: Thu, 22 Sep 2022 17:03:41 +0300 Message-ID: <831qs3sdz6.fsf@gnu.org> References: <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> <834jx0vnam.fsf@gnu.org> <2d1b683c22a3585f038d@heytings.org> <83sfkku29t.fsf@gnu.org> <2d1b683c22d98c9cabd3@heytings.org> <83edw3udmh.fsf@gnu.org> <87pmfn7k7i.fsf@gnus.org> <83fsgjsi55.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39707"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, stefan@marxist.se, 51490@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 22 17:32:43 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 1obOBu-000ACM-Ki for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Sep 2022 17:32:42 +0200 Original-Received: from localhost ([::1]:48248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obOBt-000694-Hg for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Sep 2022 11:32:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obMo6-0001ac-Rt for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 10:04:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39087) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obMo6-0005cN-Bb for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 10:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obMo6-0005b5-6O for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 10:04: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: Thu, 22 Sep 2022 14:04:02 +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.166385543321500 (code B ref 51490); Thu, 22 Sep 2022 14:04:02 +0000 Original-Received: (at 51490) by debbugs.gnu.org; 22 Sep 2022 14:03:53 +0000 Original-Received: from localhost ([127.0.0.1]:38165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obMnw-0005ah-Sk for submit@debbugs.gnu.org; Thu, 22 Sep 2022 10:03:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obMnu-0005aT-3m for 51490@debbugs.gnu.org; Thu, 22 Sep 2022 10:03:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obMnn-0005ah-6a; Thu, 22 Sep 2022 10:03:43 -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=G9y1PsgSZIFEha2x9q/kBmzY148XGn5+nvzIbjESG/4=; b=cPizaUTXR0+7 TJRJlLcrRFqA1am+KWHagIPKE5lFqZzJV9xNrho2XIV4dUiQgko2v25OSKi39rxJAb5gPc2cG9pUB oNEXTbGCWaMMCjq2bM4Vu5z9qLMq5NiPPgLACcA6vhO2CLj907hchK3tJWnZLNUzWL+xw9FfO61Ty RZKRWYp7tojcEphvcDhqb+qISdSq+UYqccGmEtRrSDEnqm9Mf0RyeYOJ7G+KKvv+IjnnR0PvsUe55 hLr1YYZlNCNShXB6CCW2rCscGiCccuaUFpwGyacKR9vYy09AXrmJBpWnx6YLmMOsfXxnRngIEE2fA womQm4YaItQ3BhI5EDj/+g==; Original-Received: from [87.69.77.57] (port=1639 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 1obMnb-00011R-B7; Thu, 22 Sep 2022 10:03:42 -0400 In-Reply-To: (message from Gregory Heytings on Thu, 22 Sep 2022 13:08:25 +0000) 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:243424 Archived-At: > Date: Thu, 22 Sep 2022 13:08:25 +0000 > From: Gregory Heytings > cc: Lars Ingebrigtsen , stefan@marxist.se, > 51490@debbugs.gnu.org > > >> They use faces to get at the colours, but nothing beyond that, I think? > > > > Yes, only the colors. But accessing the faces means you cannot do that > > while the Lisp machine is doing something. > > But would it be really necessary to access these faces each time the > indicator would be drawn? We could for example cache the values of these > two colors somewhere Faces are already cached. But for each cache there comes a time when it must be flushed and/or refreshed, and during those times you cannot safely use the cache. > or decide to do something different and use a > specific function to set these two colors without going through the whole > face machinery, something like (set-busy-indicator-colors FOREGROUND > BACKGROUND). As soon as we allow set-busy-indicator-colors or somesuch, we have a problem with Lisp programs doing that exactly when there's time to redraw the indicator.