Commit a3e01263 authored by Katsumi Yamaoka's avatar Katsumi Yamaoka
Browse files

Use insert-image instead of put-image when putting images into a buffer; This...

Use insert-image instead of put-image when putting images into a buffer; This makes all the Gnus image-inserting functions work, I think; by Lars Magne Ingebrigtsen <larsi@gnus.org>.
parent 929989ff
......@@ -278,7 +278,7 @@
(let ((point (or point (point))))
(save-excursion
(goto-char point)
(put-image glyph point)
(insert-image glyph (or string " "))
(put-text-property point (point) 'gnus-image-category category)
(unless string
(put-text-property (1- (point)) (point)
......
......@@ -157,7 +157,7 @@
(set-buffer buffer)
(let ((buffer-read-only nil))
(when (gnus-html-put-image file (cadr spec))
(delete-region (cadr spec) (caddr spec))))))
(delete-region (1+ (cadr spec)) (caddr spec))))))
(when images
(gnus-html-schedule-image-fetching buffer images)))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment