From 1c19696171bfbd8f97378e60eb1625d6e6f20c96 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Wed, 10 May 2000 21:59:01 +0000 Subject: [PATCH] Sync. --- lisp/ChangeLog | 6 ++++++ lisp/nnslashdot.el | 4 ++-- lisp/qp.el | 35 ++++++++++++++++++----------------- 3 files changed, 26 insertions(+), 19 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 299fc20..a7238c6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2000-05-10 12:17:58 Shenghuo ZHU + + * qp.el (quoted-printable-encode-region): Bind tab-width to 1. Set + limit to 76. + 2000-05-10 09:11:48 Lars Magne Ingebrigtsen * nnslashdot.el (nnslashdot-sid-strip): New function. @@ -6,6 +11,7 @@ (nnslashdot-request-article): Ditto. (nnslashdot-threaded-retrieve-headers): Thread properly. (nnslashdot-request-article): Be more lenient. + (nnslashdot-threaded-retrieve-headers): Regexp search. 2000-05-09 13:23:50 Shenghuo ZHU diff --git a/lisp/nnslashdot.el b/lisp/nnslashdot.el index c1e0ce3..013fabc 100644 --- a/lisp/nnslashdot.el +++ b/lisp/nnslashdot.el @@ -117,7 +117,7 @@ (forward-line 2) (setq lines (count-lines (point) - (search-forward + (re-search-forward "A href=\"\\(http://slashdot.org\\)?/article" nil t))) (push (cons @@ -220,7 +220,7 @@ (buffer-substring (point) (1- (search-forward "<"))))) (forward-line 2) (setq lines (count-lines (point) - (search-forward + (re-search-forward "A href=\"\\(http://slashdot.org\\)?/article"))) (push (cons diff --git a/lisp/qp.el b/lisp/qp.el index 93c3f7e..ea2a818 100644 --- a/lisp/qp.el +++ b/lisp/qp.el @@ -115,23 +115,24 @@ encode lines starting with \"From\"." (delete-char 1))))) (when (or fold mm-use-ultra-safe-encoding) ;; Fold long lines. - (goto-char (point-min)) - (while (not (eobp)) - ;; In ultra-safe mode, encode "From " at the beginning of a - ;; line. - (when mm-use-ultra-safe-encoding - (beginning-of-line) - (when (looking-at "From ") - (replace-match "From=20" nil t))) - (end-of-line) - (while (> (current-column) 72) - (beginning-of-line) - (forward-char 71);; 71 char plus an "=" - (search-backward "=" (- (point) 2) t) - (insert "=\n") - (end-of-line)) - (unless (eobp) - (forward-line))))))) + (let ((tab-width 1)) ;; HTAB is one character. + (goto-char (point-min)) + (while (not (eobp)) + ;; In ultra-safe mode, encode "From " at the beginning of a + ;; line. + (when mm-use-ultra-safe-encoding + (beginning-of-line) + (when (looking-at "From ") + (replace-match "From=20" nil t))) + (end-of-line) + (while (> (current-column) 76) ;; tab-width must be 1. + (beginning-of-line) + (forward-char 75);; 75 chars plus an "=" + (search-backward "=" (- (point) 2) t) + (insert "=\n") + (end-of-line)) + (unless (eobp) + (forward-line)))))))) (defun quoted-printable-encode-string (string) "QP-encode STRING and return the results." -- 1.7.10.4