diff options
| author | Lute Kamstra | 2005-04-04 09:17:41 +0000 |
|---|---|---|
| committer | Lute Kamstra | 2005-04-04 09:17:41 +0000 |
| commit | c92164e10167234a115668f0ed2014eb4abb854d (patch) | |
| tree | 643c5cc86e0e24e70af48edde8d4c4163e7b97c6 | |
| parent | 64a2e5cab9c27a07343e2e0679f35259a11fa76d (diff) | |
| download | emacs-c92164e10167234a115668f0ed2014eb4abb854d.tar.gz emacs-c92164e10167234a115668f0ed2014eb4abb854d.zip | |
(thai-auto-composition-mode, thai-word-mode): Specify :group.
| -rw-r--r-- | lisp/language/thai-util.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/language/thai-util.el b/lisp/language/thai-util.el index 6c121c60db2..dea05a4c948 100644 --- a/lisp/language/thai-util.el +++ b/lisp/language/thai-util.el | |||
| @@ -278,7 +278,7 @@ if necessary." | |||
| 278 | 278 | ||
| 279 | (defun thai-compose-syllable (beg end &optional category-set string) | 279 | (defun thai-compose-syllable (beg end &optional category-set string) |
| 280 | (or category-set | 280 | (or category-set |
| 281 | (setq category-set | 281 | (setq category-set |
| 282 | (char-category-set (if string (aref string beg) (char-after beg))))) | 282 | (char-category-set (if string (aref string beg) (char-after beg))))) |
| 283 | (if (aref category-set ?c) | 283 | (if (aref category-set ?c) |
| 284 | ;; Starting with a consonant. We do relative composition. | 284 | ;; Starting with a consonant. We do relative composition. |
| @@ -287,9 +287,9 @@ if necessary." | |||
| 287 | (compose-region beg end)) | 287 | (compose-region beg end)) |
| 288 | ;; Vowel tone sequence. | 288 | ;; Vowel tone sequence. |
| 289 | (if string | 289 | (if string |
| 290 | (compose-string string beg end (list (aref string beg) '(Bc . Bc) | 290 | (compose-string string beg end (list (aref string beg) '(Bc . Bc) |
| 291 | (aref string (1+ beg)))) | 291 | (aref string (1+ beg)))) |
| 292 | (compose-region beg end (list (char-after beg) '(Bc . Bc) | 292 | (compose-region beg end (list (char-after beg) '(Bc . Bc) |
| 293 | (char-after (1+ beg)))))) | 293 | (char-after (1+ beg)))))) |
| 294 | (- end beg)) | 294 | (- end beg)) |
| 295 | 295 | ||
| @@ -347,7 +347,7 @@ The return value is number of composed characters." | |||
| 347 | (if string | 347 | (if string |
| 348 | (if (eq (string-match thai-composition-pattern string from) from) | 348 | (if (eq (string-match thai-composition-pattern string from) from) |
| 349 | (thai-compose-syllable from (match-end 0) nil string)) | 349 | (thai-compose-syllable from (match-end 0) nil string)) |
| 350 | (if (save-excursion | 350 | (if (save-excursion |
| 351 | (goto-char from) | 351 | (goto-char from) |
| 352 | (and (looking-at thai-composition-pattern) | 352 | (and (looking-at thai-composition-pattern) |
| 353 | (setq to (match-end 0)))) | 353 | (setq to (match-end 0)))) |
| @@ -375,7 +375,7 @@ The return value is number of composed characters." | |||
| 375 | ;;;###autoload | 375 | ;;;###autoload |
| 376 | (define-minor-mode thai-auto-composition-mode | 376 | (define-minor-mode thai-auto-composition-mode |
| 377 | "Minor mode for automatically correct Thai character composition." | 377 | "Minor mode for automatically correct Thai character composition." |
| 378 | nil nil nil | 378 | :group 'mule |
| 379 | (cond ((null thai-auto-composition-mode) | 379 | (cond ((null thai-auto-composition-mode) |
| 380 | (remove-hook 'after-change-functions 'thai-auto-composition)) | 380 | (remove-hook 'after-change-functions 'thai-auto-composition)) |
| 381 | (t | 381 | (t |
| @@ -397,7 +397,7 @@ The return value is number of composed characters." | |||
| 397 | (define-minor-mode thai-word-mode | 397 | (define-minor-mode thai-word-mode |
| 398 | "Minor mode to make word-oriented commands aware of Thai words. | 398 | "Minor mode to make word-oriented commands aware of Thai words. |
| 399 | The commands affected are \\[forward-word], \\[backward-word], \\[kill-word], \\[backward-kill-word], \\[transpose-words], and \\[fill-paragraph]." | 399 | The commands affected are \\[forward-word], \\[backward-word], \\[kill-word], \\[backward-kill-word], \\[transpose-words], and \\[fill-paragraph]." |
| 400 | :global t | 400 | :global t :group 'mule |
| 401 | (cond (thai-word-mode | 401 | (cond (thai-word-mode |
| 402 | ;; This enables linebreak between Thai characters. | 402 | ;; This enables linebreak between Thai characters. |
| 403 | (modify-category-entry (make-char 'thai-tis620) ?|) | 403 | (modify-category-entry (make-char 'thai-tis620) ?|) |