mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
shr.el (shr-image-displayer): Work for images lined side by side.
This commit is contained in:
parent
28d5de7243
commit
e2d0ba98bf
2 changed files with 7 additions and 4 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2010-12-09 Katsumi Yamaoka <yamaoka@jpl.org>
|
||||
|
||||
* shr.el (shr-image-displayer): Work for images lined side by side.
|
||||
|
||||
2010-12-08 Robert Pluim <rpluim@gmail.com>
|
||||
|
||||
* gnus-demon.el (gnus-demon-init): Call run-with-timer with an integer
|
||||
|
|
|
|||
|
|
@ -524,7 +524,7 @@ Return a string with image data."
|
|||
"Return a function to display an image.
|
||||
CONTENT-FUNCTION is a function to retrieve an image for a cid url that
|
||||
is an argument. The function to be returned takes three arguments URL,
|
||||
START, and END."
|
||||
START, and END. Note that START and END should be merkers."
|
||||
`(lambda (url start end)
|
||||
(when url
|
||||
(if (string-match "\\`cid:" url)
|
||||
|
|
@ -534,9 +534,8 @@ START, and END."
|
|||
(when image
|
||||
(goto-char start)
|
||||
(shr-put-image image
|
||||
(prog1
|
||||
(buffer-substring-no-properties start end)
|
||||
(delete-region start end))))))
|
||||
(buffer-substring-no-properties start end))
|
||||
(delete-region (point) end))))
|
||||
(url-retrieve url 'shr-image-fetched
|
||||
(list (current-buffer) start end)
|
||||
t)))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue