- (foldr (function
- (lambda (a cell)
- (if (boundp (cdr cell))
- (cons (cons (car cell) (symbol-value (cdr cell))) a)
- a)))
- nil
- '(("ISO-2022-JP" . *junet*)
- ("ISO-2022-KR" . *iso-2022-kr*)
- ("EUC-KR" . *euc-kr*)
- ("ISO-8859-1" . *ctext*)
- ("ISO-8859-2" . *iso-8859-2*)
- ("ISO-8859-3" . *iso-8859-3*)
- ("ISO-8859-4" . *iso-8859-4*)
- ("ISO-8859-5" . *iso-8859-5*)
- ("KOI8-R" . *koi8*)
- ("ISO-8859-7" . *iso-8859-7*)
- ("ISO-8859-8" . *iso-8859-8*)
- ("ISO-8859-9" . *iso-8859-9*)
- ("ISO-2022-JP-2" . *iso-2022-ss2-7*)
- ("X-ISO-2022-JP-2" . *iso-2022-ss2-7*)
- ("ISO-2022-INT-1" . *iso-2022-int-1*)
- ("SHIFT_JIS" . *sjis*)
- ("X-SHIFTJIS" . *sjis*)
- ("BIG5" . *big5*)
- )))
+ (let* (csl
+ (f (if (and running-xemacs-20 (featurep 'mule))
+ (progn
+ (setq csl (coding-system-list))
+ (function
+ (lambda (a cell)
+ (if (memq (cdr cell) csl)
+ (cons cell a)
+ a))))
+ (function
+ (lambda (a cell)
+ (let ((sym (symbol-concat "*" (cdr cell) "*")))
+ (if (boundp sym)
+ (cons (cons (car cell) (symbol-value sym)) a)
+ a))))
+ )))
+ (foldr f nil
+ '(("ISO-2022-JP" . junet)
+ ("ISO-2022-KR" . iso-2022-kr)
+ ("EUC-KR" . euc-kr)
+ ("ISO-8859-1" . ctext)
+ ("ISO-8859-2" . iso-8859-2)
+ ("ISO-8859-3" . iso-8859-3)
+ ("ISO-8859-4" . iso-8859-4)
+ ("ISO-8859-5" . iso-8859-5)
+ ("KOI8-R" . koi8)
+ ("ISO-8859-7" . iso-8859-7)
+ ("ISO-8859-8" . iso-8859-8)
+ ("ISO-8859-9" . iso-8859-9)
+ ("ISO-2022-JP-2" . iso-2022-ss2-7)
+ ("X-ISO-2022-JP-2" . iso-2022-ss2-7)
+ ("ISO-2022-INT-1" . iso-2022-int-1)
+ ("SHIFT_JIS" . sjis)
+ ("X-SHIFTJIS" . sjis)
+ ("BIG5" . big5)
+ ))))