From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Integer & glyph (trunk and emacs_unicode) Date: Sat, 17 Nov 2007 17:17:07 +0100 Message-ID: <877ikg6e4c.fsf@kfs-lx.testafd.dk> References: <473D9A31.8040408@ig.com.br> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195316256 8156 80.91.229.12 (17 Nov 2007 16:17:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Nov 2007 16:17:36 +0000 (UTC) Cc: monnier@iro.umontreal.ca, drew.adams@oracle.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 17 17:17:40 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ItQMW-0004Py-2y for ged-emacs-devel@m.gmane.org; Sat, 17 Nov 2007 17:17:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ItQMI-0005Wf-BK for ged-emacs-devel@m.gmane.org; Sat, 17 Nov 2007 11:17:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ItQME-0005TW-0c for emacs-devel@gnu.org; Sat, 17 Nov 2007 11:17:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ItQMD-0005SL-6a for emacs-devel@gnu.org; Sat, 17 Nov 2007 11:17:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ItQMD-0005PT-2Y for emacs-devel@gnu.org; Sat, 17 Nov 2007 11:17:21 -0500 Original-Received: from mail-relay.sonofon.dk ([212.88.64.25]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1ItQMB-0003uP-2R for emacs-devel@gnu.org; Sat, 17 Nov 2007 11:17:19 -0500 Original-Received: (qmail 71081 invoked from network); 17 Nov 2007 16:17:08 -0000 Original-Received: from unknown (HELO kfs-lx.testafd.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 17 Nov 2007 16:17:08 -0000 In-Reply-To: (Richard Stallman's message of "Fri\, 16 Nov 2007 23\:53\:29 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:83453 Archived-At: Richard Stallman 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 http://www.cua.dk