diff options
| author | Glenn Morris | 2008-10-02 17:27:35 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-10-02 17:27:35 +0000 |
| commit | 06b2d4c6a24366698449c4789b5864ad7caa9338 (patch) | |
| tree | 499d5ed71a2a2038855bb06cf52032cf40115731 | |
| parent | c8f55af59402db1c0f01b4fe3646001488c99740 (diff) | |
| download | emacs-06b2d4c6a24366698449c4789b5864ad7caa9338.tar.gz emacs-06b2d4c6a24366698449c4789b5864ad7caa9338.zip | |
(mm-codepage-setup): Tweak codepage error. Silence compiler warning.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/mm-util.el | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 98538473b3d..ef5add779b8 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-10-02 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mm-util.el (mm-codepage-setup): Tweak codepage error. | ||
| 4 | Silence compiler warning. | ||
| 5 | |||
| 1 | 2008-09-30 Chong Yidong <cyd@stupidchicken.com> | 6 | 2008-09-30 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * mml.el (mml-menu): Don't assume mml2015 is bound. | 8 | * mml.el (mml-menu): Don't assume mml2015 is bound. |
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el index 453beae5216..383b1b87916 100644 --- a/lisp/gnus/mm-util.el +++ b/lisp/gnus/mm-util.el | |||
| @@ -220,8 +220,8 @@ the alias. Else windows-NUMBER is used." | |||
| 220 | (let ((completion-ignore-case t) | 220 | (let ((completion-ignore-case t) |
| 221 | (candidates (if (fboundp 'cp-supported-codepages) | 221 | (candidates (if (fboundp 'cp-supported-codepages) |
| 222 | (cp-supported-codepages) | 222 | (cp-supported-codepages) |
| 223 | ;; Removed in Emacs 23 (unicode), sosignal an error: | 223 | ;; Removed in Emacs 23 (unicode), so signal an error: |
| 224 | (error "`codepage-setup' is obsolete in this Emacs version.")))) | 224 | (error "`codepage-setup' not present in this Emacs version.")))) |
| 225 | (list (completing-read "Setup DOS Codepage: (default 437) " candidates | 225 | (list (completing-read "Setup DOS Codepage: (default 437) " candidates |
| 226 | nil t nil nil "437")))) | 226 | nil t nil nil "437")))) |
| 227 | (when alias | 227 | (when alias |
| @@ -230,7 +230,9 @@ the alias. Else windows-NUMBER is used." | |||
| 230 | (intern (format "windows-%s" number))))) | 230 | (intern (format "windows-%s" number))))) |
| 231 | (let* ((cp (intern (format "cp%s" number)))) | 231 | (let* ((cp (intern (format "cp%s" number)))) |
| 232 | (unless (mm-coding-system-p cp) | 232 | (unless (mm-coding-system-p cp) |
| 233 | (codepage-setup number)) | 233 | (if (fboundp 'codepage-setup) ; silence compiler |
| 234 | (codepage-setup number) | ||
| 235 | (error "`codepage-setup' not present in this Emacs version."))) | ||
| 234 | (when (and alias | 236 | (when (and alias |
| 235 | ;; Don't add alias if setup of cp failed. | 237 | ;; Don't add alias if setup of cp failed. |
| 236 | (mm-coding-system-p cp)) | 238 | (mm-coding-system-p cp)) |