diff options
| author | Miles Bader | 2005-06-30 05:31:53 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-06-30 05:31:53 +0000 |
| commit | d6697c02929d3674328557cbf765d249b4aa2a94 (patch) | |
| tree | cabb1a609203575fe24ea2396da8eb9a99bd1968 | |
| parent | c665bf4b66a6415b1d34627684b4fa3c8ba0d062 (diff) | |
| download | emacs-d6697c02929d3674328557cbf765d249b4aa2a94.tar.gz emacs-d6697c02929d3674328557cbf765d249b4aa2a94.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-461
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 86)
- Update from CVS
2005-06-30 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-art.el (article-display-face): Correct the position in
which Faces are inserted; use dolist.
2005-06-29 Didier Verna <didier@xemacs.org>
* lisp/gnus/gnus-art.el (article-display-face): display faces in correct
order.
| -rw-r--r-- | lisp/gnus/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 30 |
2 files changed, 26 insertions, 14 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 1f305f3adeb..f11cff564c3 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2005-06-30 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-art.el (article-display-face): Correct the position in | ||
| 4 | which Faces are inserted; use dolist. | ||
| 5 | |||
| 6 | 2005-06-29 Didier Verna <didier@xemacs.org> | ||
| 7 | |||
| 8 | * gnus-art.el (article-display-face): display faces in correct | ||
| 9 | order. | ||
| 10 | |||
| 1 | 2005-06-29 Katsumi Yamaoka <yamaoka@jpl.org> | 11 | 2005-06-29 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 12 | ||
| 3 | * gnus-nocem.el (gnus-nocem-verifyer): Default to pgg-verify. | 13 | * gnus-nocem.el (gnus-nocem-verifyer): Default to pgg-verify. |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index b92ce8616d5..d8ca1877997 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -2123,7 +2123,8 @@ unfolded." | |||
| 2123 | ;; read-only. | 2123 | ;; read-only. |
| 2124 | (if (and wash-face-p (memq 'face gnus-article-wash-types)) | 2124 | (if (and wash-face-p (memq 'face gnus-article-wash-types)) |
| 2125 | (gnus-delete-images 'face) | 2125 | (gnus-delete-images 'face) |
| 2126 | (let (face faces) | 2126 | (let ((from (gnus-article-goto-header "from")) |
| 2127 | face faces) | ||
| 2127 | (save-excursion | 2128 | (save-excursion |
| 2128 | (when (and wash-face-p | 2129 | (when (and wash-face-p |
| 2129 | (progn | 2130 | (progn |
| @@ -2135,19 +2136,20 @@ unfolded." | |||
| 2135 | (mail-narrow-to-head) | 2136 | (mail-narrow-to-head) |
| 2136 | (while (gnus-article-goto-header "Face") | 2137 | (while (gnus-article-goto-header "Face") |
| 2137 | (push (mail-header-field-value) faces)))) | 2138 | (push (mail-header-field-value) faces)))) |
| 2138 | (while (setq face (pop faces)) | 2139 | (when faces |
| 2139 | (let ((png (gnus-convert-face-to-png face)) | 2140 | (unless from |
| 2140 | image) | 2141 | (insert "From:") |
| 2141 | (when png | 2142 | (setq from (point)) |
| 2142 | (setq image (gnus-create-image png 'png t)) | 2143 | (insert "[no `from' set]\n")) |
| 2143 | (gnus-article-goto-header "from") | 2144 | (dolist (face faces) |
| 2144 | (when (bobp) | 2145 | (let ((png (gnus-convert-face-to-png face)) |
| 2145 | (insert "From: [no `from' set]\n") | 2146 | image) |
| 2146 | (forward-char -17)) | 2147 | (when png |
| 2147 | (gnus-add-wash-type 'face) | 2148 | (setq image (gnus-create-image png 'png t)) |
| 2148 | (gnus-add-image 'face image) | 2149 | (goto-char from) |
| 2149 | (gnus-put-image image nil 'face)))))) | 2150 | (gnus-add-wash-type 'face) |
| 2150 | ))) | 2151 | (gnus-add-image 'face image) |
| 2152 | (gnus-put-image image nil 'face)))))))))) | ||
| 2151 | 2153 | ||
| 2152 | (defun article-display-x-face (&optional force) | 2154 | (defun article-display-x-face (&optional force) |
| 2153 | "Look for an X-Face header and display it if present." | 2155 | "Look for an X-Face header and display it if present." |