changeset 45857:32f0cf84df57

(ctext-pre-write-conversion): Fix the values of FROM and TO if we create a new buffer.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 17 Jun 2002 10:25:07 +0000
parents eabc9c7b9cdc
children 4b82c5c8f5c8
files lisp/international/mule.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/mule.el	Mon Jun 17 10:18:24 2002 +0000
+++ b/lisp/international/mule.el	Mon Jun 17 10:25:07 2002 +0000
@@ -1367,6 +1367,8 @@
       (set-buffer-modified-p modified-p)
       (- (point-max) (point-min)))))
 
+;; If you add charsets here, be sure to modify the regexp used by
+;; ctext-pre-write-conversion to look up non-standard charsets.
 (defvar non-standard-designations-alist
   '(("$(0" . (big5 "big5-0" 2))
     ("$(1" . (big5 "big5-0" 2))
@@ -1408,7 +1410,8 @@
 	   (buffer-disable-undo)
 	   (if (stringp from)
 	       (insert from)
-	     (insert-buffer-substring buf from to)))))
+	     (insert-buffer-substring buf from to))
+	   (setq from (point-min) to (point-max)))))
   (encode-coding-region from to 'ctext-no-compositions)
   ;; Replace ISO-2022 charset designations with extended segments, for
   ;; those charsets that are not part of the official X registry.