diff options
| author | Miles Bader | 2007-07-15 04:45:41 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-07-15 04:45:41 +0000 |
| commit | 82fe1aeda6647e15874f7c7c5299f82abd2cbb5c (patch) | |
| tree | 3134773397711be9094b21e9099875985aae7f8e | |
| parent | 43335a6daa744619f87a48c358f155c7e80199bc (diff) | |
| download | emacs-82fe1aeda6647e15874f7c7c5299f82abd2cbb5c.tar.gz emacs-82fe1aeda6647e15874f7c7c5299f82abd2cbb5c.zip | |
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 235-236)
- Update from CVS
2007-07-13 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-srvr.el (gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Remove variable.
(gnus-server-font-lock-keywords): Use faces that are not aliases.
* lisp/gnus/mm-util.el (mm-decode-coding-string, mm-encode-coding-string)
(mm-decode-coding-region, mm-encode-coding-region): Don't modify string
if the coding-system argument is nil for XEmacs.
* lisp/gnus/nnrss.el (nnrss-compatible-encoding-alist): Inherit the value of
mm-charset-override-alist.
* lisp/gnus/rfc2047.el: Don't require base64; require rfc2045 for the function
rfc2045-encode-string.
(rfc2047-encode-parameter): Use rfc2045-encode-string to quote or not
to quote the parameter value.
Revision: emacs@sv.gnu.org/emacs--rel--22--patch-58
| -rw-r--r-- | lisp/gnus/ChangeLog | 19 | ||||
| -rw-r--r-- | lisp/gnus/gnus-srvr.el | 41 | ||||
| -rw-r--r-- | lisp/gnus/mm-util.el | 34 | ||||
| -rw-r--r-- | lisp/gnus/nnrss.el | 7 | ||||
| -rw-r--r-- | lisp/gnus/rfc2047.el | 11 |
5 files changed, 63 insertions, 49 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 6ff604ab53f..5e45df2e902 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,22 @@ | |||
| 1 | 2007-07-13 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-srvr.el (gnus-server-agent-face, gnus-server-opened-face) | ||
| 4 | (gnus-server-closed-face, gnus-server-denied-face) | ||
| 5 | (gnus-server-offline-face): Remove variable. | ||
| 6 | (gnus-server-font-lock-keywords): Use faces that are not aliases. | ||
| 7 | |||
| 8 | * mm-util.el (mm-decode-coding-string, mm-encode-coding-string) | ||
| 9 | (mm-decode-coding-region, mm-encode-coding-region): Don't modify string | ||
| 10 | if the coding-system argument is nil for XEmacs. | ||
| 11 | |||
| 12 | * nnrss.el (nnrss-compatible-encoding-alist): Inherit the value of | ||
| 13 | mm-charset-override-alist. | ||
| 14 | |||
| 15 | * rfc2047.el: Don't require base64; require rfc2045 for the function | ||
| 16 | rfc2045-encode-string. | ||
| 17 | (rfc2047-encode-parameter): Use rfc2045-encode-string to quote or not | ||
| 18 | to quote the parameter value. | ||
| 19 | |||
| 1 | 2007-07-04 Katsumi Yamaoka <yamaoka@jpl.org> | 20 | 2007-07-04 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 21 | ||
| 3 | * gnus-sum.el (gnus-summary-catchup): Don't recognize cached articles | 22 | * gnus-sum.el (gnus-summary-catchup): Don't recognize cached articles |
diff --git a/lisp/gnus/gnus-srvr.el b/lisp/gnus/gnus-srvr.el index f6804f3b114..0d5443f576c 100644 --- a/lisp/gnus/gnus-srvr.el +++ b/lisp/gnus/gnus-srvr.el | |||
| @@ -214,43 +214,12 @@ If nil, a faster, but more primitive, buffer is used instead." | |||
| 214 | ;; backward-compatibility alias | 214 | ;; backward-compatibility alias |
| 215 | (put 'gnus-server-offline-face 'face-alias 'gnus-server-offline) | 215 | (put 'gnus-server-offline-face 'face-alias 'gnus-server-offline) |
| 216 | 216 | ||
| 217 | (defcustom gnus-server-agent-face 'gnus-server-agent | ||
| 218 | "Face name to use on AGENTIZED servers." | ||
| 219 | :version "22.1" | ||
| 220 | :group 'gnus-server-visual | ||
| 221 | :type 'face) | ||
| 222 | |||
| 223 | (defcustom gnus-server-opened-face 'gnus-server-opened | ||
| 224 | "Face name to use on OPENED servers." | ||
| 225 | :version "22.1" | ||
| 226 | :group 'gnus-server-visual | ||
| 227 | :type 'face) | ||
| 228 | |||
| 229 | (defcustom gnus-server-closed-face 'gnus-server-closed | ||
| 230 | "Face name to use on CLOSED servers." | ||
| 231 | :version "22.1" | ||
| 232 | :group 'gnus-server-visual | ||
| 233 | :type 'face) | ||
| 234 | |||
| 235 | (defcustom gnus-server-denied-face 'gnus-server-denied | ||
| 236 | "Face name to use on DENIED servers." | ||
| 237 | :version "22.1" | ||
| 238 | :group 'gnus-server-visual | ||
| 239 | :type 'face) | ||
| 240 | |||
| 241 | (defcustom gnus-server-offline-face 'gnus-server-offline | ||
| 242 | "Face name to use on OFFLINE servers." | ||
| 243 | :version "22.1" | ||
| 244 | :group 'gnus-server-visual | ||
| 245 | :type 'face) | ||
| 246 | |||
| 247 | (defvar gnus-server-font-lock-keywords | 217 | (defvar gnus-server-font-lock-keywords |
| 248 | (list | 218 | '(("(\\(agent\\))" 1 gnus-server-agent) |
| 249 | '("(\\(agent\\))" 1 gnus-server-agent-face) | 219 | ("(\\(opened\\))" 1 gnus-server-opened) |
| 250 | '("(\\(opened\\))" 1 gnus-server-opened-face) | 220 | ("(\\(closed\\))" 1 gnus-server-closed) |
| 251 | '("(\\(closed\\))" 1 gnus-server-closed-face) | 221 | ("(\\(offline\\))" 1 gnus-server-offline) |
| 252 | '("(\\(offline\\))" 1 gnus-server-offline-face) | 222 | ("(\\(denied\\))" 1 gnus-server-denied))) |
| 253 | '("(\\(denied\\))" 1 gnus-server-denied-face))) | ||
| 254 | 223 | ||
| 255 | (defun gnus-server-mode () | 224 | (defun gnus-server-mode () |
| 256 | "Major mode for listing and editing servers. | 225 | "Major mode for listing and editing servers. |
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el index 742bbc223ae..8933edaf42c 100644 --- a/lisp/gnus/mm-util.el +++ b/lisp/gnus/mm-util.el | |||
| @@ -36,11 +36,7 @@ | |||
| 36 | (if (fboundp (car elem)) | 36 | (if (fboundp (car elem)) |
| 37 | (defalias nfunc (car elem)) | 37 | (defalias nfunc (car elem)) |
| 38 | (defalias nfunc (cdr elem))))) | 38 | (defalias nfunc (cdr elem))))) |
| 39 | '((decode-coding-string . (lambda (s a) s)) | 39 | '((coding-system-list . ignore) |
| 40 | (encode-coding-string . (lambda (s a) s)) | ||
| 41 | (encode-coding-region . ignore) | ||
| 42 | (coding-system-list . ignore) | ||
| 43 | (decode-coding-region . ignore) | ||
| 44 | (char-int . identity) | 40 | (char-int . identity) |
| 45 | (coding-system-equal . equal) | 41 | (coding-system-equal . equal) |
| 46 | (annotationp . ignore) | 42 | (annotationp . ignore) |
| @@ -97,6 +93,34 @@ | |||
| 97 | (multibyte-char-to-unibyte . identity)))) | 93 | (multibyte-char-to-unibyte . identity)))) |
| 98 | 94 | ||
| 99 | (eval-and-compile | 95 | (eval-and-compile |
| 96 | (if (featurep 'xemacs) | ||
| 97 | (if (featurep 'file-coding) | ||
| 98 | ;; Don't modify string if CODING-SYSTEM is nil. | ||
| 99 | (progn | ||
| 100 | (defun mm-decode-coding-string (str coding-system) | ||
| 101 | (if coding-system | ||
| 102 | (decode-coding-string str coding-system) | ||
| 103 | str)) | ||
| 104 | (defun mm-encode-coding-string (str coding-system) | ||
| 105 | (if coding-system | ||
| 106 | (encode-coding-string str coding-system) | ||
| 107 | str)) | ||
| 108 | (defun mm-decode-coding-region (start end coding-system) | ||
| 109 | (if coding-system | ||
| 110 | (decode-coding-region start end coding-system))) | ||
| 111 | (defun mm-encode-coding-region (start end coding-system) | ||
| 112 | (if coding-system | ||
| 113 | (encode-coding-region start end coding-system)))) | ||
| 114 | (defun mm-decode-coding-string (str coding-system) str) | ||
| 115 | (defun mm-encode-coding-string (str coding-system) str) | ||
| 116 | (defalias 'mm-decode-coding-region 'ignore) | ||
| 117 | (defalias 'mm-encode-coding-region 'ignore)) | ||
| 118 | (defalias 'mm-decode-coding-string 'decode-coding-string) | ||
| 119 | (defalias 'mm-encode-coding-string 'encode-coding-string) | ||
| 120 | (defalias 'mm-decode-coding-region 'decode-coding-region) | ||
| 121 | (defalias 'mm-encode-coding-region 'encode-coding-region))) | ||
| 122 | |||
| 123 | (eval-and-compile | ||
| 100 | (cond | 124 | (cond |
| 101 | ((fboundp 'replace-in-string) | 125 | ((fboundp 'replace-in-string) |
| 102 | (defalias 'mm-replace-in-string 'replace-in-string)) | 126 | (defalias 'mm-replace-in-string 'replace-in-string)) |
diff --git a/lisp/gnus/nnrss.el b/lisp/gnus/nnrss.el index 996783e69b6..1f7e5ba1de9 100644 --- a/lisp/gnus/nnrss.el +++ b/lisp/gnus/nnrss.el | |||
| @@ -85,7 +85,12 @@ ARTICLE is the article number of the current headline.") | |||
| 85 | (defvar nnrss-file-coding-system mm-universal-coding-system | 85 | (defvar nnrss-file-coding-system mm-universal-coding-system |
| 86 | "Coding system used when reading and writing files.") | 86 | "Coding system used when reading and writing files.") |
| 87 | 87 | ||
| 88 | (defvar nnrss-compatible-encoding-alist '((iso-8859-1 . windows-1252)) | 88 | (defvar nnrss-compatible-encoding-alist |
| 89 | (delq nil (mapcar (lambda (elem) | ||
| 90 | (if (and (mm-coding-system-p (car elem)) | ||
| 91 | (mm-coding-system-p (cdr elem))) | ||
| 92 | elem)) | ||
| 93 | mm-charset-override-alist)) | ||
| 89 | "Alist of encodings and those supersets. | 94 | "Alist of encodings and those supersets. |
| 90 | The cdr of each element is used to decode data if it is available when | 95 | The cdr of each element is used to decode data if it is available when |
| 91 | the car is what the data specify as the encoding. Or, the car is used | 96 | the car is what the data specify as the encoding. Or, the car is used |
diff --git a/lisp/gnus/rfc2047.el b/lisp/gnus/rfc2047.el index 6dc432daf79..3cf2940e031 100644 --- a/lisp/gnus/rfc2047.el +++ b/lisp/gnus/rfc2047.el | |||
| @@ -55,7 +55,7 @@ Value is what BODY returns." | |||
| 55 | (require 'ietf-drums) | 55 | (require 'ietf-drums) |
| 56 | ;; Fixme: Avoid this (used for mail-parse-charset) mm dependence on gnus. | 56 | ;; Fixme: Avoid this (used for mail-parse-charset) mm dependence on gnus. |
| 57 | (require 'mail-prsvr) | 57 | (require 'mail-prsvr) |
| 58 | (require 'base64) | 58 | (require 'rfc2045) ;; rfc2045-encode-string |
| 59 | (autoload 'mm-body-7-or-8 "mm-bodies") | 59 | (autoload 'mm-body-7-or-8 "mm-bodies") |
| 60 | 60 | ||
| 61 | (eval-and-compile | 61 | (eval-and-compile |
| @@ -832,12 +832,9 @@ it, put the following line in your ~/.gnus.el file: | |||
| 832 | 832 | ||
| 833 | \(defalias 'mail-header-encode-parameter 'rfc2047-encode-parameter) | 833 | \(defalias 'mail-header-encode-parameter 'rfc2047-encode-parameter) |
| 834 | " | 834 | " |
| 835 | (let* ((rfc2047-encoding-type 'mime) | 835 | (let ((rfc2047-encoding-type 'mime) |
| 836 | (rfc2047-encode-max-chars nil) | 836 | (rfc2047-encode-max-chars nil)) |
| 837 | (string (rfc2047-encode-string value))) | 837 | (rfc2045-encode-string param (rfc2047-encode-string value)))) |
| 838 | (if (string-match (concat "[" ietf-drums-tspecials "]") string) | ||
| 839 | (format "%s=%S" param string) | ||
| 840 | (concat param "=" string)))) | ||
| 841 | 838 | ||
| 842 | ;;; | 839 | ;;; |
| 843 | ;;; Functions for decoding RFC2047 messages | 840 | ;;; Functions for decoding RFC2047 messages |