* gnus-art.el (article-display-x-face): Don't gather X-Face fields in
[elisp/gnus.git-] / lisp / gnus-art.el
index 1800e82..2795f70 100644 (file)
@@ -1737,41 +1737,41 @@ MAP is an alist where the elements are on the form (\"from\" \"to\")."
          from last)
       (save-restriction
        (article-narrow-to-head)
-       (when (and buffer-read-only ;; When type `W f'
-                  (progn
-                    (goto-char (point-min))
-                    (not (re-search-forward "^X-Face:[\t ]*" nil t)))
-                  (gnus-buffer-live-p gnus-original-article-buffer))
-         (with-current-buffer gnus-original-article-buffer
-           (save-restriction
-             (article-narrow-to-head)
-             (while (re-search-forward "^X-Face:" nil t)
-               (setq x-faces
-                     (concat
-                      (or x-faces "")
-                      (buffer-substring
-                       (match-beginning 0)
-                       (1- (re-search-forward
-                            "^\\($\\|[^ \t]\\)" nil t))))))))
-         (if x-faces
-             (let (point start bface eface buffer-read-only)
-               (goto-char (point-max))
-               (forward-line -1)
-               (setq bface (get-text-property (gnus-point-at-bol) 'face)
-                     eface (get-text-property (1- (gnus-point-at-eol)) 'face))
-               (goto-char (point-max))
-               (setq point (point))
-               (insert x-faces)
-               (goto-char point)
-               (while (looking-at "\\([^:]+\\): *")
-                 (put-text-property (match-beginning 1) (1+ (match-end 1))
-                                    'face bface)
-                 (setq start (match-end 0))
-                 (forward-line 1)
-                 (while (looking-at "[\t ]")
-                   (forward-line 1))
-                 (put-text-property start (point)
-                                    'face eface)))))
+;;     (when (and buffer-read-only ;; When type `W f'
+;;                (progn
+;;                  (goto-char (point-min))
+;;                  (not (re-search-forward "^X-Face:[\t ]*" nil t)))
+;;                (gnus-buffer-live-p gnus-original-article-buffer))
+;;       (with-current-buffer gnus-original-article-buffer
+;;         (save-restriction
+;;           (article-narrow-to-head)
+;;           (while (re-search-forward "^X-Face:" nil t)
+;;             (setq x-faces
+;;                   (concat
+;;                    (or x-faces "")
+;;                    (buffer-substring
+;;                     (match-beginning 0)
+;;                     (1- (re-search-forward
+;;                          "^\\($\\|[^ \t]\\)" nil t))))))))
+;;       (if x-faces
+;;           (let (point start bface eface buffer-read-only)
+;;             (goto-char (point-max))
+;;             (forward-line -1)
+;;             (setq bface (get-text-property (gnus-point-at-bol) 'face)
+;;                   eface (get-text-property (1- (gnus-point-at-eol)) 'face))
+;;             (goto-char (point-max))
+;;             (setq point (point))
+;;             (insert x-faces)
+;;             (goto-char point)
+;;             (while (looking-at "\\([^:]+\\): *")
+;;               (put-text-property (match-beginning 1) (1+ (match-end 1))
+;;                                  'face bface)
+;;               (setq start (match-end 0))
+;;               (forward-line 1)
+;;               (while (looking-at "[\t ]")
+;;                 (forward-line 1))
+;;               (put-text-property start (point)
+;;                                  'face eface)))))
        (goto-char (point-min))
        (setq from (message-fetch-field "from"))
        (goto-char (point-min))