aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-01-19 03:00:26 +0000
committerRichard M. Stallman1999-01-19 03:00:26 +0000
commit3ea1bd5099e435023964f64762610fc8cdab1e54 (patch)
tree051c4b57008404150d2f3302e93ab024e8c84115
parenta460d4e398b8a5b182c52470c5d76a4c006b448e (diff)
downloademacs-3ea1bd5099e435023964f64762610fc8cdab1e54.tar.gz
emacs-3ea1bd5099e435023964f64762610fc8cdab1e54.zip
(standard-display-european): Make all existing
buffers unibyte. Fix doc.
-rw-r--r--lisp/disp-table.el26
1 files changed, 15 insertions, 11 deletions
diff --git a/lisp/disp-table.el b/lisp/disp-table.el
index f793e506b27..a648322dbaa 100644
--- a/lisp/disp-table.el
+++ b/lisp/disp-table.el
@@ -1,6 +1,6 @@
1;;; disp-table.el --- functions for dealing with char tables. 1;;; disp-table.el --- functions for dealing with char tables.
2 2
3;; Copyright (C) 1987, 1994, 1995 Free Software Foundation, Inc. 3;; Copyright (C) 1987, 1994, 1995, 1999 Free Software Foundation, Inc.
4 4
5;; Author: Erik Naggum <erik@naggum.no> 5;; Author: Erik Naggum <erik@naggum.no>
6;; Based on a previous version by Howard Gayle 6;; Based on a previous version by Howard Gayle
@@ -178,9 +178,11 @@ X frame."
178;;;###autoload 178;;;###autoload
179(defun standard-display-european (arg &optional auto) 179(defun standard-display-european (arg &optional auto)
180 "Toggle display of European characters encoded with ISO 8859. 180 "Toggle display of European characters encoded with ISO 8859.
181This function is semi-obsolete; it is better to use 181
182`set-language-environment' and `set-terminal-coding-system', 182This function is semi-obsolete; you can use `set-language-environment'
183coupled with the `--unibyte' option if you prefer to use unibyte characters. 183coupled with either the `--unibyte' option, the EMACS_UNIBYTE
184environment variable or customizing `enable-multibyte-characters' if
185you prefer to use unibyte characters.
184 186
185When enabled, characters in the range of 160 to 255 display not 187When enabled, characters in the range of 160 to 255 display not
186as octal escapes, but as accented characters. Codes 146 and 160 188as octal escapes, but as accented characters. Codes 146 and 160
@@ -189,10 +191,10 @@ codes for apostrophe and space.
189 191
190With prefix argument, enable European character display iff arg is positive. 192With prefix argument, enable European character display iff arg is positive.
191 193
192Normally, this function turns off `enable-multibyte-characters' 194Normally, this function turns off `enable-multibyte-characters' for
193for subsequently created Emacs buffers, and for `*scratch*. 195existing and subsequently created Emacs buffers. This is because
194This is because users who call this function 196users who call this function probably want to edit European characters
195probably want to edit European characters in single-byte mode." 197in single-byte mode."
196 198
197 ;; If the optional argument AUTO is non-nil, this function 199 ;; If the optional argument AUTO is non-nil, this function
198 ;; does not alter `enable-multibyte-characters'. 200 ;; does not alter `enable-multibyte-characters'.
@@ -213,9 +215,11 @@ probably want to edit European characters in single-byte mode."
213 ;; turn off multibyte chars for more compatibility. 215 ;; turn off multibyte chars for more compatibility.
214 (unless auto 216 (unless auto
215 (setq-default enable-multibyte-characters nil) 217 (setq-default enable-multibyte-characters nil)
216 (if (get-buffer "*scratch*") 218 (mapcar (lambda (buffer)
217 (with-current-buffer "*scratch*" 219 (with-current-buffer buffer
218 (set-buffer-multibyte nil)))) 220 (if enable-multibyte-characters
221 (set-buffer-multibyte nil))))
222 (buffer-list)))
219 ;; If the user does this explicitly, 223 ;; If the user does this explicitly,
220 ;; switch to Latin-1 language environment 224 ;; switch to Latin-1 language environment
221 ;; unless some other has been specified. 225 ;; unless some other has been specified.