changeset 19920:1d832fd69760

(standard-display-european): Do something useful where AUTO is t or a symbol.
author Richard M. Stallman <rms@gnu.org>
date Sat, 13 Sep 1997 19:05:54 +0000
parents 5abc38e45195
children f3a1613a2842
files lisp/disp-table.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/disp-table.el	Sat Sep 13 18:49:49 1997 +0000
+++ b/lisp/disp-table.el	Sat Sep 13 19:05:54 1997 +0000
@@ -211,7 +211,10 @@
       ;; Send those codes literally to a non-X terminal.
       ;; If AUTO is nil, we are using single-byte characters,
       ;; so it doesn't matter which one we use.
-      (set-terminal-coding-system (if auto (intern auto) 'latin-1)))
+      (set-terminal-coding-system
+       (cond ((eq auto t) 'latin-1)
+	     ((symbolp auto) (or auto 'latin-1))
+	     ((stringp auto) (intern auto)))))
     ;; Make non-line-break space display as a plain space.
     ;; Most X fonts do the wrong thing for code 160.
     (aset standard-display-table 160 [32])