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: `map-char-table' bug? Date: Wed, 14 May 2003 17:04:43 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <47032.141.162.101.251.1052840465.squirrel@www.redfrontdoor.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1052947568 28470 80.91.224.249 (14 May 2003 21:26:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 14 May 2003 21:26:08 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 14 23:26:06 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 19G3lG-0007P4-00 for ; Wed, 14 May 2003 23:26:06 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19G3sp-0006M1-00 for ; Wed, 14 May 2003 23:33:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19G3iS-0004f6-03 for emacs-devel@quimby.gnus.org; Wed, 14 May 2003 17:23:12 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19G3iC-0004ec-00 for emacs-devel@gnu.org; Wed, 14 May 2003 17:22:56 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19G3gr-00045G-00 for emacs-devel@gnu.org; Wed, 14 May 2003 17:21:33 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19G3Qb-0007g5-00 for emacs-devel@gnu.org; Wed, 14 May 2003 17:04:45 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 19G3QZ-0002Vs-00; Wed, 14 May 2003 17:04:43 -0400 Original-To: "Ben North" In-reply-to: <47032.141.162.101.251.1052840465.squirrel@www.redfrontdoor.org> (ben@redfrontdoor.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:13880 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13880 (let ((st (syntax-table))) (map-char-table (lambda (k v) (if (= k ?\() (progn (print k) (print (char-table-range st k)) (print (aref st k)) (print v)))) st)) produces 40 (4 . 41) (4 . 41) nil The reason for this is that map-char-table passes the raw contents of the element, whereas char-table-range and aref handle defaults and inheritance. All the other functions that get values from char tables process the default and inheritance. The Lisp manual indirectly says that map-char-table does this too. I wrote the code--it was not hard. (It is in many files so I have not included a patch here.) Does anyone see a reason not to make this change?