[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23431: 25.0.93; EWW hangs
From: |
Lars Ingebrigtsen |
Subject: |
bug#23431: 25.0.93; EWW hangs |
Date: |
Tue, 03 May 2016 18:26:52 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Lars Ingebrigtsen <larsi@gnus.org>
>> Date: Tue, 03 May 2016 17:57:59 +0200
>> Cc: 23431@debbugs.gnu.org
>>
>> First of all: Can the animation function determine that it's making
>> Emacs unresponsive? I guess it could keep track of how much time is
>> passing between each time it's called, and if that's longer than the
>> timeout, it should ... postpone itself a bit further to allow some
>> keystrokes to get in between each frame?
>
> Can you show how that function is called on the Lisp level?
It's the `image-animate-timeout' function in image.el.
(defun image-animate-timeout (image n count time-elapsed limit)
[...]
(delay (max (+ (* (or (cdr animation) image-default-frame-delay)
(/ 1.0 (abs speed)))
time (- (float-time)))
image-minimum-frame-delay))
[...]
(unless done
(run-with-timer delay nil 'image-animate-timeout
image n count time-elapsed limit)))))
So I think it shouldn't be too difficult to ... do something useful
here...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#23431: 25.0.93; EWW hangs, Juliusz Chroboczek, 2016/05/02
- bug#23431: 25.0.93; EWW hangs, Kaushal Modi, 2016/05/03
- bug#23431: 25.0.93; EWW hangs, Lars Ingebrigtsen, 2016/05/03
- bug#23431: 25.0.93; EWW hangs, Lars Ingebrigtsen, 2016/05/03
- bug#23431: 25.0.93; EWW hangs, Eli Zaretskii, 2016/05/03
- bug#23431: 25.0.93; EWW hangs,
Lars Ingebrigtsen <=
- bug#23431: 25.0.93; EWW hangs, Eli Zaretskii, 2016/05/03
- bug#23431: 25.0.93; EWW hangs, Lars Ingebrigtsen, 2016/05/03
- bug#23431: 25.0.93; EWW hangs, Eli Zaretskii, 2016/05/03
- bug#23431: 25.0.93; EWW hangs, Lars Ingebrigtsen, 2016/05/03
- bug#23431: 25.0.93; EWW hangs, Eli Zaretskii, 2016/05/03
- bug#23431: 25.0.93; EWW hangs, Lars Ingebrigtsen, 2016/05/03
- bug#23431: 25.0.93; EWW hangs, Lars Ingebrigtsen, 2016/05/03
- bug#23431: 25.0.93; EWW hangs, Eli Zaretskii, 2016/05/03
- bug#23431: 25.0.93; EWW hangs, Lars Ingebrigtsen, 2016/05/03
- bug#23431: 25.0.93; EWW hangs, Lars Ingebrigtsen, 2016/05/03