Show
Ignore:
Timestamp:
11/26/05 10:45:09 (3 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/descr-text.el

    r3863 r3990  
    459459         (overlays (mapcar #'(lambda (o) (overlay-properties o)) 
    460460                           (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))))) 
    461467         item-list max-width unicode) 
    462468 
     
    468474    (setq item-list 
    469475          `(("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 
    477478                            (text-properties-at pos)) 
    478479                     char char char 
     
    511512                 (if (not category-set) 
    512513                     '("-- none --") 
    513                    (mapcar #'(lambda (x) (format "%c:%s 
     514                   (mapcar #'(lambda (x) (format "%c:%s
    514515                                                 x (category-docstring x))) 
    515516                           (category-set-mnemonics category-set))))) 
     
    584585                          (concat 
    585586                           "by this font (glyph code)\n" 
    586                            (format "     %s (0x%02X)" 
     587                           (format "     %s (#x%02X)" 
    587588                                   (car display) (cdr display))) 
    588589                        "no font available") 
     
    640641          (re-search-forward "character:[ \t\n]+") 
    641642          (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))) 
    649651 
    650652        (when disp-vector 
     
    658660                          (propertize " " 'display '(space :align-to 5)) 
    659661                          (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)) 
    661663                                      (cddr (aref disp-vector i))) 
    662664                            "-- no font --") 
     
    709711                          (propertize " " 'display '(space :align-to 5)) 
    710712                          (if (cdr elt) 
    711                               (format "%s (0x%02X)" (cadr elt) (cddr elt)) 
     713                              (format "%s (#x%02X)" (cadr elt) (cddr elt)) 
    712714                            "-- no font --")))) 
    713715            (insert "these terminal codes:")