From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#51490: Show an indicator when Emacs is busy somewhere in the Emacs window Date: Thu, 22 Sep 2022 13:08:25 +0000 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33925"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , stefan@marxist.se, 51490@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 22 16:24:00 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 1obN7Q-0008ai-Si for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Sep 2022 16:24:00 +0200 Original-Received: from localhost ([::1]:51456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obN7P-0006Eg-PA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Sep 2022 10:23:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obLwt-0001no-3h for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 09:09:12 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37571) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obLws-0008Pl-7l for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 09:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obLwr-0003qu-KR for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 09:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Sep 2022 13:09: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.166385210914766 (code B ref 51490); Thu, 22 Sep 2022 13:09:01 +0000 Original-Received: (at 51490) by debbugs.gnu.org; 22 Sep 2022 13:08:29 +0000 Original-Received: from localhost ([127.0.0.1]:36649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obLwK-0003q6-Ue for submit@debbugs.gnu.org; Thu, 22 Sep 2022 09:08:29 -0400 Original-Received: from heytings.org ([95.142.160.155]:54044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obLwI-0003px-J7 for 51490@debbugs.gnu.org; Thu, 22 Sep 2022 09:08:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1663852105; bh=mEAAj/BxC3OvPCwXbPJitNiM25vhZYmuCPbHb6yPXdk=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=Kvu6L+BwV5rkgLD2LSDorIVgQSzaztPYUwOZPJhqmZjjbiQmrIU8dNsTNCv1JwmbW xVq+68cIhem9pf3eXdCHbKyrn8/P++dtJxvdJ2uGbdwuT8Iz+fv+cDJwSyKirYsEcR 8kO9WBOaBSY6yB2TGKoDYh8ZZOmxoUvNXkT+3A/adKhEJR6XLkJMChEN7DCSOTeTox Vf0erc92yvAGdesRg6Fxs16XcJ38CtLVVk3PlkSHxWZGiUgb/5pCN7/2PRxmDQPtTA 6WndzfKFS1dpeQHWdYZOrkaBiHXZHBIEbLND9fzI3MAR65lyDee68CVwcGnD4+N98+ Pw0oSYoY8p6nw== In-Reply-To: <83fsgjsi55.fsf@gnu.org> 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:243419 Archived-At: >>>> Aren't they the simplest graphical element drawn by Emacs, a simple >>>> black-and-white bitmap? >>> >>> No, they aren't. They are certainly not black-and-white: they use >>> faces. >> >> 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, 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).