]> code.delx.au - gnu-emacs/commitdiff
(make-glyph-code): Fix for a new character code
authorKenichi Handa <handa@m17n.org>
Mon, 28 May 2007 01:36:18 +0000 (01:36 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 28 May 2007 01:36:18 +0000 (01:36 +0000)
space (22-bit).

lisp/disp-table.el

index 15231b084ede989df8a9eb1e00ccf79d2400101b..b6b2ea12bec41e97458a092485313af12ce6c55d 100644 (file)
@@ -190,9 +190,9 @@ X frame."
 (defun make-glyph-code (char &optional face)
   "Return a glyph code representing char CHAR with face FACE."
   ;; Due to limitations on Emacs integer values, faces with
-  ;; face id greater that 4091 are silently ignored.
+  ;; face id greater that 512 are silently ignored.
   (if (and face (<= (face-id face) #xfff))
-      (logior char (lsh (face-id face) 19))
+      (logior char (lsh (face-id face) 22))
     char))
 
 ;;;###autoload