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: syntax-after Date: Tue, 16 Nov 2004 11:49:23 -0500 Message-ID: References: <87mzxoc8bi.fsf-monnier+emacs@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1100624245 13373 80.91.229.6 (16 Nov 2004 16:57:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Nov 2004 16:57:25 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 16 17:57:18 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CU6dq-0007Dg-00 for ; Tue, 16 Nov 2004 17:57:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CU6ma-0001NG-Jl for ged-emacs-devel@m.gmane.org; Tue, 16 Nov 2004 12:06:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CU6hE-0007RD-RG for emacs-devel@gnu.org; Tue, 16 Nov 2004 12:00:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CU6h8-0007P9-8N for emacs-devel@gnu.org; Tue, 16 Nov 2004 12:00:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CU6h7-0007P1-W1 for emacs-devel@gnu.org; Tue, 16 Nov 2004 12:00:42 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CU6YL-0000b6-FD for emacs-devel@gnu.org; Tue, 16 Nov 2004 11:51:37 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CU6WB-0002PP-I9; Tue, 16 Nov 2004 11:49:26 -0500 Original-To: Stefan In-reply-to: (message from Stefan on Sat, 13 Nov 2004 18:55:47 -0500) 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: main.gmane.org gmane.emacs.devel:29933 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29933 modify-syntax-entry aref(syntax-table) char-syntax syntax-after "w" (2) ?w (?w) "w p" (1048578) ?w args-out-of-range ". 124b" (2818049) ?. args-out-of-range The args-out-of-range is simply a bug. I intended syntax-after to return (?w) and (?.) in those cases, so that the car of the value would match char-syntax. The raw representation (i.e. the cons cell representation used inside the chartables used as syntax-tables) does appear at various places (it appears if you do (aref ?\[) or if you lookup the `syntax-table' text-property, it is used in font-lock-syntactic-keywords for code that needs to work on Emacs-20, ...) and it seems difficult to get rid of it now; so no, you haven't reduced the number of representations. I intended this change as a step towards reducing the mess of these different representations. However, you've convinced me the change should be undone. I don't know if I will have net access this week--could you please undo it? If you find this raw data to be intimidating, we should provide another function `syntax-class' such that (syntax-class (syntax-after)) == (char-syntax (char-after)) I guess we should do that. Maybe we should make modify-syntax-entry accept these values, as well as the strings it currently accepts.