aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert1999-10-21 06:30:07 +0000
committerPaul Eggert1999-10-21 06:30:07 +0000
commit951bc45f0d75927192ac12727a537af280a1058e (patch)
treefab479dafc283fe336dd83d8a00417048ce480c7
parent882fb0e6531f444d40de76c9ee404ce49a7a12ad (diff)
downloademacs-951bc45f0d75927192ac12727a537af280a1058e.tar.gz
emacs-951bc45f0d75927192ac12727a537af280a1058e.zip
* disp-table.el (standard-display-european): Remove undocumented
arg AUTO; no longer used by startup.el. Do not attempt to treat all non-English language environments as coding system names. Instead, use the downcased language environment name as a coding system name if it is one; otherwise, use latin-1.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/disp-table.el33
2 files changed, 18 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7da51a8e0c1..9d6346fece8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
11999-10-20 Paul Eggert <eggert@twinsun.com>
2
3 * disp-table.el (standard-display-european): Remove undocumented
4 arg AUTO; no longer used by startup.el. Do not attempt to treat
5 all non-English language environments as coding system names.
6 Instead, use the downcased language environment name as a coding
7 system name if it is one; otherwise, use latin-1.
8
11999-10-20 Gerd Moellmann <gerd@gnu.org> 91999-10-20 Gerd Moellmann <gerd@gnu.org>
2 10
3 * dired.el (dired-move-to-filename-regexp): Fix long comment lines 11 * dired.el (dired-move-to-filename-regexp): Fix long comment lines
diff --git a/lisp/disp-table.el b/lisp/disp-table.el
index f2855692a09..7732956be91 100644
--- a/lisp/disp-table.el
+++ b/lisp/disp-table.el
@@ -176,7 +176,7 @@ X frame."
176 (1- (length glyph-table))) 176 (1- (length glyph-table)))
177 177
178;;;###autoload 178;;;###autoload
179(defun standard-display-european (arg &optional auto) 179(defun standard-display-european (arg)
180 "Semi-obsolete way to toggle display of ISO 8859 European characters. 180 "Semi-obsolete way to toggle display of ISO 8859 European characters.
181 181
182This function is semi-obsolete; if you want to do your editing with 182This function is semi-obsolete; if you want to do your editing with
@@ -199,16 +199,6 @@ selects unibyte mode for all Emacs buffers \(both existing buffers and
199those created subsequently). This provides increased compatibility 199those created subsequently). This provides increased compatibility
200for users who call this function in `.emacs'." 200for users who call this function in `.emacs'."
201 201
202 ;; If the optional argument AUTO is non-nil, this function
203 ;; does not alter `enable-multibyte-characters'.
204 ;; AUTO also specifies, in this case, the coding system for terminal output.
205 ;; The AUTO argument is meant for use by startup.el only.
206 ;; which is why it is not in the doc string.
207
208 ;; AUTO is `lambda' for an interactive call so that it will not
209 ;; set enable-multibyte-characters but also will not call
210 ;; set-terminal-coding-system.
211 (interactive (list current-prefix-arg 'lambda))
212 (if (or (<= (prefix-numeric-value arg) 0) 202 (if (or (<= (prefix-numeric-value arg) 0)
213 (and (null arg) 203 (and (null arg)
214 (char-table-p standard-display-table) 204 (char-table-p standard-display-table)
@@ -217,12 +207,12 @@ for users who call this function in `.emacs'."
217 (progn 207 (progn
218 (standard-display-default 160 255) 208 (standard-display-default 160 255)
219 (unless (or (memq window-system '(x w32)) 209 (unless (or (memq window-system '(x w32))
220 (eq auto 'lambda)) 210 (interactive-p))
221 (and (terminal-coding-system) 211 (and (terminal-coding-system)
222 (set-terminal-coding-system nil)))) 212 (set-terminal-coding-system nil))))
223 ;; If the user does this explicitly from Lisp (as in .emacs), 213 ;; If the user does this explicitly from Lisp (as in .emacs),
224 ;; turn off multibyte chars for more compatibility. 214 ;; turn off multibyte chars for more compatibility.
225 (unless auto 215 (unless (interactive-p)
226 (setq-default enable-multibyte-characters nil) 216 (setq-default enable-multibyte-characters nil)
227 (mapcar (lambda (buffer) 217 (mapcar (lambda (buffer)
228 (with-current-buffer buffer 218 (with-current-buffer buffer
@@ -232,20 +222,17 @@ for users who call this function in `.emacs'."
232 ;; If the user does this explicitly, 222 ;; If the user does this explicitly,
233 ;; switch to Latin-1 language environment 223 ;; switch to Latin-1 language environment
234 ;; unless some other has been specified. 224 ;; unless some other has been specified.
235 (unless auto 225 (unless (interactive-p)
236 (if (equal current-language-environment "English") 226 (if (equal current-language-environment "English")
237 (set-language-environment "latin-1"))) 227 (set-language-environment "latin-1")))
238 (unless (or noninteractive (memq window-system '(x w32)) 228 (unless (or noninteractive (memq window-system '(x w32))
239 (eq auto 'lambda)) 229 (interactive-p))
240 ;; Send those codes literally to a non-X terminal. 230 ;; Send those codes literally to a character-based terminal.
241 ;; If AUTO is nil, we are using single-byte characters, 231 ;; If we are using single-byte characters,
242 ;; so it doesn't matter which one we use. 232 ;; it doesn't matter which coding system we use.
243 (set-terminal-coding-system 233 (set-terminal-coding-system
244 (cond ((not (equal current-language-environment "English")) 234 (let ((c (intern (downcase current-language-environment))))
245 (intern (downcase current-language-environment))) 235 (if (coding-system-p c) c 'latin-1))))
246 ((eq auto t) 'latin-1)
247 ((symbolp auto) (or auto 'latin-1))
248 ((stringp auto) (intern auto)))))
249 (standard-display-european-internal))) 236 (standard-display-european-internal)))
250 237
251(provide 'disp-table) 238(provide 'disp-table)