]> git.eshelyaron.com Git - emacs.git/commitdiff
(latin1-display-char): Use make-glyph-code.
authorKim F. Storm <storm@cua.dk>
Wed, 14 Feb 2007 11:29:05 +0000 (11:29 +0000)
committerKim F. Storm <storm@cua.dk>
Wed, 14 Feb 2007 11:29:05 +0000 (11:29 +0000)
lisp/international/latin1-disp.el

index 6b2b6c507604e81b40c61879a359f6afea22e7eb..7a78e6628b9cb5002db6ea87a37e5c06aa6b9abf 100644 (file)
@@ -177,14 +177,10 @@ asis."
       (if (eq 'default latin1-display-face)
          (standard-display-ascii char (format latin1-display-format display))
        (aset standard-display-table char
-             (vconcat (mapcar (lambda (c)
-                                (logior c (lsh (face-id latin1-display-face)
-                                               19)))
+             (vconcat (mapcar (lambda (c) (make-glyph-code c latin1-display-face))
                               display))))
     (aset standard-display-table char
-         (if (eq 'default latin1-display-face)
-             display
-           (logior display (lsh (face-id latin1-display-face) 19))))))
+         (make-glyph-code display latin1-display-face))))
 
 (defun latin1-display-identities (charset)
   "Display each character in CHARSET as the corresponding Latin-1 character.