summaryrefslogtreecommitdiff
path: root/lisp/gnus/shr.el
diff options
context:
space:
mode:
authorGnus developers <ding@gnus.org>2011-02-05 00:11:16 +0000
committerKatsumi Yamaoka <yamaoka@jpl.org>2011-02-05 00:11:16 +0000
commitec72bf63aea256f08eaab0f09929dbd327a57178 (patch)
treecb8a306ea92b34aa0333fadf2809356ab1221216 /lisp/gnus/shr.el
parentf90e08f57d06cfbe99afe968c0c8fe9102802624 (diff)
downloademacs-ec72bf63aea256f08eaab0f09929dbd327a57178.tar.gz
emacs-ec72bf63aea256f08eaab0f09929dbd327a57178.tar.bz2
emacs-ec72bf63aea256f08eaab0f09929dbd327a57178.zip
Merge changes made in Gnus trunk.
shr.el (shr-render-td): Store the actual background colour used. gnus-sum.el (gnus-user-date): Renamed back from gnus-summary-user-date since user code refers to it. auth-source.el: Rewrite. gnus.texi: Add DEVEL header (suggested by Andreas Schwab). WEBHACKDEVEL work: Makefile.in (webhack, nowebhack): Hacks to produce for-the-web manuals. auth.texi: Use WEBHACKDEVEL. emacs-mime.texi: Use WEBHACKDEVEL. gnus.texi: Use WEBHACKDEVEL. message.texi: Use WEBHACKDEVEL. pgg.texi: Use WEBHACKDEVEL. sasl.texi: Use WEBHACKDEVEL. sieve.texi: Use WEBHACKDEVEL. overrides.texi: New file to set or clear WEBHACKDEVEL. message.el (message-setup-1): Remove the read-only stuff, since it doesn't work under XEmacs, for some reason.
Diffstat (limited to 'lisp/gnus/shr.el')
-rw-r--r--lisp/gnus/shr.el16
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index 10e04a87d93..5b4e6c7389d 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -601,7 +601,8 @@ ones, in case fg and bg are nil."
(when fg
(shr-put-color start end :foreground (cadr new-colors)))
(when bg
- (shr-put-color start end :background (car new-colors)))))))
+ (shr-put-color start end :background (car new-colors))))
+ new-colors)))
;; Put a color in the region, but avoid putting colors on on blank
;; text at the start of the line, and the newline at the end, to avoid
@@ -1126,7 +1127,7 @@ ones, in case fg and bg are nil."
(fgcolor (cdr (assq :fgcolor cont)))
(style (cdr (assq :style cont)))
(shr-stylesheet shr-stylesheet)
- overlays)
+ overlays actual-colors)
(when style
(setq style (and (string-match "color" style)
(shr-parse-style style))))
@@ -1178,16 +1179,17 @@ ones, in case fg and bg are nil."
(insert (make-string (- width (current-column)) ? )))
(forward-line 1)))
(when style
- (shr-colorize-region
- (point-min) (point-max)
- (cdr (assq 'color shr-stylesheet))
- (cdr (assq 'background-color shr-stylesheet)))))
+ (setq actual-colors
+ (shr-colorize-region
+ (point-min) (point-max)
+ (cdr (assq 'color shr-stylesheet))
+ (cdr (assq 'background-color shr-stylesheet))))))
(if fill
(list max
(count-lines (point-min) (point-max))
(split-string (buffer-string) "\n")
(shr-collect-overlays)
- (cdr (assq 'background-color shr-stylesheet)))
+ (car actual-colors))
(list max
(shr-natural-width)))))))