]> git.eshelyaron.com Git - emacs.git/commitdiff
(standard-display-european): Do something useful where AUTO is t or a symbol.
authorRichard M. Stallman <rms@gnu.org>
Sat, 13 Sep 1997 19:05:54 +0000 (19:05 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 13 Sep 1997 19:05:54 +0000 (19:05 +0000)
lisp/disp-table.el

index cb9325fd77104c7fa377cea9c21268e38e9a39b7..19187b0762873c7985d669d14bd997204bc6aa41 100644 (file)
@@ -211,7 +211,10 @@ AUTO also specifies, in this case, the coding system for terminal output."
       ;; 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])