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: Fri, 12 Nov 2004 16:25:21 -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 1100294797 28121 80.91.229.6 (12 Nov 2004 21:26:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Nov 2004 21:26:37 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 12 22:26:33 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 1CSiwD-0006VC-00 for ; Fri, 12 Nov 2004 22:26:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSj4m-0005A2-CI for ged-emacs-devel@m.gmane.org; Fri, 12 Nov 2004 16:35:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSj4d-00059X-8m for emacs-devel@gnu.org; Fri, 12 Nov 2004 16:35:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSj4c-00058b-63 for emacs-devel@gnu.org; Fri, 12 Nov 2004 16:35:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSj4b-00058B-Tr for emacs-devel@gnu.org; Fri, 12 Nov 2004 16:35:14 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CSivl-0002rr-KW for emacs-devel@gnu.org; Fri, 12 Nov 2004 16:26:05 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CSiv3-0000kT-6i; Fri, 12 Nov 2004 16:25:21 -0500 Original-To: Stefan Monnier In-reply-to: <87mzxoc8bi.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Thu, 11 Nov 2004 17:51:04 -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:29786 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29786 It seems really gratuitous. There are already 2 ways to represent the syntax info of a char: as a cons cell and as a string. Both are documented in the elisp manual. The above change introduces yet a third representation, and an undocumented one at that. Was that really necessary? It is not new. My change makes it compatible with char-syntax, which is why I did it. It is also more comparible with the way modify-syntax-entry works, since the same character is used now by both. This change reduces the number of representations of the syntax by one, as far as I know. Or is there some other function that uses the old representation of syntax-after? If so, perhaps it should be changed too. I just saw that the above change caused Juri to install a fix to descr-text.el that replaces a call to syntax-after with a copy of its (previous) body. That is strange, I searched for all the calls and only found them in paren.el.