diff lisp/mule/mule-coding.el @ 207:e45d5e7c476e r20-4b2

Import from CVS: tag r20-4b2
author cvs
date Mon, 13 Aug 2007 10:03:52 +0200
parents acd284d43ca1
children 1f0dabaa0855
line wrap: on
line diff
--- a/lisp/mule/mule-coding.el	Mon Aug 13 10:02:48 2007 +0200
+++ b/lisp/mule/mule-coding.el	Mon Aug 13 10:03:52 2007 +0200
@@ -84,6 +84,10 @@
 		   (cons (cons regexp coding-system)
 			 network-coding-system-alist)))))))
 
+(defsubst keyboard-coding-system ()
+  "Return coding-system of what is sent from terminal keyboard."
+  keyboard-coding-system)
+
 (defun set-keyboard-coding-system (coding-system)
   "Set the coding system used for TTY keyboard input. Currently broken."
   (interactive "zkeyboard-coding-system: ")
@@ -91,6 +95,10 @@
   (setq keyboard-coding-system coding-system)
   (redraw-modeline t))
 
+(defsubst terminal-coding-system ()
+  "Return coding-system of your terminal."
+  terminal-coding-system)
+
 (defun set-terminal-coding-system (coding-system)
   "Set the coding system used for TTY display output. Currently broken."
   (interactive "zterminal-coding-system: ")
@@ -156,19 +164,6 @@
   "Return the 'pre-write-conversion property of CODING-SYSTEM."
   (coding-system-property coding-system 'pre-write-conversion))
 
-(defun coding-system-charset (coding-system register)
-  "Return the 'charset property of CODING-SYSTEM for the specified REGISTER."
-  (unless (integerp register)
-    (signal 'wrong-type-argument (list 'integerp register)))
-  (coding-system-property
-   coding-system
-   (case register
-     (0 'charset-g0)
-     (1 'charset-g1)
-     (2 'charset-g2)
-     (3 'charset-g3)
-     (t (signal 'args-out-of-range (list register 0 3))))))
-
 (defun coding-system-force-on-output (coding-system register)
   "Return the 'force-on-output property of CODING-SYSTEM for the specified REGISTER."
   (unless (integerp register)
@@ -226,10 +221,13 @@
 ;;;; Definitions of predefined coding systems
 
 (make-coding-system
- 'automatic-conversion 'automatic-conversion
+ 'undecided 'undecided
  "Automatic conversion."
  '(mnemonic "Auto"))
 
+;; compatibility for old XEmacsen (don't use it)
+(copy-coding-system 'undecided 'automatic-conversion)
+
 (make-coding-system
  'ctext 'iso2022
  "Coding-system used in X as Compound Text Encoding."