aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/gnus
diff options
context:
space:
mode:
authorGnus developers2011-02-05 00:11:16 +0000
committerKatsumi Yamaoka2011-02-05 00:11:16 +0000
commitec72bf63aea256f08eaab0f09929dbd327a57178 (patch)
treecb8a306ea92b34aa0333fadf2809356ab1221216 /lisp/gnus
parentf90e08f57d06cfbe99afe968c0c8fe9102802624 (diff)
downloademacs-ec72bf63aea256f08eaab0f09929dbd327a57178.tar.gz
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')
-rw-r--r--lisp/gnus/ChangeLog8
-rw-r--r--lisp/gnus/gnus-sum.el4
-rw-r--r--lisp/gnus/message.el4
-rw-r--r--lisp/gnus/shr.el16
4 files changed, 20 insertions, 12 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 02ec82d06a0..ceef5e5df2b 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,13 @@
12011-02-04 Lars Ingebrigtsen <larsi@gnus.org> 12011-02-04 Lars Ingebrigtsen <larsi@gnus.org>
2 2
3 * message.el (message-setup-1): Remove the read-only stuff, since it
4 doesn't work under XEmacs, for some reason.
5
6 * gnus-sum.el (gnus-user-date): Renamed back from
7 gnus-summary-user-date since user code refers to it.
8
9 * shr.el (shr-render-td): Store the actual background colour used.
10
3 * message.el (message-setup-1): Don't bind the constant 11 * message.el (message-setup-1): Don't bind the constant
4 -forbidden-properties. 12 -forbidden-properties.
5 (message-setup-1): Revert previous change, since it needs to bind the 13 (message-setup-1): Revert previous change, since it needs to bind the
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index c40fcc7fe13..8221667ab65 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -1395,7 +1395,7 @@ the normal Gnus MIME machinery."
1395 (?u gnus-tmp-user-defined ?s) 1395 (?u gnus-tmp-user-defined ?s)
1396 (?P (gnus-pick-line-number) ?d) 1396 (?P (gnus-pick-line-number) ?d)
1397 (?B gnus-tmp-thread-tree-header-string ?s) 1397 (?B gnus-tmp-thread-tree-header-string ?s)
1398 (user-date (gnus-summary-user-date 1398 (user-date (gnus-user-date
1399 ,(macroexpand '(mail-header-date gnus-tmp-header))) ?s)) 1399 ,(macroexpand '(mail-header-date gnus-tmp-header))) ?s))
1400 "An alist of format specifications that can appear in summary lines. 1400 "An alist of format specifications that can appear in summary lines.
1401These are paired with what variables they correspond with, along with 1401These are paired with what variables they correspond with, along with
@@ -3882,7 +3882,7 @@ respectively."
3882(make-obsolete-variable 'gnus-user-date-format-alist 3882(make-obsolete-variable 'gnus-user-date-format-alist
3883 'gnus-summary-user-date-format-alist "24.1") 3883 'gnus-summary-user-date-format-alist "24.1")
3884 3884
3885(defun gnus-summary-user-date (messy-date) 3885(defun gnus-user-date (messy-date)
3886 "Format the messy-date according to `gnus-summary-user-date-format-alist'. 3886 "Format the messy-date according to `gnus-summary-user-date-format-alist'.
3887Returns \" ? \" if there's bad input or if another error occurs. 3887Returns \" ? \" if there's bad input or if another error occurs.
3888Input should look like this: \"Sun, 14 Oct 2001 13:34:39 +0200\"." 3888Input should look like this: \"Sun, 14 Oct 2001 13:34:39 +0200\"."
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 5c24bc886bc..37d64bc5f1b 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -6411,9 +6411,7 @@ are not included."
6411 (funcall message-default-headers) 6411 (funcall message-default-headers)
6412 message-default-headers)) 6412 message-default-headers))
6413 (or (bolp) (insert ?\n))) 6413 (or (bolp) (insert ?\n)))
6414 (let ((message-forbidden-properties nil)) 6414 (insert (concat mail-header-separator "\n"))
6415 (insert (propertize (concat mail-header-separator "\n")
6416 'read-only t 'rear-nonsticky t 'intangible t)))
6417 (forward-line -1) 6415 (forward-line -1)
6418 ;; If a crash happens while replying, the auto-save file would *not* have a 6416 ;; If a crash happens while replying, the auto-save file would *not* have a
6419 ;; `References:' header if `message-generate-headers-first' was nil. 6417 ;; `References:' header if `message-generate-headers-first' was nil.
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."
601 (when fg 601 (when fg
602 (shr-put-color start end :foreground (cadr new-colors))) 602 (shr-put-color start end :foreground (cadr new-colors)))
603 (when bg 603 (when bg
604 (shr-put-color start end :background (car new-colors))))))) 604 (shr-put-color start end :background (car new-colors))))
605 new-colors)))
605 606
606;; Put a color in the region, but avoid putting colors on on blank 607;; Put a color in the region, but avoid putting colors on on blank
607;; text at the start of the line, and the newline at the end, to avoid 608;; 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."
1126 (fgcolor (cdr (assq :fgcolor cont))) 1127 (fgcolor (cdr (assq :fgcolor cont)))
1127 (style (cdr (assq :style cont))) 1128 (style (cdr (assq :style cont)))
1128 (shr-stylesheet shr-stylesheet) 1129 (shr-stylesheet shr-stylesheet)
1129 overlays) 1130 overlays actual-colors)
1130 (when style 1131 (when style
1131 (setq style (and (string-match "color" style) 1132 (setq style (and (string-match "color" style)
1132 (shr-parse-style style)))) 1133 (shr-parse-style style))))
@@ -1178,16 +1179,17 @@ ones, in case fg and bg are nil."
1178 (insert (make-string (- width (current-column)) ? ))) 1179 (insert (make-string (- width (current-column)) ? )))
1179 (forward-line 1))) 1180 (forward-line 1)))
1180 (when style 1181 (when style
1181 (shr-colorize-region 1182 (setq actual-colors
1182 (point-min) (point-max) 1183 (shr-colorize-region
1183 (cdr (assq 'color shr-stylesheet)) 1184 (point-min) (point-max)
1184 (cdr (assq 'background-color shr-stylesheet))))) 1185 (cdr (assq 'color shr-stylesheet))
1186 (cdr (assq 'background-color shr-stylesheet))))))
1185 (if fill 1187 (if fill
1186 (list max 1188 (list max
1187 (count-lines (point-min) (point-max)) 1189 (count-lines (point-min) (point-max))
1188 (split-string (buffer-string) "\n") 1190 (split-string (buffer-string) "\n")
1189 (shr-collect-overlays) 1191 (shr-collect-overlays)
1190 (cdr (assq 'background-color shr-stylesheet))) 1192 (car actual-colors))
1191 (list max 1193 (list max
1192 (shr-natural-width))))))) 1194 (shr-natural-width)))))))
1193 1195