From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#23431: 25.0.93; EWW hangs Date: Tue, 03 May 2016 18:26:52 +0200 Message-ID: <874maf5cqb.fsf@gnus.org> References: <87bn4nx1iq.wl-jch@pps.univ-paris-diderot.fr> <87zis75ibn.fsf@gnus.org> <87d1p35e2g.fsf@gnus.org> <8360uvkt9y.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1462292932 27018 80.91.229.3 (3 May 2016 16:28:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 May 2016 16:28:52 +0000 (UTC) Cc: 23431@debbugs.gnu.org, jch@pps.univ-paris-diderot.fr To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 03 18:28:40 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1axdBa-00077z-2n for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 May 2016 18:28:34 +0200 Original-Received: from localhost ([::1]:42176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axdBW-0003ZR-8T for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 May 2016 12:28:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axdBL-0003Mc-UC for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 12:28:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axdB8-00080S-JA for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 12:28:14 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axdB8-0007wy-EZ for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 12:28:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1axdB5-0000Aq-0b for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 12:28:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 May 2016 16:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23431-submit@debbugs.gnu.org id=B23431.1462292826568 (code B ref 23431); Tue, 03 May 2016 16:28:02 +0000 Original-Received: (at 23431) by debbugs.gnu.org; 3 May 2016 16:27:06 +0000 Original-Received: from localhost ([127.0.0.1]:35547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axdA6-00008Y-E3 for submit@debbugs.gnu.org; Tue, 03 May 2016 12:27:05 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:33513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axdA1-00007u-9v for 23431@debbugs.gnu.org; Tue, 03 May 2016 12:27:00 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1axd9w-0000Sr-Fg; Tue, 03 May 2016 18:26:56 +0200 In-Reply-To: <8360uvkt9y.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 03 May 2016 19:20:25 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:117648 Archived-At: Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> 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