diff options
| author | Kenichi Handa | 2004-08-27 00:25:59 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-08-27 00:25:59 +0000 |
| commit | 11d2e01ba3a82c41eec105df81260568f048e726 (patch) | |
| tree | 6f6624459c1e749d84ca09c0396aad926e6b08a1 | |
| parent | 383418e5122ee80b530e7df96c27be7cffd8a5f1 (diff) | |
| download | emacs-11d2e01ba3a82c41eec105df81260568f048e726.tar.gz emacs-11d2e01ba3a82c41eec105df81260568f048e726.zip | |
(utf-8-post-read-conversion): If the
buffer is unibyte, temporarily set it multibyte.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/international/utf-8.el | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2141bcd959f..66ef44650d5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-08-27 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * international/utf-8.el (utf-8-post-read-conversion): If the | ||
| 4 | buffer is unibyte, temporarily make it multibyte. | ||
| 5 | |||
| 1 | 2004-08-27 Masatake YAMATO <jet@gyve.org> | 6 | 2004-08-27 Masatake YAMATO <jet@gyve.org> |
| 2 | 7 | ||
| 3 | * calendar/time-date.el (time-to-seconds): Add autoload cookies. | 8 | * calendar/time-date.el (time-to-seconds): Add autoload cookies. |
diff --git a/lisp/international/utf-8.el b/lisp/international/utf-8.el index bad79b58743..5a7acee0f0e 100644 --- a/lisp/international/utf-8.el +++ b/lisp/international/utf-8.el | |||
| @@ -870,7 +870,9 @@ Also compose particular scripts if `utf-8-compose-scripts' is non-nil." | |||
| 870 | ;; version of the string in the loop, since it's always loaded as | 870 | ;; version of the string in the loop, since it's always loaded as |
| 871 | ;; unibyte from a byte-compiled file. | 871 | ;; unibyte from a byte-compiled file. |
| 872 | (let ((range (string-as-multibyte "^\xc0-\xc3\xe1-\xf7")) | 872 | (let ((range (string-as-multibyte "^\xc0-\xc3\xe1-\xf7")) |
| 873 | (buffer-multibyte enable-multibyte-characters) | ||
| 873 | hash-table ch) | 874 | hash-table ch) |
| 875 | (set-buffer-multibyte t) | ||
| 874 | (when utf-translate-cjk-mode | 876 | (when utf-translate-cjk-mode |
| 875 | (if (not utf-translate-cjk-lang-env) | 877 | (if (not utf-translate-cjk-lang-env) |
| 876 | ;; Check these characters: | 878 | ;; Check these characters: |
| @@ -893,7 +895,9 @@ Also compose particular scripts if `utf-8-compose-scripts' is non-nil." | |||
| 893 | (progn | 895 | (progn |
| 894 | (insert ch) | 896 | (insert ch) |
| 895 | (delete-char 1)) | 897 | (delete-char 1)) |
| 896 | (forward-char 1))))) | 898 | (forward-char 1)))) |
| 899 | (or buffer-multibyte | ||
| 900 | (set-buffer-multibyte nil))) | ||
| 897 | 901 | ||
| 898 | (when (and utf-8-compose-scripts (> length 1)) | 902 | (when (and utf-8-compose-scripts (> length 1)) |
| 899 | ;; These currently have definitions which cover the relevant | 903 | ;; These currently have definitions which cover the relevant |