unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22846: 25.0.91; Long pauses viewing HTML email; can we show progress?
@ 2016-02-29  7:13 John Wiegley
  2016-02-29  7:19 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: John Wiegley @ 2016-02-29  7:13 UTC (permalink / raw)
  To: 22846

I have a feeling this may become a non-issue after Lars' asynchronous DNS
support goes live, but for 25.1, I find that hitting SPACE to read an HTML
e-mail with many images, Emacs pauses for up to ~10 seconds doing...
something. It would help me to know work is being done, by some kind of
prompting in the message area, the way that Firefox does when loading a slow
page.

Bonus points for only prompting after a second or more, to avoid excessive
logging to *Messages*, but that's not terribly important.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22846: 25.0.91; Long pauses viewing HTML email; can we show progress?
  2016-02-29  7:13 bug#22846: 25.0.91; Long pauses viewing HTML email; can we show progress? John Wiegley
@ 2016-02-29  7:19 ` Lars Ingebrigtsen
  2016-02-29 15:55   ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-29  7:19 UTC (permalink / raw)
  To: 22846

John Wiegley <jwiegley@gmail.com> writes:

> I have a feeling this may become a non-issue after Lars' asynchronous DNS
> support goes live, but for 25.1, I find that hitting SPACE to read an HTML
> e-mail with many images, Emacs pauses for up to ~10 seconds doing...
> something.

Yeah, that's the problem the async code makes go away...

> It would help me to know work is being done, by some kind of prompting
> in the message area, the way that Firefox does when loading a slow
> page.
>
> Bonus points for only prompting after a second or more, to avoid excessive
> logging to *Messages*, but that's not terribly important.

Hm...  didn't we add a mechanism to display messages on a timeout the
other year?  Or did we just talk about it?  I wanted something like

(with-timeout-message 2 "We're doing whatevs"
  (whatevs))

If the body form completes within 2 seconds, then nothing is displayed,
otherwise the message is displayed until the body form completes.

I can't find it now, so we probably just talked about it?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22846: 25.0.91; Long pauses viewing HTML email; can we show progress?
  2016-02-29  7:19 ` Lars Ingebrigtsen
@ 2016-02-29 15:55   ` Eli Zaretskii
  2016-02-29 21:25     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2016-02-29 15:55 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 22846

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Mon, 29 Feb 2016 18:19:55 +1100
> 
> Hm...  didn't we add a mechanism to display messages on a timeout the
> other year?  Or did we just talk about it?  I wanted something like
> 
> (with-timeout-message 2 "We're doing whatevs"
>   (whatevs))
> 
> If the body form completes within 2 seconds, then nothing is displayed,
> otherwise the message is displayed until the body form completes.
> 
> I can't find it now, so we probably just talked about it?

Are you talking about delayed-warnings-list, delayed-warnings-hook,
and display-delayed-warnings?





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22846: 25.0.91; Long pauses viewing HTML email; can we show progress?
  2016-02-29 15:55   ` Eli Zaretskii
@ 2016-02-29 21:25     ` Lars Ingebrigtsen
  2016-03-01  3:36       ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-29 21:25 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22846

Eli Zaretskii <eliz@gnu.org> writes:

>> (with-timeout-message 2 "We're doing whatevs"
>>   (whatevs))
>> 
>> If the body form completes within 2 seconds, then nothing is displayed,
>> otherwise the message is displayed until the body form completes.
>> 
>> I can't find it now, so we probably just talked about it?
>
> Are you talking about delayed-warnings-list, delayed-warnings-hook,
> and display-delayed-warnings?

You can control the timeout and cancel the warnings automatically with
the delayed-warnings stuff?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22846: 25.0.91; Long pauses viewing HTML email; can we show progress?
  2016-02-29 21:25     ` Lars Ingebrigtsen
@ 2016-03-01  3:36       ` Eli Zaretskii
  2016-03-01  4:32         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2016-03-01  3:36 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 22846

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: 22846@debbugs.gnu.org
> Date: Tue, 01 Mar 2016 08:25:50 +1100
> 
> > Are you talking about delayed-warnings-list, delayed-warnings-hook,
> > and display-delayed-warnings?
> 
> You can control the timeout and cancel the warnings automatically with
> the delayed-warnings stuff?

I don't know, I just mentioned the only feature that sounds like what
you wanted.  It's supposed to be fully documented.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22846: 25.0.91; Long pauses viewing HTML email; can we show progress?
  2016-03-01  3:36       ` Eli Zaretskii
@ 2016-03-01  4:32         ` Lars Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2016-03-01  4:32 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22846

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Lars Ingebrigtsen <larsi@gnus.org>
>> Cc: 22846@debbugs.gnu.org
>> Date: Tue, 01 Mar 2016 08:25:50 +1100
>> 
>> > Are you talking about delayed-warnings-list, delayed-warnings-hook,
>> > and display-delayed-warnings?
>> 
>> You can control the timeout and cancel the warnings automatically with
>> the delayed-warnings stuff?
>
> I don't know, I just mentioned the only feature that sounds like what
> you wanted.  It's supposed to be fully documented.

It kinda seems like it's doing the opposite of what I wanted.  :-)

-------

Sometimes, you may wish to avoid showing a warning while a command is
running, and only show it only after the end of the command.  You can
use the variable @code{delayed-warnings-list} for this.

@defvar delayed-warnings-list
The value of this variable is a list of warnings to be displayed after
the current command has finished.  Each element must be a list

@smallexample
(@var{type} @var{message} [@var{level} [@var{buffer-name}]])
@end smallexample

@noindent
with the same form, and the same meanings, as the argument list of
@code{display-warning} (@pxref{Warning Basics}).  Immediately after
running @code{post-command-hook} (@pxref{Command Overview}), the Emacs
command loop displays all the warnings specified by this variable,
then resets it to @code{nil}.
@end defvar

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-01  4:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-29  7:13 bug#22846: 25.0.91; Long pauses viewing HTML email; can we show progress? John Wiegley
2016-02-29  7:19 ` Lars Ingebrigtsen
2016-02-29 15:55   ` Eli Zaretskii
2016-02-29 21:25     ` Lars Ingebrigtsen
2016-03-01  3:36       ` Eli Zaretskii
2016-03-01  4:32         ` Lars Ingebrigtsen

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).