]> git.eshelyaron.com Git - emacs.git/commitdiff
Make shr not bug out on images on non-graphical displays
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Feb 2016 05:44:06 +0000 (16:44 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Feb 2016 05:44:06 +0000 (16:44 +1100)
* lisp/net/shr.el (shr-put-image): Don't bug out on alt-less
images on non-graphical displays (bug#22327).

lisp/net/shr.el

index 611f0a90f69b0f22e3680c85e64f31ffb54bc1ce..bfda6543b686bbc84f164b1f94fded61a0447526 100644 (file)
@@ -966,7 +966,7 @@ element is the data blob and the second element is the content-type."
                             (image-animated-p image))))
             (image-animate image nil 60)))
        image)
-    (insert alt)))
+    (insert (or alt ""))))
 
 (defun shr-rescale-image (data &optional content-type)
   "Rescale DATA, if too big, to fit the current buffer."