diff options
| author | Kenichi Handa | 2010-05-19 10:09:50 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-05-19 10:09:50 +0900 |
| commit | 2833d9158d6315b59415173df5d47515faac5310 (patch) | |
| tree | 0463de89be425230edca77dbd5aef684290bd9b8 | |
| parent | c2eb4a8321dd86f085724c709e881663c81d0c6b (diff) | |
| download | emacs-2833d9158d6315b59415173df5d47515faac5310.tar.gz emacs-2833d9158d6315b59415173df5d47515faac5310.zip | |
composite.el: Register compose-gstring-for-graphic in composition-function-table only for combining characters (Mn, Mc, Me).
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/composite.el | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 484ae6529c3..21d0e827f67 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-05-19 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * composite.el: Register compose-gstring-for-graphic in | ||
| 4 | composition-function-table only for combining characters (Mn, Mc, | ||
| 5 | Me). | ||
| 6 | |||
| 1 | 2010-05-13 Chong Yidong <cyd@stupidchicken.com> | 7 | 2010-05-13 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 8 | ||
| 3 | Add TeX open-block and close-block keybindings to SGML, and vice | 9 | Add TeX open-block and close-block keybindings to SGML, and vice |
diff --git a/lisp/composite.el b/lisp/composite.el index 2204b351a36..0afb2864879 100644 --- a/lisp/composite.el +++ b/lisp/composite.el | |||
| @@ -532,9 +532,9 @@ after a sequence of character events." | |||
| 532 | 532 | ||
| 533 | (defun compose-gstring-for-graphic (gstring) | 533 | (defun compose-gstring-for-graphic (gstring) |
| 534 | "Compose glyph-string GSTRING for graphic display. | 534 | "Compose glyph-string GSTRING for graphic display. |
| 535 | Non-spacing characters are composed with the preceding base | 535 | Combining characters are composed with the preceding base |
| 536 | character. If the preceding character is not a base character, | 536 | character. If the preceding character is not a base character, |
| 537 | each non-spacing character is composed as a spacing character by | 537 | each combining character is composed as a spacing character by |
| 538 | a padding space before and/or after the character. | 538 | a padding space before and/or after the character. |
| 539 | 539 | ||
| 540 | All non-spacing characters has this function in | 540 | All non-spacing characters has this function in |
| @@ -660,9 +660,9 @@ All non-spacing characters has this function in | |||
| 660 | [nil 0 compose-gstring-for-graphic]))) | 660 | [nil 0 compose-gstring-for-graphic]))) |
| 661 | (map-char-table | 661 | (map-char-table |
| 662 | #'(lambda (key val) | 662 | #'(lambda (key val) |
| 663 | (if (= val 0) | 663 | (if (memq val '(Mn Mc Me)) |
| 664 | (set-char-table-range composition-function-table key elt))) | 664 | (set-char-table-range composition-function-table key elt))) |
| 665 | char-width-table)) | 665 | unicode-category-table)) |
| 666 | 666 | ||
| 667 | (defun compose-gstring-for-terminal (gstring) | 667 | (defun compose-gstring-for-terminal (gstring) |
| 668 | "Compose glyph string GSTRING for terminal display. | 668 | "Compose glyph string GSTRING for terminal display. |