diff options
| author | Kenichi Handa | 2006-10-05 12:20:14 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-10-05 12:20:14 +0000 |
| commit | c02e996e47b3778b83a726b6876a03bcb3bec986 (patch) | |
| tree | 7777deca7dd3bf88c96d633c3a8d24f24d22aca1 | |
| parent | 42f557e54187491ef9833f4fbb29fb524da408c7 (diff) | |
| download | emacs-c02e996e47b3778b83a726b6876a03bcb3bec986.tar.gz emacs-c02e996e47b3778b83a726b6876a03bcb3bec986.zip | |
(auto-composition-after-change): Remove
`auto-composed' property instead of put nil to it.
(toggle-auto-composition): Likewise.
| -rw-r--r-- | lisp/composite.el | 5 |
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." |