From: Lars Ingebrigtsen Date: Thu, 4 Feb 2016 05:44:06 +0000 (+1100) Subject: Make shr not bug out on images on non-graphical displays X-Git-Tag: emacs-25.0.91~95 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=af6ab7efc7a6ce83a289e05792498fa9354e6a32;p=emacs.git Make shr not bug out on images on non-graphical displays * lisp/net/shr.el (shr-put-image): Don't bug out on alt-less images on non-graphical displays (bug#22327). --- diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 611f0a90f69..bfda6543b68 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -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."