aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/disp-table.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/disp-table.el b/lisp/disp-table.el
index bda4802142f..df171e17190 100644
--- a/lisp/disp-table.el
+++ b/lisp/disp-table.el
@@ -204,11 +204,11 @@ AUTO also specifies, in this case, the coding system for terminal output."
204 (or auto 204 (or auto
205 (setq-default enable-multibyte-characters nil)) 205 (setq-default enable-multibyte-characters nil))
206 (standard-display-8bit 160 255) 206 (standard-display-8bit 160 255)
207 (unless (eq window-system 'x) 207 (unless (or noninteractive (eq window-system 'x))
208 ;; Send those codes literally to a non-X terminal. 208 ;; Send those codes literally to a non-X terminal.
209 ;; If AUTO is nil, we are using single-byte characters, 209 ;; If AUTO is nil, we are using single-byte characters,
210 ;; so it doesn't matter which one we use. 210 ;; so it doesn't matter which one we use.
211 (set-terminal-coding-system (or auto 'latin-1))) 211 (set-terminal-coding-system (if auto (intern auto) 'latin-1)))
212 ;; Make non-line-break space display as a plain space. 212 ;; Make non-line-break space display as a plain space.
213 ;; Most X fonts do the wrong thing for code 160. 213 ;; Most X fonts do the wrong thing for code 160.
214 (aset standard-display-table 160 [32]) 214 (aset standard-display-table 160 [32])