aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/composite.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/composite.el b/lisp/composite.el
index ddf56d35434..b7a4caab726 100644
--- a/lisp/composite.el
+++ b/lisp/composite.el
@@ -543,7 +543,7 @@ Auto Composition mode in all buffers (this is the default)."
543 end (1+ end)) 543 end (1+ end))
544 (setq func2 nil)))) 544 (setq func2 nil))))
545 (if (< start end) 545 (if (< start end)
546 (put-text-property start end 'auto-composed nil)))))) 546 (remove-text-properties start end '(auto-composed nil)))))))
547 547
548(defun turn-on-auto-composition-if-enabled () 548(defun turn-on-auto-composition-if-enabled ()
549 (if enable-multibyte-characters 549 (if enable-multibyte-characters
@@ -576,7 +576,8 @@ With arg, enable it iff arg is positive."
576 (save-buffer-state nil 576 (save-buffer-state nil
577 (save-restriction 577 (save-restriction
578 (widen) 578 (widen)
579 (put-text-property (point-min) (point-max) 'auto-composed nil))))) 579 (remove-text-properties (point-min) (point-max)
580 '(auto-composed nil))))))
580 581
581(defun auto-compose-region (from to) 582(defun auto-compose-region (from to)
582 "Force automatic character composition on the region FROM and TO." 583 "Force automatic character composition on the region FROM and TO."