changeset 90612:e3f4e9ea5df6

(auto-composition-after-change): Remove `auto-composed' property instead of put nil to it. (toggle-auto-composition): Likewise.
author Kenichi Handa <handa@m17n.org>
date Thu, 05 Oct 2006 12:20:14 +0000
parents f70eb92de85e
children 7a2fdfcc7f71
files lisp/composite.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/composite.el	Wed Oct 04 07:09:43 2006 +0000
+++ b/lisp/composite.el	Thu Oct 05 12:20:14 2006 +0000
@@ -543,7 +543,7 @@
 		      end (1+ end))
 	      (setq func2 nil))))
 	(if (< start end)
-	    (put-text-property start end 'auto-composed nil))))))
+	    (remove-text-properties start end '(auto-composed nil)))))))
 
 (defun turn-on-auto-composition-if-enabled ()
   (if enable-multibyte-characters
@@ -576,7 +576,8 @@
     (save-buffer-state nil
       (save-restriction
 	(widen)
-	(put-text-property (point-min) (point-max) 'auto-composed nil)))))
+	(remove-text-properties (point-min) (point-max)
+				'(auto-composed nil))))))
 
 (defun auto-compose-region (from to)
   "Force automatic character composition on the region FROM and TO."