X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=lisp%2Fcoding.el;h=d47e0a3162a89620e4f8cbd36b8b492419908f82;hp=5a4a1c4a1998eb943031b5ae4b51eb4fbc192699;hb=2416430cb588c7f7a7ca990d536c092f3af3a0b9;hpb=cbb40ed4dbe8dad2c432475e1cc91742886f1ef4 diff --git a/lisp/coding.el b/lisp/coding.el index 5a4a1c4..d47e0a3 100644 --- a/lisp/coding.el +++ b/lisp/coding.el @@ -115,7 +115,9 @@ or a function symbol which, when called, returns such a cons cell." (interactive "zterminal-coding-system: ") (get-coding-system coding-system) ; correctness check (setq terminal-coding-system coding-system) - (set-console-tty-coding-system (device-console) terminal-coding-system) + ; #### should this affect all current tty consoles ? + (if (eq (device-type) 'tty) + (set-console-tty-coding-system (device-console) terminal-coding-system)) (redraw-modeline t)) (defun set-pathname-coding-system (coding-system)