emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cp-supported-codepages


From: Reiner Steib
Subject: Re: cp-supported-codepages
Date: Fri, 08 Feb 2008 23:34:44 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.90 (gnu/linux)

On Fri, Feb 08 2008, Glenn Morris wrote:

> Glenn Morris wrote:
>> cp-supported-codepages seems to have been removed from
>> lisp/international/codepage, but there is no associated ChangeLog or
>> NEWS entry.
>>
>> mm-codepage-setup in gnus/mm-util uses it.

`mm-codepage-setup' is a basically a no-op already in Emacs 22 since
we have autoloads for the cpNUMBER and windows-NUMBER coding systems.

> Added to FOR-RELEASE.

How about the following patch?

--8<---------------cut here---------------start------------->8---
--- mm-util.el  02 Feb 2008 11:28:36 +0100      1.67
+++ mm-util.el  08 Feb 2008 23:30:58 +0100      
@@ -219,7 +219,9 @@
 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)
+                      (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
--8<---------------cut here---------------end--------------->8---

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]