From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Guerry Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.50; ielm doesn't handle comments Date: Thu, 14 Feb 2008 18:33:45 +0000 Message-ID: <87k5l7mlpy.fsf@bzg.ath.cx> References: <9c1b17790802131614p1f113873tbba17ec5af03c8ed@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1203014056 9013 80.91.229.12 (14 Feb 2008 18:34:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Feb 2008 18:34:16 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Adam Winiecki To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 19:34:39 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JPium-00086l-1W for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2008 19:34:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPiuI-0006Az-5i for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2008 13:34:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPiuD-0006AC-NQ for emacs-devel@gnu.org; Thu, 14 Feb 2008 13:33:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPiuA-00068u-Vo for emacs-devel@gnu.org; Thu, 14 Feb 2008 13:33:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPiuA-00068o-LR for emacs-devel@gnu.org; Thu, 14 Feb 2008 13:33:54 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JPiuA-0006XA-E3 for emacs-devel@gnu.org; Thu, 14 Feb 2008 13:33:54 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JPiu9-0007G0-Sk for emacs-pretest-bug@gnu.org; Thu, 14 Feb 2008 13:33:54 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JPiu6-0006Vd-Sh for emacs-pretest-bug@gnu.org; Thu, 14 Feb 2008 13:33:53 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JPiu6-0006VH-H4 for emacs-pretest-bug@gnu.org; Thu, 14 Feb 2008 13:33:50 -0500 Original-Received: by ug-out-1314.google.com with SMTP id a2so1183467ugf.48 for ; Thu, 14 Feb 2008 10:33:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; bh=OK9/8tJlFkwohDIfeH8IZ8TsNfp6WtUdOfBAJBmgJWs=; b=ZIA2Sw+Zj9fkobklATEbNXlpclhR61Cjn73dwxoMjA4yq5Bo0yayWTaH2Kn1F/XiAXaUArYV6RyNFnnyYGPXQbJMGk9duU3hYw2vETXdr7bmRhQAbeNg06g6PYjniFUxnDsF85CSsk4n2yrzgMwNU5gVd52WEp6BEJIV8WKZe+A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; b=jFjrcM+i+emDI636OwfGNshtJTetQLG72b/aEcTx2+qKTz4rXk4j115A1zUdVRlpdiD6dUEy4OpF8QD+7iP1UMipMjbD8+s6UA9uxMwpjK9ULgGZmRMUDLICqR0PWl1RqvnL8HPUklRCNOvdk0nrChwVQ6Z47c7DRQXJyAHWY3A= Original-Received: by 10.67.22.2 with SMTP id z2mr3655442ugi.1.1203014028263; Thu, 14 Feb 2008 10:33:48 -0800 (PST) Original-Received: from bzg.ath.cx ( [81.99.213.34]) by mx.google.com with ESMTPS id y1sm4556288uge.39.2008.02.14.10.33.46 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Feb 2008 10:33:47 -0800 (PST) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id C252A1575BD; Thu, 14 Feb 2008 18:33:45 +0000 (GMT) In-Reply-To: (Richard Stallman's message of "Thu, 14 Feb 2008 13:11:26 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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: news.gmane.org gmane.emacs.devel:89093 gmane.emacs.pretest.bugs:21092 Archived-At: --=-=-= Richard Stallman writes: > while using ielm in emacs 23.0.50 and emacs 22.1, any code run in ielm > with a comment will cause ielm to fail: > > ELISP> (message "hi") ;;ouch > *** IELM error *** More than one sexp in input > > This isn't a terribly important bug, but it would be nice > to fix it. This simple patch fixes it. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=ieml.el.patch --- ielm.el.~1.58.~ 2008-01-08 20:44:50.000000000 +0000 +++ ielm.el 2008-02-14 18:31:34.000000000 +0000 @@ -331,6 +331,9 @@ (progn (condition-case err (let (rout) + ;; Make sure there is no comment at the end of the sexp + (when (string-match "\\(.*)\\)[ \t]*;+.*$" ielm-string) + (setq ielm-string (replace-match "\\1" t nil ielm-string))) (setq rout (read-from-string ielm-string)) (setq ielm-form (car rout)) (setq ielm-pos (cdr rout))) --=-=-= -- Bastien --=-=-=--