changeset 91718:89610dccd10a

(mm-codepage-setup): If cp-supported-codepages isn't fbound (Emacs 23 unicode), signal an error.
author Reiner Steib <Reiner.Steib@gmx.de>
date Sun, 10 Feb 2008 13:08:48 +0000
parents 23bd9edca21f
children 5718a4d5a354
files lisp/gnus/ChangeLog lisp/gnus/mm-util.el
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Sun Feb 10 03:20:40 2008 +0000
+++ b/lisp/gnus/ChangeLog	Sun Feb 10 13:08:48 2008 +0000
@@ -1,3 +1,8 @@
+2008-02-10  Reiner Steib  <Reiner.Steib@gmx.de>
+
+	* mm-util.el (mm-codepage-setup): If cp-supported-codepages isn't
+	fbound (Emacs 23 unicode), signal an error.
+
 2008-02-08  Glenn Morris  <rgm@gnu.org>
 
 	* gnus-art.el (pgg-display-output-buffer): Declare as function.
--- a/lisp/gnus/mm-util.el	Sun Feb 10 03:20:40 2008 +0000
+++ b/lisp/gnus/mm-util.el	Sun Feb 10 13:08:48 2008 +0000
@@ -219,7 +219,10 @@
 the alias.  Else windows-NUMBER is used."
   (interactive
    (let ((completion-ignore-case t)
-	 (candidates (cp-supported-codepages)))
+	 (candidates (if (fboundp 'cp-supported-codepages)
+			 (cp-supported-codepages)
+		       ;; Removed in Emacs 23 (unicode), sosignal an error:
+		       (error "`codepage-setup' is obsolete in this Emacs version."))))
      (list (completing-read "Setup DOS Codepage: (default 437) " candidates
 			    nil t nil nil "437"))))
   (when alias