[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Integer & glyph (trunk and emacs_unicode)
From: |
Kim F. Storm |
Subject: |
Re: Integer & glyph (trunk and emacs_unicode) |
Date: |
Sat, 17 Nov 2007 17:17:07 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Richard Stallman <address@hidden> writes:
> (let ((id (and face (face-id face))))
> (if (and (numberp id)
> ;; Due to limitations on Emacs integer values, only
> ;; face ids below a certain limit can be used.
> (= id (lsh (lsh id glyph-char-bits) (- glyph-char-bits))))
> (logior char (lsh id glyph-char-bits))
> char))
>
> Is there any problem if I implement this solution in trunk and Emacs
> unicode?
>
> It's not _wrong_, but we've already decided to replace the
> mechanism with the use of cons cells.
>
> And I am pretty sure someone has already written the code for that.
> Who was it?
I've promised to write the necessary code as soon as the unicode
branch has been merged.
--
Kim F. Storm <address@hidden> http://www.cua.dk
Re: Integer & glyph (trunk and emacs_unicode), Richard Stallman, 2007/11/16