aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2018-02-10 09:51:00 +0200
committerEli Zaretskii2018-02-10 09:51:00 +0200
commit32fb8c4c33305fa3107f23d8ce8cfba8e04a7433 (patch)
tree8c0929cb8873c4d9c7ea34154b62a3b0b08fc5f3
parent0276743672672ce0caec7861741293a4ae11cb52 (diff)
downloademacs-32fb8c4c33305fa3107f23d8ce8cfba8e04a7433.tar.gz
emacs-32fb8c4c33305fa3107f23d8ce8cfba8e04a7433.zip
Avoid printing garbled error message from image.el
* lisp/image.el (image--get-imagemagick-and-warn): Don't use apostrophe in the error message, as that message is shown from a unibyte buffer, and will run afoul of the default style of showing quote characters. (Bug#30405)
-rw-r--r--lisp/image.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/image.el b/lisp/image.el
index 0fe03f55bbb..b021edb33dc 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -977,7 +977,7 @@ default is 20%."
977 977
978(defun image--get-imagemagick-and-warn () 978(defun image--get-imagemagick-and-warn ()
979 (unless (fboundp 'imagemagick-types) 979 (unless (fboundp 'imagemagick-types)
980 (error "Can't rescale images without ImageMagick support")) 980 (error "Cannot rescale images without ImageMagick support"))
981 (let ((image (image--get-image))) 981 (let ((image (image--get-image)))
982 (image-flush image) 982 (image-flush image)
983 (plist-put (cdr image) :type 'imagemagick) 983 (plist-put (cdr image) :type 'imagemagick)