diff options
| author | Juri Linkov | 2005-11-20 07:43:44 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-11-20 07:43:44 +0000 |
| commit | 9f40939dcdefd5b3eb26e442b1da6cfad60fc48d (patch) | |
| tree | 58359262de54acb240555b15682edc38c4c16912 | |
| parent | a17a79c039afccab013dda5dbeae43f546a7c4a1 (diff) | |
| download | emacs-9f40939dcdefd5b3eb26e442b1da6cfad60fc48d.tar.gz emacs-9f40939dcdefd5b3eb26e442b1da6cfad60fc48d.zip | |
(describe-char): Use Lisp-readable syntax for octal and hex.
Reorder decimal, octal and hex values.
Remove excess whitespace in the output.
| -rw-r--r-- | lisp/descr-text.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/descr-text.el b/lisp/descr-text.el index 5f410da17a7..307fd465472 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el | |||
| @@ -467,7 +467,7 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 467 | (encode-char char 'ucs)))) | 467 | (encode-char char 'ucs)))) |
| 468 | (setq item-list | 468 | (setq item-list |
| 469 | `(("character" | 469 | `(("character" |
| 470 | ,(format "%s (0%o, %d, 0x%x%s)" | 470 | ,(format "%s (%d, #o%o, #x%x%s)" |
| 471 | (apply 'propertize (if (not multibyte-p) | 471 | (apply 'propertize (if (not multibyte-p) |
| 472 | (single-key-description char) | 472 | (single-key-description char) |
| 473 | (if (< char 128) | 473 | (if (< char 128) |
| @@ -510,7 +510,7 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 510 | ,@(let ((category-set (char-category-set char))) | 510 | ,@(let ((category-set (char-category-set char))) |
| 511 | (if (not category-set) | 511 | (if (not category-set) |
| 512 | '("-- none --") | 512 | '("-- none --") |
| 513 | (mapcar #'(lambda (x) (format "%c:%s " | 513 | (mapcar #'(lambda (x) (format "%c:%s" |
| 514 | x (category-docstring x))) | 514 | x (category-docstring x))) |
| 515 | (category-set-mnemonics category-set))))) | 515 | (category-set-mnemonics category-set))))) |
| 516 | ,@(let ((props (aref char-code-property-table char)) | 516 | ,@(let ((props (aref char-code-property-table char)) |
| @@ -583,7 +583,7 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 583 | (if display | 583 | (if display |
| 584 | (concat | 584 | (concat |
| 585 | "by this font (glyph code)\n" | 585 | "by this font (glyph code)\n" |
| 586 | (format " %s (0x%02X)" | 586 | (format " %s (#x%02X)" |
| 587 | (car display) (cdr display))) | 587 | (car display) (cdr display))) |
| 588 | "no font available") | 588 | "no font available") |
| 589 | (if display | 589 | (if display |
| @@ -657,7 +657,7 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 657 | (insert (logand (car (aref disp-vector i)) #x7ffff) ?: | 657 | (insert (logand (car (aref disp-vector i)) #x7ffff) ?: |
| 658 | (propertize " " 'display '(space :align-to 5)) | 658 | (propertize " " 'display '(space :align-to 5)) |
| 659 | (if (cdr (aref disp-vector i)) | 659 | (if (cdr (aref disp-vector i)) |
| 660 | (format "%s (0x%02X)" (cadr (aref disp-vector i)) | 660 | (format "%s (#x%02X)" (cadr (aref disp-vector i)) |
| 661 | (cddr (aref disp-vector i))) | 661 | (cddr (aref disp-vector i))) |
| 662 | "-- no font --") | 662 | "-- no font --") |
| 663 | "\n") | 663 | "\n") |
| @@ -708,7 +708,7 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 708 | (insert "\n " (car elt) ?: | 708 | (insert "\n " (car elt) ?: |
| 709 | (propertize " " 'display '(space :align-to 5)) | 709 | (propertize " " 'display '(space :align-to 5)) |
| 710 | (if (cdr elt) | 710 | (if (cdr elt) |
| 711 | (format "%s (0x%02X)" (cadr elt) (cddr elt)) | 711 | (format "%s (#x%02X)" (cadr elt) (cddr elt)) |
| 712 | "-- no font --")))) | 712 | "-- no font --")))) |
| 713 | (insert "these terminal codes:") | 713 | (insert "these terminal codes:") |
| 714 | (dolist (elt component-chars) | 714 | (dolist (elt component-chars) |