diff options
| author | Kim F. Storm | 2007-02-14 11:28:31 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2007-02-14 11:28:31 +0000 |
| commit | da55bb9600b988d1ccba72c6272b8df64e218bf2 (patch) | |
| tree | 4db3eef43c8db80836b530ef38fac2f422a1331b | |
| parent | 3ae2a0d6ee5c2fa7e025b41b7c2f2fc20f643644 (diff) | |
| download | emacs-da55bb9600b988d1ccba72c6272b8df64e218bf2.tar.gz emacs-da55bb9600b988d1ccba72c6272b8df64e218bf2.zip | |
(describe-char): Use glyph-char and glyph-face.
| -rw-r--r-- | lisp/descr-text.el | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/lisp/descr-text.el b/lisp/descr-text.el index 64920336db9..8b36270f46c 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el | |||
| @@ -528,11 +528,11 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 528 | (setq char (aref disp-vector i)) | 528 | (setq char (aref disp-vector i)) |
| 529 | (aset disp-vector i | 529 | (aset disp-vector i |
| 530 | (cons char (describe-char-display | 530 | (cons char (describe-char-display |
| 531 | pos (logand char #x7ffff))))) | 531 | pos (glyph-char char))))) |
| 532 | (format "by display table entry [%s] (see below)" | 532 | (format "by display table entry [%s] (see below)" |
| 533 | (mapconcat | 533 | (mapconcat |
| 534 | #'(lambda (x) | 534 | #'(lambda (x) |
| 535 | (format "?%c" (logand (car x) #x7ffff))) | 535 | (format "?%c" (glyph-char (car x)))) |
| 536 | disp-vector " "))) | 536 | disp-vector " "))) |
| 537 | (composition | 537 | (composition |
| 538 | (let ((from (car composition)) | 538 | (let ((from (car composition)) |
| @@ -627,25 +627,19 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 627 | (progn | 627 | (progn |
| 628 | (insert "these fonts (glyph codes):\n") | 628 | (insert "these fonts (glyph codes):\n") |
| 629 | (dotimes (i (length disp-vector)) | 629 | (dotimes (i (length disp-vector)) |
| 630 | (insert (logand (car (aref disp-vector i)) #x7ffff) ?: | 630 | (insert (glyph-char (car (aref disp-vector i))) ?: |
| 631 | (propertize " " 'display '(space :align-to 5)) | 631 | (propertize " " 'display '(space :align-to 5)) |
| 632 | (if (cdr (aref disp-vector i)) | 632 | (if (cdr (aref disp-vector i)) |
| 633 | (format "%s (#x%02X)" (cadr (aref disp-vector i)) | 633 | (format "%s (#x%02X)" (cadr (aref disp-vector i)) |
| 634 | (cddr (aref disp-vector i))) | 634 | (cddr (aref disp-vector i))) |
| 635 | "-- no font --") | 635 | "-- no font --") |
| 636 | "\n") | 636 | "\n") |
| 637 | (when (> (car (aref disp-vector i)) #x7ffff) | 637 | (let ((face (glyph-face (car (aref disp-vector i))))) |
| 638 | (let* ((face-id (lsh (car (aref disp-vector i)) -19)) | 638 | (when face |
| 639 | (face (car (delq nil (mapcar | 639 | (insert (propertize " " 'display '(space :align-to 5)) |
| 640 | (lambda (face) | 640 | "face: ") |
| 641 | (and (eq (face-id face) | 641 | (insert (concat "`" (symbol-name face) "'")) |
| 642 | face-id) face)) | 642 | (insert "\n"))))) |
| 643 | (face-list)))))) | ||
| 644 | (when face | ||
| 645 | (insert (propertize " " 'display '(space :align-to 5)) | ||
| 646 | "face: ") | ||
| 647 | (insert (concat "`" (symbol-name face) "'")) | ||
| 648 | (insert "\n")))))) | ||
| 649 | (insert "these terminal codes:\n") | 643 | (insert "these terminal codes:\n") |
| 650 | (dotimes (i (length disp-vector)) | 644 | (dotimes (i (length disp-vector)) |
| 651 | (insert (car (aref disp-vector i)) | 645 | (insert (car (aref disp-vector i)) |