Changeset 3990 for trunk/lisp/descr-text.el
- Timestamp:
- 11/26/05 10:45:09 (3 years ago)
- Files:
-
- trunk/lisp/descr-text.el (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/descr-text.el
r3863 r3990 459 459 (overlays (mapcar #'(lambda (o) (overlay-properties o)) 460 460 (overlays-at pos))) 461 (char-description (if (not multibyte-p) 462 (single-key-description char) 463 (if (< char 128) 464 (single-key-description char) 465 (string-to-multibyte 466 (char-to-string char))))) 461 467 item-list max-width unicode) 462 468 … … 468 474 (setq item-list 469 475 `(("character" 470 ,(format "%s (0%o, %d, 0x%x%s)" 471 (apply 'propertize (if (not multibyte-p) 472 (single-key-description char) 473 (if (< char 128) 474 (single-key-description char) 475 (string-to-multibyte 476 (char-to-string char)))) 476 ,(format "%s (%d, #o%o, #x%x%s)" 477 (apply 'propertize char-description 477 478 (text-properties-at pos)) 478 479 char char char … … 511 512 (if (not category-set) 512 513 '("-- none --") 513 (mapcar #'(lambda (x) (format "%c:%s "514 (mapcar #'(lambda (x) (format "%c:%s" 514 515 x (category-docstring x))) 515 516 (category-set-mnemonics category-set))))) … … 584 585 (concat 585 586 "by this font (glyph code)\n" 586 (format " %s ( 0x%02X)"587 (format " %s (#x%02X)" 587 588 (car display) (cdr display))) 588 589 "no font available") … … 640 641 (re-search-forward "character:[ \t\n]+") 641 642 (setq pos (point))) 642 (if overlays 643 (mapc #'(lambda (props) 644 (let ((o (make-overlay pos (1+ pos)))) 645 (while props 646 (overlay-put o (car props) (nth 1 props)) 647 (setq props (cddr props))))) 648 overlays)) 643 (let ((end (+ pos (length char-description)))) 644 (if overlays 645 (mapc #'(lambda (props) 646 (let ((o (make-overlay pos end))) 647 (while props 648 (overlay-put o (car props) (nth 1 props)) 649 (setq props (cddr props))))) 650 overlays))) 649 651 650 652 (when disp-vector … … 658 660 (propertize " " 'display '(space :align-to 5)) 659 661 (if (cdr (aref disp-vector i)) 660 (format "%s ( 0x%02X)" (cadr (aref disp-vector i))662 (format "%s (#x%02X)" (cadr (aref disp-vector i)) 661 663 (cddr (aref disp-vector i))) 662 664 "-- no font --") … … 709 711 (propertize " " 'display '(space :align-to 5)) 710 712 (if (cdr elt) 711 (format "%s ( 0x%02X)" (cadr elt) (cddr elt))713 (format "%s (#x%02X)" (cadr elt) (cddr elt)) 712 714 "-- no font --")))) 713 715 (insert "these terminal codes:")
