all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: "A.C." <achirvasub@gmail.com>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 38507@debbugs.gnu.org
Subject: bug#38507: Fwd: Re: eww error: error in process filter: Window system frame should be used
Date: Tue, 17 Dec 2019 18:03:20 +0100	[thread overview]
Message-ID: <m27e2uubon.fsf@gmail.com> (raw)
In-Reply-To: <m2zhfxwucq.fsf@gmail.com> (Robert Pluim's message of "Thu, 12 Dec 2019 14:23:33 +0100")

Or perhaps this is slightly better:

diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 22d4cde34a..e34425299e 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1197,8 +1197,9 @@ shr-parse-image-data
 	     (libxml-parse-xml-region (point) (point-max)) 'utf-8)))
     ;; SVG images often do not have a specified foreground/background
     ;; color, so wrap them in styles.
-    (when (eq content-type 'image/svg+xml)
-      (setq data (svg--wrap-svg data)))
+    (and (display-images-p)
+         (eq content-type 'image/svg+xml)
+         (setq data (svg--wrap-svg data)))
     (list data content-type)))
 
 (defun svg--wrap-svg (data)






  reply	other threads:[~2019-12-17 17:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-06  2:33 bug#38507: eww error: error in process filter: Window system frame should be used Stuart Little
2019-12-06  5:09 ` A.C.
2019-12-06  5:11   ` bug#38507: Fwd: " A.C.
2019-12-12 13:23 ` Robert Pluim
2019-12-17 17:03   ` Robert Pluim [this message]
2019-12-24 16:21     ` Lars Ingebrigtsen
2019-12-24 21:56       ` A.C.

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=m27e2uubon.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=38507@debbugs.gnu.org \
    --cc=achirvasub@gmail.com \
    --cc=larsi@gnus.org \
    /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.