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: Reading sexp problem: Invalid read syntax: "?" Date: 24 Feb 2003 12:27:51 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5xwujprk94.fsf@kfs2.cua.dk> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046082606 26338 80.91.224.249 (24 Feb 2003 10:30:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 24 Feb 2003 10:30:06 +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 18nFs2-0006qP-00 for ; Mon, 24 Feb 2003 11:30:02 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18nG7Q-0003BA-00 for ; Mon, 24 Feb 2003 11:45:57 +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 18nFrC-0003JU-0B for emacs-devel@quimby.gnus.org; Mon, 24 Feb 2003 05:29:11 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18nFqu-0003J9-00 for emacs-devel@gnu.org; Mon, 24 Feb 2003 05:28:52 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18nFqs-0003Ir-00 for emacs-devel@gnu.org; Mon, 24 Feb 2003 05:28:52 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18nFqr-0003IW-00 for emacs-devel@gnu.org; Mon, 24 Feb 2003 05:28:50 -0500 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id 237E27C017; Mon, 24 Feb 2003 11:28:47 +0100 (CET) Original-To: Christoph Conrad In-Reply-To: Original-Lines: 44 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:11902 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11902 Christoph Conrad writes: > Hi, > > i have a strange problem with my CVS Emacs sometimes. Cause i cannot > reproduce it with "emacs -q --no-site-file" and i suspect that it is a > configuration problem, not a problem specific to CVS Emacs, i am > asking here. > > In CVS Gnus contrib/xml.el there ist the following statement in > method `xml-parse-elem-type': > > (list '? elem) > > eval-defun reveals > > edebug-read-sexp: Invalid read syntax: "?" > > Changing the line above to > > (list '? elem) > > - that is adding one extra space after the question mark - and the > error is gone. In CVS Emacs, the Lisp Parser has been modified to require a character constant to be separated from a following symbol by whitespace. In the above code, the character constant is a space, but consider (list '?melem) Here, you would probably agree to write (list '?m elem) for clarity. And so (list '? elem) isn't any different, conceptually. However, it does seem plausible (or proven) that existing code does indeed use the "single space" syntax so maybe we need to relax the parser so that it only checks the token following a NON-whitespace character constant. I've cc:ed to emacs-devel for comments. So WDYT? -- Kim F. Storm http://www.cua.dk