This commit was generated by cvs2svn to compensate for changes in r2810,
[chise/xemacs-chise.git.1] / lisp / coding.el
index 96056d4..3cc7fbe 100644 (file)
@@ -38,9 +38,9 @@
 
 ;; override the default value defined in loaddefs.el.
 (setq-default modeline-format
-  (cons (purecopy "")
-       (cons 'modeline-multibyte-status
-             (cdr modeline-format))))
+             (cons ""
+                   (cons 'modeline-multibyte-status
+                         (cdr modeline-format))))
 
 (defun modify-coding-system-alist (target-type regexp coding-system)
   "Modify one of look up tables for finding a coding system on I/O operation.
@@ -104,6 +104,9 @@ or a function symbol which, when called, returns such a cons cell."
   (interactive "zkeyboard-coding-system: ")
   (get-coding-system coding-system) ; correctness check
   (setq keyboard-coding-system coding-system)
+  (if (eq (device-type) 'tty)
+      (set-console-tty-input-coding-system
+       (device-console) keyboard-coding-system))
   (redraw-modeline t))
 
 (defsubst terminal-coding-system ()
@@ -117,7 +120,8 @@ or a function symbol which, when called, returns such a cons cell."
   (setq terminal-coding-system coding-system)
   ; #### should this affect all current tty consoles ?
   (if (eq (device-type) 'tty)
-      (set-console-tty-coding-system (device-console) terminal-coding-system))
+      (set-console-tty-output-coding-system
+       (device-console) terminal-coding-system))
   (redraw-modeline t))
 
 (defun set-pathname-coding-system (coding-system)