all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>, 18334@debbugs.gnu.org
Subject: bug#18334: 24.3.93; ImageMagick: eww shows favicon animations in search results
Date: Sun, 14 Sep 2014 20:10:56 -0400	[thread overview]
Message-ID: <tutx49u4j3.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <wx7g16jc73.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sun, 14 Sep 2014 14:20:48 -0400")

>> Should image-multi-frame-p, a new function in 24.4, stop using
>> image-default-frame-delay as a default value for DELAY? Or should each
>> caller of image-multi-frame-p temporarily let-bind
>> image-default-frame-delay to nil if it doesn't want to treat images
>> that are missing DELAY value as animations?
>
> I think I was intending it to work the first way, not the second way
> (which sounds a bit yucky?). But I don't seem to have implemented it
> right. No idea what I was thinking...

I think perhaps I meant to do something like the following, which I
applied to emacs-24.

However, AFAICS now nothing is animated in eww.
Perhaps this is related to shr's preference for ImageMagick and the fact
that that backend still does not return a delay
(http://debbugs.gnu.org/10747).

In theory ImageMagick should be used only when rescaling is needed, but
it seems to be used all (?) the time (because in shr-put-image, size is
often nil?).

--- a/lisp/image.el	2014-02-25 21:59:14 +0000
+++ b/lisp/image.el	2014-09-14 23:59:57 +0000
@@ -637,8 +637,8 @@
 	   (images (plist-get metadata 'count))
 	   (delay (plist-get metadata 'delay)))
       (when (and images (> images 1))
-	(if (or (not (numberp delay)) (< delay 0))
-	    (setq delay image-default-frame-delay))
+	(and delay (or (not (numberp delay)) (< delay 0))
+	     (setq delay image-default-frame-delay))
 	(cons images delay)))))
 





  reply	other threads:[~2014-09-15  0:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-27  0:57 bug#18334: 24.3.93; ImageMagick: eww shows favicon animations in search results YAMAMOTO Mitsuharu
2014-09-14  7:42 ` YAMAMOTO Mitsuharu
2014-09-14 18:20   ` Glenn Morris
2014-09-15  0:10     ` Glenn Morris [this message]
2014-09-17 22:45       ` Juri Linkov
2014-09-18 16:48         ` Lars Magne Ingebrigtsen
2014-09-18 19:22           ` Lars Magne Ingebrigtsen
2014-09-18 21:02             ` Juri Linkov
2014-09-20 21:57             ` Glenn Morris
2014-09-21 12:13               ` Lars Magne Ingebrigtsen
2014-09-21 13:50                 ` Glenn Morris
2014-09-22 19:26                 ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=tutx49u4j3.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=18334@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.