diff options
| author | Miles Bader | 2008-12-17 00:34:16 +0000 |
|---|---|---|
| committer | Miles Bader | 2008-12-17 00:34:16 +0000 |
| commit | bf46b4d4282fd8411876052b759eab7891d0fba9 (patch) | |
| tree | 58e01f1825c98a72a70c2ff2af1e2f947711c3e0 /lisp | |
| parent | 35f372cadfaf129d62e81951d4516c687b67d189 (diff) | |
| download | emacs-bf46b4d4282fd8411876052b759eab7891d0fba9.tar.gz emacs-bf46b4d4282fd8411876052b759eab7891d0fba9.zip | |
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1500
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/gnus/gnus-start.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/mm-util.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/mml.el | 7 |
4 files changed, 28 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 788957acd20..14ac0aa89dc 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -4,6 +4,19 @@ | |||
| 4 | 4 | ||
| 5 | 2008-12-15 Katsumi Yamaoka <yamaoka@jpl.org> | 5 | 2008-12-15 Katsumi Yamaoka <yamaoka@jpl.org> |
| 6 | 6 | ||
| 7 | * mml.el (mml-generate-mime-1): Prefer the MIME charset that Emacs | ||
| 8 | knows since the charset specified might be a bogus alias that | ||
| 9 | mm-charset-synonym-alist provides. | ||
| 10 | |||
| 11 | 2008-12-15 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 12 | |||
| 13 | * mm-util.el (mm-charset-synonym-alist): Add bogus names "UTF8" and | ||
| 14 | "ISO_8859-1". | ||
| 15 | |||
| 16 | * gnus-start.el (gnus-backup-startup-file): Improve doc string. | ||
| 17 | |||
| 18 | 2008-12-15 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 19 | |||
| 7 | * mm-util.el (mm-charset-eval-alist): | 20 | * mm-util.el (mm-charset-eval-alist): |
| 8 | Define it before mm-charset-to-coding-system. | 21 | Define it before mm-charset-to-coding-system. |
| 9 | (mm-charset-to-coding-system): Add optional argument `silent'; | 22 | (mm-charset-to-coding-system): Add optional argument `silent'; |
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index f28bc17eccc..773f8203e4b 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -50,7 +50,7 @@ | |||
| 50 | :type 'file) | 50 | :type 'file) |
| 51 | 51 | ||
| 52 | (defcustom gnus-backup-startup-file 'never | 52 | (defcustom gnus-backup-startup-file 'never |
| 53 | "Whether to create backup files. | 53 | "Control use of version numbers for backups of `gnus-startup-file'. |
| 54 | This variable takes the same values as the `version-control' | 54 | This variable takes the same values as the `version-control' |
| 55 | variable." | 55 | variable." |
| 56 | :version "22.1" | 56 | :version "22.1" |
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el index 1d23050b364..1c28f375db0 100644 --- a/lisp/gnus/mm-util.el +++ b/lisp/gnus/mm-util.el | |||
| @@ -269,10 +269,18 @@ the alias. Else windows-NUMBER is used." | |||
| 269 | ,@(when (and (not (mm-coding-system-p 'gbk)) | 269 | ,@(when (and (not (mm-coding-system-p 'gbk)) |
| 270 | (mm-coding-system-p 'cp936)) | 270 | (mm-coding-system-p 'cp936)) |
| 271 | '((gbk . cp936))) | 271 | '((gbk . cp936))) |
| 272 | ;; UTF8 is a bogus name for UTF-8 | ||
| 273 | ,@(when (and (not (mm-coding-system-p 'utf8)) | ||
| 274 | (mm-coding-system-p 'utf-8)) | ||
| 275 | '((utf8 . utf-8))) | ||
| 272 | ;; ISO8859-1 is a bogus name for ISO-8859-1 | 276 | ;; ISO8859-1 is a bogus name for ISO-8859-1 |
| 273 | ,@(when (and (not (mm-coding-system-p 'iso8859-1)) | 277 | ,@(when (and (not (mm-coding-system-p 'iso8859-1)) |
| 274 | (mm-coding-system-p 'iso-8859-1)) | 278 | (mm-coding-system-p 'iso-8859-1)) |
| 275 | '((iso8859-1 . iso-8859-1))) | 279 | '((iso8859-1 . iso-8859-1))) |
| 280 | ;; ISO_8859-1 is a bogus name for ISO-8859-1 | ||
| 281 | ,@(when (and (not (mm-coding-system-p 'iso_8859-1)) | ||
| 282 | (mm-coding-system-p 'iso-8859-1)) | ||
| 283 | '((iso_8859-1 . iso-8859-1))) | ||
| 276 | ) | 284 | ) |
| 277 | "A mapping from unknown or invalid charset names to the real charset names. | 285 | "A mapping from unknown or invalid charset names to the real charset names. |
| 278 | 286 | ||
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el index f8968fbcb7c..3e3cb2ccda4 100644 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el | |||
| @@ -482,7 +482,12 @@ If MML is non-nil, return the buffer up till the correspondent mml tag." | |||
| 482 | (setq charset nil | 482 | (setq charset nil |
| 483 | coding nil)) | 483 | coding nil)) |
| 484 | (charset | 484 | (charset |
| 485 | (setq charset (intern (downcase charset))))) | 485 | ;; The value of `charset' might be a bogus alias that |
| 486 | ;; `mm-charset-synonym-alist' provides, like `utf8', | ||
| 487 | ;; so we prefer the MIME charset that Emacs knows for | ||
| 488 | ;; the coding system `coding'. | ||
| 489 | (setq charset (or (mm-coding-system-to-mime-charset coding) | ||
| 490 | (intern (downcase charset)))))) | ||
| 486 | (if (and (not raw) | 491 | (if (and (not raw) |
| 487 | (member (car (split-string type "/")) '("text" "message"))) | 492 | (member (car (split-string type "/")) '("text" "message"))) |
| 488 | (progn | 493 | (progn |