From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: char-table-range Date: Wed, 18 Feb 2004 12:55:24 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200402160043.JAA17207@etlken.m17n.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1077129891 12307 80.91.224.253 (18 Feb 2004 18:44:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2004 18:44:51 +0000 (UTC) Cc: teirllm@dms.auburn.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Feb 18 19:44:43 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AtWgd-0001Z0-00 for ; Wed, 18 Feb 2004 19:44:43 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AtWgd-0001bb-00 for ; Wed, 18 Feb 2004 19:44:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AtWcA-0002Ok-Fv for emacs-devel@quimby.gnus.org; Wed, 18 Feb 2004 13:40:06 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AtWUv-0008UU-6g for emacs-devel@gnu.org; Wed, 18 Feb 2004 13:32:37 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AtWSM-0007Rq-Hn for emacs-devel@gnu.org; Wed, 18 Feb 2004 13:30:29 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AtVux-0004bo-0T for emacs-devel@gnu.org; Wed, 18 Feb 2004 12:55:27 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1AtVuu-0001XD-R9; Wed, 18 Feb 2004 12:55:24 -0500 Original-To: Kenichi Handa In-reply-to: <200402160043.JAA17207@etlken.m17n.org> (message from Kenichi Handa on Mon, 16 Feb 2004 09:43:14 +0900 (JST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20052 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20052 Luc pointed out the current odd behaviour of char-table-range. What should we do if values of characters in the specified range are different? For the moment, I don't have a good idea. Possible behaviours are: (1) return nil (2) return the first non-nil value in the range. (3) return the default value of the range (but ascii, eight-bit-XXXX doesn't have a default value). (4) signal an error I think signaling an error is the cleanest behavior. By the way, I don't know why this function is necessary, in what situation it is intended to use this function. I think it may be included for completeness of access to the data in a char table.