diff options
| author | Colin Walters | 2002-05-21 06:05:39 +0000 |
|---|---|---|
| committer | Colin Walters | 2002-05-21 06:05:39 +0000 |
| commit | 2306a6c74f00d98c8a7d1b2f08dde637ecc24d48 (patch) | |
| tree | bbc499c43f02ee907a7317120f96372748807187 | |
| parent | 9969dd6cc236f2b662eaa5b5ed46392bc7b90194 (diff) | |
| download | emacs-2306a6c74f00d98c8a7d1b2f08dde637ecc24d48.tar.gz emacs-2306a6c74f00d98c8a7d1b2f08dde637ecc24d48.zip | |
(describe-char-after): Order display of text properties by the size of
their value, for clarity.
| -rw-r--r-- | lisp/international/mule-diag.el | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index 3ed7a501030..055da29a83e 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el | |||
| @@ -659,11 +659,21 @@ which font is being used for displaying the character." | |||
| 659 | ").\n" | 659 | ").\n" |
| 660 | "See the variable `reference-point-alist' for " | 660 | "See the variable `reference-point-alist' for " |
| 661 | "the meaning of the rule.\n"))) | 661 | "the meaning of the rule.\n"))) |
| 662 | (if props | 662 | (when props |
| 663 | (insert "\nText properties\n")) | 663 | (insert "\nText properties\n")) |
| 664 | (while props | 664 | ;; List the text properties, sorted by the size of the printed |
| 665 | (insert (format " %s: %s" (car props) (cadr props))) | 665 | ;; representation of their value. This makes it easier to |
| 666 | (setq props (cddr props))) | 666 | ;; read. |
| 667 | (dolist (elt (sort (let ((ret nil)) | ||
| 668 | (while props | ||
| 669 | (push (cons (pop props) | ||
| 670 | (prin1-to-string (pop props))) | ||
| 671 | ret)) | ||
| 672 | ret) | ||
| 673 | (lambda (a b) | ||
| 674 | (< (length (cdr a)) | ||
| 675 | (length (cdr b)))))) | ||
| 676 | (insert (format " %s: %s\n" (car elt) (cdr elt)))) | ||
| 667 | )))) | 677 | )))) |
| 668 | 678 | ||
| 669 | 679 | ||