(utf-8-pre-write-conversion): Handle the

case that BEG is a string.
This commit is contained in:
Kenichi Handa 2007-02-24 01:26:22 +00:00
parent 948f751616
commit bfd1426943
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2007-02-24 Kenichi Handa <handa@m17n.org>
* international/utf-8.el (utf-8-pre-write-conversion): Handle the
case that BEG is a string.
2007-02-24 Chris Moore <dooglus@gmail.com>
* pgg-pgp5.el (pgg-pgp5-encrypt-region):

View file

@ -1008,9 +1008,11 @@ Also compose particular scripts if `utf-8-compose-scripts' is non-nil."
This is used as a post-read-conversion of utf-8 coding system."
(if (and utf-translate-cjk-mode
(not utf-translate-cjk-lang-env)
(save-excursion
(goto-char beg)
(re-search-forward "\\cc\\|\\cj\\|\\ch" end t)))
(if (stringp beg)
(string-match "\\cc\\|\\cj\\|\\ch" beg)
(save-excursion
(goto-char beg)
(re-search-forward "\\cc\\|\\cj\\|\\ch" end t))))
(utf-translate-cjk-load-tables))
nil)