Fix proposed by Martin Rudalics <rudalics@gmx.at> in:
https://lists.gnu.org/archive/html/emacs-devel/2008-12/msg00945.html
* lisp/image-file.el (image-file-yank-handler): Handle case when
yank-excluded-properties is t.
"Yank handler for inserting an image into a buffer."
(let ((len (length string))
(image (get-text-property 0 'display string)))
- (remove-list-of-text-properties 0 len yank-excluded-properties string)
+ (if (eq yank-excluded-properties t)
+ (set-text-properties 0 len () string)
+ (remove-list-of-text-properties 0 len yank-excluded-properties string))
(if (consp image)
(add-text-properties 0
(or (next-single-property-change 0 'image-counter string)