emacs-devel
[Top][All Lists]
Advanced

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

Codepage stuff in mm-util.el


From: Lars Ingebrigtsen
Subject: Codepage stuff in mm-util.el
Date: Sun, 14 Feb 2016 14:13:21 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

There's a lot of functions and variables dealing with code pages in
mm-util.el.  Reading the comments in the code and grepping for the
functions that it eventually calls, I get the feeling that this has all
been made obsolete in Emacs 25?  Is that correct?

Below are snippets from most of these functions.

(defun mm-codepage-setup (number &optional alias)

[...]

         (candidates (if (fboundp 'cp-supported-codepages)
                         (cp-supported-codepages)
                       ;; Removed in Emacs 23 (unicode), so signal an error:
                       (error "`codepage-setup' not present in this Emacs 
version"))))
     (list (gnus-completing-read "Setup DOS Codepage" candidates

[...]

(defcustom mm-codepage-iso-8859-list
  (list 1250 ;; Windows-1250 is a variant of Latin-2 heavily used by Microsoft
        ;; Outlook users in Czech republic.  Use this to allow reading of

[...]

(defcustom mm-codepage-ibm-list
  (list 437 ;; (US etc.)
        860 ;; (Portugal)
        861 ;; (Iceland)

[...]

  ;; In Emacs 23 (unicode), cp... and ibm... are aliases.
  ;; Cf. http://thread.gmane.org/address@hidden
  "List of IBM codepage numbers.

[...]


(defun mm-setup-codepage-iso-8859 (&optional list)
  "Add appropriate entries to `mm-charset-synonym-alist'.

[...]

(defun mm-setup-codepage-ibm (&optional list)
  "Add appropriate entries to `mm-charset-synonym-alist'.

[...]

;; Note: this has to be defined before `mm-charset-to-coding-system'.
(defcustom mm-charset-eval-alist
  '(
    ;; Emacs 22 provides autoloads for 1250-1258
    ;; (i.e. `mm-codepage-setup' does nothing).
    (windows-1250 . (mm-codepage-setup 1250 t))
    (windows-1251 . (mm-codepage-setup 1251 t))

[...]

(defun mm-charset-to-coding-system (charset &optional lbt
                                            allow-override silent)
  "Return coding-system corresponding to CHARSET.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




reply via email to

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