Mercurial > emacs
comparison lisp/descr-text.el @ 97984:672009e514b4
(describe-char): Fix handling of automatic composition.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 05 Sep 2008 00:50:27 +0000 |
parents | 067d03b2ec89 |
children | 524569e0f990 |
comparison
equal
deleted
inserted
replaced
97983:b5a42c692791 | 97984:672009e514b4 |
---|---|
599 (mapconcat 'describe-char-padded-string | 599 (mapconcat 'describe-char-padded-string |
600 (cadr composition) "") | 600 (cadr composition) "") |
601 "\""))) | 601 "\""))) |
602 (if (and (vectorp (nth 2 composition)) | 602 (if (and (vectorp (nth 2 composition)) |
603 (vectorp (aref (nth 2 composition) 0))) | 603 (vectorp (aref (nth 2 composition) 0))) |
604 (let ((font (aref (aref (nth 2 composition) 0) 0))) | 604 (let* ((gstring (nth 2 composition)) |
605 (font (lgstring-font gstring)) | |
606 (nglyphs (lgstring-glyph-len gstring)) | |
607 (i 0) | |
608 glyph) | |
605 (insert " using this font:\n " | 609 (insert " using this font:\n " |
606 (symbol-name (font-get font :type)) | 610 (symbol-name (font-get font :type)) |
607 ?: | 611 ?: |
608 (aref (query-font font) 0) | 612 (aref (query-font font) 0) |
609 "\nby these glyphs:\n") | 613 "\nby these glyphs:\n") |
610 (mapc (lambda (x) (insert (format " %S\n" x))) | 614 (while (and (< i nglyphs) |
611 (nth 2 composition))) | 615 (setq glyph (lgstring-glyph gstring i))) |
616 (insert (format " %S\n" glyph)) | |
617 (setq i (1+ i)))) | |
612 (insert " by the rule:\n\t(") | 618 (insert " by the rule:\n\t(") |
613 (let ((first t)) | 619 (let ((first t)) |
614 (mapc (lambda (x) | 620 (mapc (lambda (x) |
615 (if first (setq first nil) | 621 (if first (setq first nil) |
616 (insert " ")) | 622 (insert " ")) |