From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: New space char syntax Date: 17 Feb 2003 11:59:58 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5xn0kv895d.fsf@kfs2.cua.dk> References: <20030215005635.C288.LEKTU@terra.es> <5xk7g15vym.fsf@kfs2.cua.dk> <20030215214049.4BB3.LEKTU@terra.es> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045476041 10183 80.91.224.249 (17 Feb 2003 10:00:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2003 10:00:41 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ki4e-0002dr-00 for ; Mon, 17 Feb 2003 11:00:32 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18kiIy-0007ci-00 for ; Mon, 17 Feb 2003 11:15:21 +0100 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 18ki5Z-0004B5-01 for emacs-devel@quimby.gnus.org; Mon, 17 Feb 2003 05:01:29 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ki5F-0003yV-00 for emacs-devel@gnu.org; Mon, 17 Feb 2003 05:01:09 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ki52-0003OY-00 for emacs-devel@gnu.org; Mon, 17 Feb 2003 05:01:01 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ki50-0003ER-00; Mon, 17 Feb 2003 05:00:54 -0500 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id EFD007C018; Mon, 17 Feb 2003 11:00:50 +0100 (CET) Original-To: rms@gnu.org In-Reply-To: Original-Lines: 65 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-cc: Juanma Barranquero Original-cc: kai.grossjohann@uni-duisburg.de 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:11706 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11706 Richard Stallman writes: > Yes. Sloppy wording. I meant things like '(? . ?a) > > That case is also still valid. Actually it isn't; I deliberately excluded `.' from the list of legal symbols which may immediately follow a character constant, since it is a legal symbol character, e.g: '(.a bc. d) => (\.a bc\. d) '(.?a) => (\.\?a) '(a.?a) => (a\.\?a) I can change it so that '(?a. ?b) is allowed, but then shouldn't '(?a.?b) be legal too? There's really no risk of confusion here (that syntax was illegal before), so I think we should do it. The parsing of the `.' token and lisp symbols is pretty obscure. Consider these examples: '(ab .; comment de ) => (ab \. de) '(ab . ; comment de ) => (ab . de) '(ab .#'cd) => (ab \. (function cd)) '(ab . #'cd) => (ab function cd) '(ab .'cd) => (ab quote cd) '(ab .(c d)) => (ab c d) '(ab .[c d]) => (a b \. [c d]) '(ab . [c d]) => (a b . [c d]) '(ab ."xyz") => (ab . "xyz") '(ab .?c) => (ab \.\?c) '(ab . ?c) => (ab . 99) I suggest to handle `;', `#', `[', and `?' as special characters when following a `.' just like `whitespace', `quote', `(' and `"' are today. Finally, in a symbol, "`" and "," are not recognized as special either, e.g. '(a`b,c) => (a\`b\,c) '(a`(b,c)) => (a\` (b\,c)) I think the last example shows that they should be recognized. Also, if we fix that for symbols, the "`" and "," should be allowed after a character constant too, e.g. `(?a,xx) '(?a`(b,c)) -- Kim F. Storm http://www.cua.dk