[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master fe25d0c: Ensure that we parse images right in shr.e
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master fe25d0c: Ensure that we parse images right in shr.el |
Date: |
Mon, 24 Jul 2017 11:30:49 -0400 (EDT) |
branch: master
commit fe25d0ce8e8b44c3e2ce84ac470822a299199445
Author: Grégoire Jadi <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Ensure that we parse images right in shr.el
* lisp/net/shr.el (shr-image-fetched): Go back to the
beginning of the buffer before trying to parse the image
fetched.
---
lisp/net/shr.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 2f73f98..fe93fc3 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -945,6 +945,7 @@ If EXTERNAL, browse the URL using `shr-external-browser'."
(when (and (buffer-name buffer)
(not (plist-get status :error)))
(url-store-in-cache image-buffer)
+ (goto-char (point-min))
(when (or (search-forward "\n\n" nil t)
(search-forward "\r\n\r\n" nil t))
(let ((data (shr-parse-image-data)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master fe25d0c: Ensure that we parse images right in shr.el,
Lars Ingebrigtsen <=