[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master ec9bd24 7/7: nnweb doesn't need unibyte buffers
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master ec9bd24 7/7: nnweb doesn't need unibyte buffers |
Date: |
Fri, 12 Feb 2016 05:15:43 +0000 |
branch: master
commit ec9bd245eb4ebc84195f4c466bcb088068ad9de0
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
nnweb doesn't need unibyte buffers
* lisp/gnus/nnweb.el (nnweb-retrieve-headers)
(nnweb-read-overview, nnweb-request-article)
(nnweb-google-reference): Unibyte buffers are not needed here.
---
lisp/gnus/nnweb.el | 37 ++++++++++++++++---------------------
1 files changed, 16 insertions(+), 21 deletions(-)
diff --git a/lisp/gnus/nnweb.el b/lisp/gnus/nnweb.el
index 7552396..7fc4464 100644
--- a/lisp/gnus/nnweb.el
+++ b/lisp/gnus/nnweb.el
@@ -103,10 +103,9 @@ Valid types include `google', `dejanews', and `gmane'.")
(with-current-buffer nntp-server-buffer
(erase-buffer)
(let (article header)
- (mm-with-unibyte-current-buffer
- (while (setq article (pop articles))
- (when (setq header (cadr (assq article nnweb-articles)))
- (nnheader-insert-nov header))))
+ (while (setq article (pop articles))
+ (when (setq header (cadr (assq article nnweb-articles)))
+ (nnheader-insert-nov header)))
'nov)))
(deffoo nnweb-request-scan (&optional group server)
@@ -153,8 +152,7 @@ Valid types include `google', `dejanews', and `gmane'.")
(let* ((header (cadr (assq article nnweb-articles)))
(url (and header (mail-header-xref header))))
(when (or (and url
- (mm-with-unibyte-current-buffer
- (mm-url-insert url)))
+ (mm-url-insert url))
(and (stringp article)
(nnweb-definition 'id t)
(let ((fetch (nnweb-definition 'id))
@@ -164,8 +162,7 @@ Valid types include `google', `dejanews', and `gmane'.")
(when (and fetch art)
(setq url (format fetch
(mm-url-form-encode-xwfu art)))
- (mm-with-unibyte-current-buffer
- (mm-url-insert url))
+ (mm-url-insert url)
(if (nnweb-definition 'reference t)
(setq article
(funcall (nnweb-definition
@@ -215,17 +212,16 @@ Valid types include `google', `dejanews', and `gmane'.")
(defun nnweb-read-overview (group)
"Read the overview of GROUP and build the map."
(when (file-exists-p (nnweb-overview-file group))
- (mm-with-unibyte-buffer
- (nnheader-insert-file-contents (nnweb-overview-file group))
- (goto-char (point-min))
- (let (header)
- (while (not (eobp))
- (setq header (nnheader-parse-nov))
- (forward-line 1)
- (push (list (mail-header-number header)
- header (mail-header-xref header))
- nnweb-articles)
- (nnweb-set-hashtb header (car nnweb-articles)))))))
+ (nnheader-insert-file-contents (nnweb-overview-file group))
+ (goto-char (point-min))
+ (let (header)
+ (while (not (eobp))
+ (setq header (nnheader-parse-nov))
+ (forward-line 1)
+ (push (list (mail-header-number header)
+ header (mail-header-xref header))
+ nnweb-articles)
+ (nnweb-set-hashtb header (car nnweb-articles))))))
(defun nnweb-write-overview (group)
"Write the overview file for GROUP."
@@ -386,8 +382,7 @@ Valid types include `google', `dejanews', and `gmane'.")
(setq nnweb-articles
(nconc nnweb-articles map))
(when (setq header (cadar map))
- (mm-with-unibyte-current-buffer
- (mm-url-insert (mail-header-xref header)))
+ (mm-url-insert (mail-header-xref header))
(caar map))))
(defun nnweb-google-create-mapping ()
- [Emacs-diffs] master updated (4f8de08 -> ec9bd24), Lars Ingebrigtsen, 2016/02/12
- [Emacs-diffs] master 4a3ea23 1/7: Don't use mm-with-unibyte-buffer in utf7, Lars Ingebrigtsen, 2016/02/12
- [Emacs-diffs] master 7fe8d82 2/7: Don't use mm-with-unibyte-current in mml1991, Lars Ingebrigtsen, 2016/02/12
- [Emacs-diffs] master a856a45 3/7: Don't use mm-with-unibyte-current in mml1991, Lars Ingebrigtsen, 2016/02/12
- [Emacs-diffs] master 2ffc32f 4/7: Don't use mm-with-unibyte-current-buffer in mml2015, Lars Ingebrigtsen, 2016/02/12
- [Emacs-diffs] master 49d0595 5/7: nnrss buffers don't have to be unibyte, Lars Ingebrigtsen, 2016/02/12
- [Emacs-diffs] master ce10b20 6/7: Encode before sending from nnspool, Lars Ingebrigtsen, 2016/02/12
- [Emacs-diffs] master ec9bd24 7/7: nnweb doesn't need unibyte buffers,
Lars Ingebrigtsen <=