unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Gregory Heytings <gregory@heytings.org>
Cc: larsi@gnus.org, stefan@marxist.se, 51490@debbugs.gnu.org
Subject: bug#51490: Show an indicator when Emacs is busy somewhere in the Emacs window
Date: Thu, 22 Sep 2022 19:21:10 +0300	[thread overview]
Message-ID: <83zgerqt1l.fsf@gnu.org> (raw)
In-Reply-To: <c614892c6de9bd2d1b00@heytings.org> (message from Gregory Heytings on Thu, 22 Sep 2022 15:57:04 +0000)

> Date: Thu, 22 Sep 2022 15:57:04 +0000
> From: Gregory Heytings <gregory@heytings.org>
> cc: larsi@gnus.org, stefan@marxist.se, 51490@debbugs.gnu.org
> 
> >> I'm thinking aloud here, sorry if it isn't useful.  But I think we have 
> >> at least one similar occurrence: XTflash.
> >
> > Which part of it seemed similar to what is being discussed here?
> 
> The fact that a portion of the frame is modified without a complete 
> redisplay of the frame, through primitive drawing functions?  Am I missing 
> something?  Would it not be possible to draw a busy indicator at a fixed 
> position of the frame with XDrawRectangle for the background, followed by 
> XDrawPoints for the foreground?

It should be possible, yes.  I just said that we don't have such an
infrastructure yet, it needs to be written first.  When someone does
write it, they will have to deal with the issue of what kind of
drawing do we allow there; for example, a 1-pixel line is easy, but is
unlikely to be visually appealing.

And the main problem this will have to solve is this: whatever you
draw behind the back of the display engine will run the risk of being
wiped out when the next redisplay cycle kicks in.  XTflash doesn't
have that problem because it is invoked from Lisp, not from an async
signal handler.

> >> 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.
> 
> We could specify that set-busy-indicator-colors is only meant to be used 
> in init files, for example.

Good luck with getting that past our users!





  reply	other threads:[~2022-09-22 16:21 UTC|newest]

