From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Printing elisp char literals Date: Tue, 27 May 2003 19:39:49 +0900 Organization: The XEmacs Project Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87ptm4isga.fsf@tleepslib.sk.tsukuba.ac.jp> References: <200305262027.h4QKRtlO001787@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054032953 6265 80.91.224.249 (27 May 2003 10:55:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 27 May 2003 10:55:53 +0000 (UTC) Cc: Stefan Monnier Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 27 12:55:51 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Kc7T-0001cv-00 for ; Tue, 27 May 2003 12:55:51 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19KcL8-0007uC-00 for ; Tue, 27 May 2003 13:09:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Kc2o-0002Is-FY for emacs-devel@quimby.gnus.org; Tue, 27 May 2003 06:51:02 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Kbvm-0000S2-Gf for emacs-devel@gnu.org; Tue, 27 May 2003 06:43:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19KbtM-0007ww-R5 for emacs-devel@gnu.org; Tue, 27 May 2003 06:41:17 -0400 Original-Received: from tleepslib.sk.tsukuba.ac.jp ([130.158.98.109]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Kbs0-0007b9-GH; Tue, 27 May 2003 06:39:52 -0400 Original-Received: from steve by tleepslib.sk.tsukuba.ac.jp with local (Exim 3.36 #1 (Debian)) id 19Kbrx-0007qO-00; Tue, 27 May 2003 19:39:49 +0900 Original-To: dak@gnu.org In-Reply-To: (David Kastrup's message of "26 May 2003 22:49:22 +0200") User-Agent: Gnus/5.1001 (Gnus v5.10.1) XEmacs/21.5 (carrot, linux) Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14310 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14310 >>>>> "David" == David Kastrup writes: David> "Stefan Monnier" David> writes: >> Let's say I have an integer. How can I check whether it's a >> char ? Doesn't the optional argument to char-valid-p do the right thing? And pretty clearly `event-modifiers' extracts the modifiers into a Lispy format. David> IIRC, XEmacs has sort of an opaque character representation David> type, so it might be worth borrowing an idea or two from David> them in this regard before reinventing the wheel. Stephen, David> any idea of whether something might apply here? Besides the fact that it looks like these APIs already exist, even for more complex cases I don't think so. While I believe the XEmacs model is a good one, it took several years to shake out many bugs due to errors in porting code from the old "characters are a subset of integers" model. This would best be done in combination with a large revision of basic Mule functionality, such as in emacs-unicode, if it's considered desirable. -- Institute of Policy and Planning Sciences http://turnbull.sk.tsukuba.ac.jp University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN Ask not how you can "do" free software business; ask what your business can "do for" free software.