diff options
| author | Richard M. Stallman | 1997-08-01 01:22:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-01 01:22:16 +0000 |
| commit | 40e82ac184d3ab1001f86aa128487d2b01320a1e (patch) | |
| tree | c48d9049e9d15601fe79936186dbb3fda93bceab | |
| parent | 907d0a0d021912aa44c4ae84e5bff9d7449e2cd7 (diff) | |
| download | emacs-40e82ac184d3ab1001f86aa128487d2b01320a1e.tar.gz emacs-40e82ac184d3ab1001f86aa128487d2b01320a1e.zip | |
(standard-display-european): New arg AUTO.
Normally, set enable-multibyte-characters to nil.
| -rw-r--r-- | lisp/disp-table.el | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lisp/disp-table.el b/lisp/disp-table.el index 193bf5fbb7d..705d0a027cd 100644 --- a/lisp/disp-table.el +++ b/lisp/disp-table.el | |||
| @@ -176,11 +176,17 @@ X frame." | |||
| 176 | (1- (length glyph-table))) | 176 | (1- (length glyph-table))) |
| 177 | 177 | ||
| 178 | ;;;###autoload | 178 | ;;;###autoload |
| 179 | (defun standard-display-european (arg) | 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. |
| 181 | When enabled, characters in the range of 160 to 255 display not | 181 | When enabled, characters in the range of 160 to 255 display not |
| 182 | as octal escapes, but as accented characters. | 182 | as octal escapes, but as accented characters. |
| 183 | With prefix argument, enable European character display iff arg is positive." | 183 | With prefix argument, enable European character display iff arg is positive. |
| 184 | |||
| 185 | Ordinarily, we turn off `enable-multibyte-characters' throughout | ||
| 186 | Emacs, since someone who uses this function manually | ||
| 187 | probably wants to edit European characters in single-byte mode. | ||
| 188 | However, if the optional argument AUTO is non-nil, we don't | ||
| 189 | alter `enable-multibyte-characters'." | ||
| 184 | (interactive "P") | 190 | (interactive "P") |
| 185 | (if (or (<= (prefix-numeric-value arg) 0) | 191 | (if (or (<= (prefix-numeric-value arg) 0) |
| 186 | (and (null arg) | 192 | (and (null arg) |
| @@ -188,6 +194,10 @@ With prefix argument, enable European character display iff arg is positive." | |||
| 188 | ;; Test 161, because 160 displays as a space. | 194 | ;; Test 161, because 160 displays as a space. |
| 189 | (equal (aref standard-display-table 161) [161]))) | 195 | (equal (aref standard-display-table 161) [161]))) |
| 190 | (standard-display-default 160 255) | 196 | (standard-display-default 160 255) |
| 197 | ;; If the user does this explicitly, | ||
| 198 | ;; turn off multibyte chars for more compatibility. | ||
| 199 | (or auto | ||
| 200 | (setq-default enable-multibyte-characters nil)) | ||
| 191 | (standard-display-8bit 160 255) | 201 | (standard-display-8bit 160 255) |
| 192 | ;; Make non-line-break space display as a plain space. | 202 | ;; Make non-line-break space display as a plain space. |
| 193 | ;; Most X fonts do the wrong thing for code 160. | 203 | ;; Most X fonts do the wrong thing for code 160. |