Thread overview: 90+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-04 23:03 bug#19776: 25.0.50; HTML rendering is very slow Richard Stallman
2015-02-05 11:42 ` Nicolas Richard
2015-02-05 16:14   ` Eli Zaretskii
2015-12-25 22:34 ` Lars Ingebrigtsen
2015-12-26  6:14   ` Richard Stallman
2018-04-15 21:49     ` Lars Ingebrigtsen
2018-04-15 22:00       ` Lars Ingebrigtsen
2021-10-22 23:59         ` Stefan Kangas
2021-10-23  7:27           ` Eli Zaretskii
2021-10-24 12:43             ` Lars Ingebrigtsen
2021-10-24 14:04               ` Eli Zaretskii
2021-10-24 14:25                 ` Lars Ingebrigtsen
2021-10-24 16:22                   ` Lars Ingebrigtsen
2021-10-24 17:06                     ` Eli Zaretskii
2021-10-24 17:56                     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-24 18:45                       ` Lars Ingebrigtsen
2021-10-24 19:10                       ` Lars Ingebrigtsen
2021-10-24 19:18                         ` Lars Ingebrigtsen
2021-10-24 19:24                         ` Eli Zaretskii
2021-10-24 19:42                           ` Lars Ingebrigtsen
2021-10-24 20:09                             ` Lars Ingebrigtsen
2021-10-24 20:14                               ` Lars Ingebrigtsen
2021-10-24 20:18                                 ` Lars Ingebrigtsen
2021-10-24 20:40                                   ` Lars Ingebrigtsen
2021-10-24 21:52                                     ` Stefan Kangas
2021-10-25 13:08                                       ` Lars Ingebrigtsen
2021-10-25 13:20                                         ` Eli Zaretskii
2021-10-25 13:33                                           ` Lars Ingebrigtsen
2021-10-29 17:28                                             ` Stefan Kangas
2021-10-29 17:38                                               ` Lars Ingebrigtsen
2021-10-29 17:59                                                 ` bug#51490: Show an indicator when Emacs is busy somewhere in the Emacs window Stefan Kangas
2021-10-30 12:40                                                   ` Lars Ingebrigtsen
2022-09-19 20:16                                                     ` Lars Ingebrigtsen
2022-09-20 11:36                                                       ` Eli Zaretskii
2022-09-21 11:06                                                         ` Lars Ingebrigtsen
2022-09-21 11:49                                                           ` Eli Zaretskii
2022-09-21 12:01                                                             ` Lars Ingebrigtsen
2022-09-21 12:34                                                               ` Stefan Kangas
2022-09-21 13:08                                                                 ` Eli Zaretskii
2022-09-21 13:05                                                               ` Eli Zaretskii
2022-09-21 13:32                                                                 ` Lars Ingebrigtsen
2022-09-21 14:01                                                                   ` Eli Zaretskii
2022-09-21 16:02                                                                     ` Gregory Heytings
2022-09-21 16:21                                                                       ` Eli Zaretskii
2022-09-21 17:11                                                                         ` Gregory Heytings
2022-09-22  6:28                                                                           ` Eli Zaretskii
2022-09-22 10:54                                                                             ` Lars Ingebrigtsen
2022-09-22 12:33                                                                               ` Eli Zaretskii
2022-09-22 13:08                                                                                 ` Gregory Heytings
2022-09-22 14:03                                                                                   ` Eli Zaretskii
2022-09-22 15:57                                                                                     ` Gregory Heytings
2022-09-22 16:21                                                                                       ` Eli Zaretskii [this message]
2022-09-23 15:06                                                                                         ` Lars Ingebrigtsen
2022-09-23 15:45                                                                                           ` Eli Zaretskii
2022-09-22 13:02                                                                             ` Gregory Heytings
2022-09-22 13:59                                                                               ` Eli Zaretskii
2021-10-24 22:14                             ` bug#19776: 25.0.50; HTML rendering is very slow Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-24 22:28                               ` Lars Ingebrigtsen
2021-10-25  7:33                                 ` Andreas Schwab
2021-10-25 13:11                                   ` Lars Ingebrigtsen
2021-10-25 13:33                                     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-25 13:46                                       ` Andreas Schwab
2021-10-25 13:52                                         ` Lars Ingebrigtsen
2021-10-25 14:05                                           ` Lars Ingebrigtsen
2021-10-25 14:16                                             ` Eli Zaretskii
2021-10-25 14:25                                               ` Lars Ingebrigtsen
2021-10-25 14:31                                             ` Andreas Schwab
2021-10-25 14:36                                               ` Lars Ingebrigtsen
2021-10-25 14:48                                                 ` Lars Ingebrigtsen
2021-10-25 14:32                                             ` Lars Ingebrigtsen
2021-10-25 14:00                                 ` Eli Zaretskii
2021-10-25 14:35                                   ` Andreas Schwab
2021-10-25 15:05                                     ` bug#19776: timerfd doesn't work when busy-looping Lars Ingebrigtsen
2021-10-25 15:59                                       ` Eli Zaretskii
2021-10-25 16:16                                         ` Lars Ingebrigtsen
2021-10-25 16:41                                           ` bug#19776: The hourglass Lars Ingebrigtsen
2021-10-25 16:51                                             ` Eli Zaretskii
2021-10-25 16:57                                               ` Lars Ingebrigtsen
2021-10-25 16:09                                 ` bug#19776: 25.0.50; HTML rendering is very slow Eli Zaretskii
2021-10-25 16:19                                   ` Lars Ingebrigtsen
2021-10-25 16:53                                     ` Eli Zaretskii
2021-10-25 17:01                                       ` Lars Ingebrigtsen
2021-10-25 17:07                                         ` Eli Zaretskii
2021-10-25 17:11                                           ` Andreas Schwab
2021-10-25 17:12                                             ` Eli Zaretskii
2021-10-25 17:52                                               ` Andreas Schwab
2021-10-25 18:25                                                 ` Eli Zaretskii
2021-10-25  2:17           ` Richard Stallman
2021-10-25 13:10             ` Lars Ingebrigtsen
2021-10-27 12:59 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83zgerqt1l.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=51490@debbugs.gnu.org \
    --cc=gregory@heytings.org \
    --cc=larsi@gnus.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).