# HG changeset patch # User Katsumi Yamaoka # Date 1287620852 0 # Node ID f72fefc68ae455b7120c3346336fc90a75025505 # Parent e36c65ac23bf0b1a0e8d8b0f3f6fb8a7e8a39e34 nnrss.el (nnrss-wash-html-in-text-plain-parts): Remove. nnrss.el (nnrss-request-article): Don't use special html washing code. diff -r e36c65ac23bf -r f72fefc68ae4 lisp/gnus/ChangeLog --- a/lisp/gnus/ChangeLog Wed Oct 20 22:29:38 2010 +0000 +++ b/lisp/gnus/ChangeLog Thu Oct 21 00:27:32 2010 +0000 @@ -1,3 +1,8 @@ +2010-10-21 Katsumi Yamaoka + + * nnrss.el (nnrss-wash-html-in-text-plain-parts): Remove. + (nnrss-request-article): Don't use special html washing code. + 2010-10-20 Katsumi Yamaoka * shr.el (shr-tag-table): Remove useless nconc. diff -r e36c65ac23bf -r f72fefc68ae4 lisp/gnus/nnrss.el --- a/lisp/gnus/nnrss.el Wed Oct 20 22:29:38 2010 +0000 +++ b/lisp/gnus/nnrss.el Thu Oct 21 00:27:32 2010 +0000 @@ -114,11 +114,6 @@ the car is what the data specify as the encoding. Or, the car is used for decoding when the cdr that the data specify is not available.") -(defvar nnrss-wash-html-in-text-plain-parts nil - "*Non-nil means render text in text/plain parts as HTML. -The function specified by the `mm-text-html-renderer' variable will be -used to render text. If it is nil, text will simply be folded.") - (nnoo-define-basics nnrss) ;;; Interface functions @@ -197,8 +192,6 @@ (deffoo nnrss-close-group (group &optional server) t) -(defvar mm-text-html-renderer) - (deffoo nnrss-request-article (article &optional group server buffer) (setq group (nnrss-decode-group-name group)) (when (stringp article) @@ -239,46 +232,25 @@ (when text (insert text) (goto-char body) - (if (and nnrss-wash-html-in-text-plain-parts - (progn - (require 'mm-view) - (setq fn (or (cdr (assq mm-text-html-renderer - mm-text-html-washer-alist)) - mm-text-html-renderer)))) - (progn - (narrow-to-region body (point-max)) - (if (functionp fn) - (funcall fn) - (apply (car fn) (cdr fn))) - (widen) - (goto-char body) - (re-search-forward "[^\t\n ]" nil t) - (beginning-of-line) - (delete-region body (point)) - (goto-char (point-max)) - (skip-chars-backward "\t\n ") - (end-of-line) - (delete-region (point) (point-max)) - (insert "\n")) - (while (re-search-forward "\n+" nil t) - (replace-match " ")) - (goto-char body) - ;; See `nnrss-check-group', which inserts "

". - (when (search-forward "

" nil t) - (if (eobp) - (replace-match "\n") - (replace-match "\n\n"))) - (unless (eobp) - (let ((fill-column (default-value 'fill-column)) - (window (get-buffer-window nntp-server-buffer))) - (when window - (setq fill-column - (max 1 (/ (* (window-width window) 7) 8)))) - (fill-region (point) (point-max)) - (goto-char (point-max)) - ;; XEmacs version of `fill-region' inserts newline. - (unless (bolp) - (insert "\n"))))) + (while (re-search-forward "\n+" nil t) + (replace-match " ")) + (goto-char body) + ;; See `nnrss-check-group', which inserts "

". + (when (search-forward "

" nil t) + (if (eobp) + (replace-match "\n") + (replace-match "\n\n"))) + (unless (eobp) + (let ((fill-column (default-value 'fill-column)) + (window (get-buffer-window nntp-server-buffer))) + (when window + (setq fill-column + (max 1 (/ (* (window-width window) 7) 8)))) + (fill-region (point) (point-max)) + (goto-char (point-max)) + ;; XEmacs version of `fill-region' inserts newline. + (unless (bolp) + (insert "\n")))) (when (or link enclosure) (insert "\n"))) (when link