diff options
| author | Kenichi Handa | 2007-12-04 06:05:28 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2007-12-04 06:05:28 +0000 |
| commit | 3f8b1daa441934eb95e273432531381814cfaf75 (patch) | |
| tree | cfe99ba2a408d866d09f358ab683761776c61ebb | |
| parent | dd63383d476672b6bb1c3525ce3503e67a52d625 (diff) | |
| download | emacs-3f8b1daa441934eb95e273432531381814cfaf75.tar.gz emacs-3f8b1daa441934eb95e273432531381814cfaf75.zip | |
(describe-char): Handle a composition of the new
format.
| -rw-r--r-- | lisp/descr-text.el | 58 |
1 files changed, 32 insertions, 26 deletions
diff --git a/lisp/descr-text.el b/lisp/descr-text.el index 18c4144c5f4..1fea494c35b 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el | |||
| @@ -583,33 +583,39 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 583 | (if (cadr composition) | 583 | (if (cadr composition) |
| 584 | (insert " with the following character(s) \"" | 584 | (insert " with the following character(s) \"" |
| 585 | (cadr composition) "\""))) | 585 | (cadr composition) "\""))) |
| 586 | (insert " by the rule:\n\t(" | 586 | (if (and (vectorp (nth 2 composition)) |
| 587 | (mapconcat (lambda (x) | 587 | (vectorp (aref (nth 2 composition) 0))) |
| 588 | (if (consp x) (format "%S" x) | ||
| 589 | (if (= x ?\t) | ||
| 590 | (single-key-description x) | ||
| 591 | (string ?? x)))) | ||
| 592 | (nth 2 composition) | ||
| 593 | " ") | ||
| 594 | ")") | ||
| 595 | (insert "\nThe component character(s) are displayed by ") | ||
| 596 | (if (display-graphic-p (selected-frame)) | ||
| 597 | (progn | 588 | (progn |
| 598 | (insert "these fonts (glyph codes):") | 589 | (insert " by these glyphs:\n") |
| 599 | (dolist (elt component-chars) | 590 | (mapc (lambda (x) (insert (format " %S\n" x))) |
| 600 | (if (/= (car elt) ?\t) | 591 | (nth 2 composition))) |
| 601 | (insert "\n " (car elt) ?: | 592 | (insert " by the rule:\n\t(" |
| 602 | (propertize " " 'display '(space :align-to 5)) | 593 | (mapconcat (lambda (x) |
| 603 | (if (cdr elt) | 594 | (if (consp x) (format "%S" x) |
| 604 | (format "%s (#x%02X)" (cadr elt) (cddr elt)) | 595 | (if (= x ?\t) |
| 605 | "-- no font --"))))) | 596 | (single-key-description x) |
| 606 | (insert "these terminal codes:") | 597 | (string ?? x)))) |
| 607 | (dolist (elt component-chars) | 598 | (nth 2 composition) |
| 608 | (insert "\n " (car elt) ":" | 599 | " ") |
| 609 | (propertize " " 'display '(space :align-to 4)) | 600 | ")") |
| 610 | (or (cdr elt) "-- not encodable --")))) | 601 | (insert "\nThe component character(s) are displayed by ") |
| 611 | (insert "\nSee the variable `reference-point-alist' for " | 602 | (if (display-graphic-p (selected-frame)) |
| 612 | "the meaning of the rule.\n")) | 603 | (progn |
| 604 | (insert "these fonts (glyph codes):") | ||
| 605 | (dolist (elt component-chars) | ||
| 606 | (if (/= (car elt) ?\t) | ||
| 607 | (insert "\n " (car elt) ?: | ||
| 608 | (propertize " " 'display '(space :align-to 5)) | ||
| 609 | (if (cdr elt) | ||
| 610 | (format "%s (#x%02X)" (cadr elt) (cddr elt)) | ||
| 611 | "-- no font --"))))) | ||
| 612 | (insert "these terminal codes:") | ||
| 613 | (dolist (elt component-chars) | ||
| 614 | (insert "\n " (car elt) ":" | ||
| 615 | (propertize " " 'display '(space :align-to 4)) | ||
| 616 | (or (cdr elt) "-- not encodable --")))) | ||
| 617 | (insert "\nSee the variable `reference-point-alist' for " | ||
| 618 | "the meaning of the rule.\n"))) | ||
| 613 | 619 | ||
| 614 | (if (not describe-char-unidata-list) | 620 | (if (not describe-char-unidata-list) |
| 615 | (insert "\nCharacter code properties are not shown: ") | 621 | (insert "\nCharacter code properties are not shown: ") |