diff options
| author | Katsumi Yamaoka | 2010-12-09 06:40:56 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-12-09 06:40:56 +0000 |
| commit | e2d0ba98bf9953379d075e278fe39439115f21bd (patch) | |
| tree | 7af4a300a31814a4485a3c9278a629892b850d76 | |
| parent | 28d5de724339d0a44360b37ab795ca1ac364ddd9 (diff) | |
| download | emacs-e2d0ba98bf9953379d075e278fe39439115f21bd.tar.gz emacs-e2d0ba98bf9953379d075e278fe39439115f21bd.zip | |
shr.el (shr-image-displayer): Work for images lined side by side.
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/shr.el | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 08c09e3ac64..41a394e46cd 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-12-09 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * shr.el (shr-image-displayer): Work for images lined side by side. | ||
| 4 | |||
| 1 | 2010-12-08 Robert Pluim <rpluim@gmail.com> | 5 | 2010-12-08 Robert Pluim <rpluim@gmail.com> |
| 2 | 6 | ||
| 3 | * gnus-demon.el (gnus-demon-init): Call run-with-timer with an integer | 7 | * gnus-demon.el (gnus-demon-init): Call run-with-timer with an integer |
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index da9405a0ccf..41c771e38a2 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el | |||
| @@ -524,7 +524,7 @@ Return a string with image data." | |||
| 524 | "Return a function to display an image. | 524 | "Return a function to display an image. |
| 525 | CONTENT-FUNCTION is a function to retrieve an image for a cid url that | 525 | CONTENT-FUNCTION is a function to retrieve an image for a cid url that |
| 526 | is an argument. The function to be returned takes three arguments URL, | 526 | is an argument. The function to be returned takes three arguments URL, |
| 527 | START, and END." | 527 | START, and END. Note that START and END should be merkers." |
| 528 | `(lambda (url start end) | 528 | `(lambda (url start end) |
| 529 | (when url | 529 | (when url |
| 530 | (if (string-match "\\`cid:" url) | 530 | (if (string-match "\\`cid:" url) |
| @@ -534,9 +534,8 @@ START, and END." | |||
| 534 | (when image | 534 | (when image |
| 535 | (goto-char start) | 535 | (goto-char start) |
| 536 | (shr-put-image image | 536 | (shr-put-image image |
| 537 | (prog1 | 537 | (buffer-substring-no-properties start end)) |
| 538 | (buffer-substring-no-properties start end) | 538 | (delete-region (point) end)))) |
| 539 | (delete-region start end)))))) | ||
| 540 | (url-retrieve url 'shr-image-fetched | 539 | (url-retrieve url 'shr-image-fetched |
| 541 | (list (current-buffer) start end) | 540 | (list (current-buffer) start end) |
| 542 | t))))) | 541 | t))))) |