From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: char-table-range Date: Wed, 3 Mar 2004 13:51:13 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200403030451.NAA19657@etlken.m17n.org> References: <200402160043.JAA17207@etlken.m17n.org> <200402160130.i1G1UKG04241@raven.dms.auburn.edu> <200402190128.i1J1StG21175@raven.dms.auburn.edu> <200402210003.i1L03Bo05498@raven.dms.auburn.edu> <200403020247.LAA16492@etlken.m17n.org> <200403030339.i233dJs02566@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1078370535 23340 80.91.224.253 (4 Mar 2004 03:22:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Mar 2004 03:22:15 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 04 04:22:05 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 1AyjQz-0000x1-00 for ; Thu, 04 Mar 2004 04:22:05 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AyjQy-0002IB-00 for ; Thu, 04 Mar 2004 04:22:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AyjQr-0003QM-D9 for emacs-devel@quimby.gnus.org; Wed, 03 Mar 2004 22:21:57 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AyONC-0005xL-0H for emacs-devel@gnu.org; Tue, 02 Mar 2004 23:52:46 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AyOMW-0005pk-VY for emacs-devel@gnu.org; Tue, 02 Mar 2004 23:52:41 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AyOLy-0005gG-6K; Tue, 02 Mar 2004 23:51:30 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6p2/3.7W-20010518204228) with ESMTP id i234pEd19508; Wed, 3 Mar 2004 13:51:14 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6p2/3.7W-20010823150639) with ESMTP id i234pDE20019; Wed, 3 Mar 2004 13:51:14 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id NAA19657; Wed, 3 Mar 2004 13:51:13 +0900 (JST) Original-To: teirllm@dms.auburn.edu In-reply-to: <200403030339.i233dJs02566@raven.dms.auburn.edu> (message from Luc Teirlinck on Tue, 2 Mar 2004 21:39:19 -0600 (CST)) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) 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:20236 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20236 In article <200403030339.i233dJs02566@raven.dms.auburn.edu>, Luc Teirlinck writes: > Ken 'ichi Handa wrote: > (set-char-table-default TABLE IDX VAL) > (1) If IDX is a symbol `ascii', set the default value for all > characters to VAL. > (2) If IDX is GENERIC-CHAR, set the value for characters in > GENERIC-CHAR to nil, and set the default value for them to VAL. > (3) If IDX is an individual character, set IDX to a generic > character that represents the smallest group of characters > containing IDX, and perform (2). > I think (1) is a misfeature. The default value for all characters > should be set by specifying IDX nil. (3) is also very questionable. I > think we don't need it. > I do not know whether (2) is intended as description of the current > behavior of set-char-table-default or as a proposed new behavior. As > a description of the current behavior it is not completely accurate. > Indeed, aset and set-char-table-range both behave exactly as described > in (2) for a generic character, but currently, set-char-table-default > for a generic character just sets the default value to VAL, _without_ > first setting the value for characters in GENERIC-CHAR to nil (as aset > and set-char-table-range indeed both do). See the ielm run below. Oops, you are right. I myself was confused. I wrote above as description of the currently behavior, and should be written as this: (2) If IDX is GENERIC-CHAR, set the default value for characters in GENERIC-CHAR to VAL. My opininons/proposals were written without indentation. --- Ken'ichi HANDA handa@m17n.org