[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/with-url 5432611 4/5: Fix the previous kludge slig
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] scratch/with-url 5432611 4/5: Fix the previous kludge slightly. |
Date: |
Sun, 22 Jan 2017 16:15:13 +0000 (UTC) |
branch: scratch/with-url
commit 5432611d198909627f8efb50b0bddcd69b204067
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Fix the previous kludge slightly.
Author:
---
lisp/net/shr.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index f04042c..d1e829c 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1058,8 +1058,7 @@ Return a string with image data."
;;; !!! This is all just an ugly kludge until a new URL caching method
;;; been established.
(goto-char (point-min))
- (when (or (search-forward "\n\n" nil t)
- (search-forward "\r\n\r\n" nil t))
+ (when (re-search-forward "\r?\n\r?\n" nil t)
(let ((content-type
(save-excursion
(save-restriction
@@ -1073,8 +1072,7 @@ Return a string with image data."
(intern (replace-regexp-in-string ";.*" ""
content-type)
obarray)))))))
(goto-char (point-min))
- (when (or (search-forward "\n\n" nil t)
- (search-forward "\r\n\r\n" nil t))
+ (when (re-search-forward "\r?\n\r?\n" nil t)
(delete-region (point) (point-min))
(shr-parse-image-data content-type)))))))
- [Emacs-diffs] scratch/with-url updated (9d2e1e3 -> c5a0cb3), Lars Ingebrigtsen, 2017/01/22
- [Emacs-diffs] scratch/with-url 60c67cf 1/5: Implement the data: scheme, Lars Ingebrigtsen, 2017/01/22
- [Emacs-diffs] scratch/with-url 5432611 4/5: Fix the previous kludge slightly.,
Lars Ingebrigtsen <=
- [Emacs-diffs] scratch/with-url f8f3a72 2/5: We want a read timeout, not a total timeout, I think, Lars Ingebrigtsen, 2017/01/22
- [Emacs-diffs] scratch/with-url c5a0cb3 5/5: Fix compilation warning, Lars Ingebrigtsen, 2017/01/22
- [Emacs-diffs] scratch/with-url e28624c 3/5: Add a hack until with-url gets a new cache, Lars Ingebrigtsen, 2017/01/22