From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.lisp.guile.devel Subject: Re: unknown location: definition in expression context in subform optname-from of "_^" Date: Thu, 26 Jan 2012 16:56:21 -0800 Message-ID: <4F21F635.4020404@gmail.com> References: <4F20CEE7.4000403@gmail.com> <1327551746.85660.YahooMailNeo@web37907.mail.mud.yahoo.com> <4F21BFFC.8040300@gmail.com> <87d3a6ovhs.fsf@netris.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327625796 16093 80.91.229.12 (27 Jan 2012 00:56:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Jan 2012 00:56:36 +0000 (UTC) Cc: guile-devel@gnu.org To: Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Jan 27 01:56:32 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rqa7C-0002VS-Ec for guile-devel@m.gmane.org; Fri, 27 Jan 2012 01:56:30 +0100 Original-Received: from localhost ([::1]:45156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqa7B-0002j5-Ku for guile-devel@m.gmane.org; Thu, 26 Jan 2012 19:56:29 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqa78-0002io-Eq for guile-devel@gnu.org; Thu, 26 Jan 2012 19:56:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rqa77-0001Li-F6 for guile-devel@gnu.org; Thu, 26 Jan 2012 19:56:26 -0500 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:36122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqa77-0001Ld-74 for guile-devel@gnu.org; Thu, 26 Jan 2012 19:56:25 -0500 Original-Received: by pbaa12 with SMTP id a12so1270948pba.0 for ; Thu, 26 Jan 2012 16:56:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=wpY14eKRjF2T0IE5w0zEzX9XbVfugG9QkAR0kX4EdXI=; b=r0hWEMVm4VtjN2Xm3Teuw5NiE99yoQRjBAIP9kmfa81nVOO30E6aYFvWq+/F/5J/Gv eZIgxNU7+tVJrUUrhGYyPINfnsxgAThJLDepvtWkau2SNZogfMiA5pRY1WMMdN8PR7OF Q3K1YPU4g8Bcp4z/fIAKPPfsNhJEsW3nnlKBw= Original-Received: by 10.68.226.135 with SMTP id rs7mr10121669pbc.9.1327625784039; Thu, 26 Jan 2012 16:56:24 -0800 (PST) Original-Received: from [10.0.0.2] (adsl-75-2-129-96.dsl.pltn13.sbcglobal.net. [75.2.129.96]) by mx.google.com with ESMTPS id x8sm15511924pbr.11.2012.01.26.16.56.22 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Jan 2012 16:56:23 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111220 Thunderbird/9.0 In-Reply-To: <87d3a6ovhs.fsf@netris.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:13698 Archived-At: On 01/26/12 16:10, Mark H Weaver wrote: >>>>> unknown location: definition in expression context in subform optname-from >>>> of "_^" > > The other interesting thing here is that the error message above says > "_^" instead of the full string "A-Z_^". That suggests that the string > literal was not properly read. > > Bruce, are you sure that the following expression was passed directly to > 'eval' or 'primitive-eval'? I am completely certain. Unfortunately, though the string now looks like this: (define opt-name "") (define extra-ct 0) (define extra-text "") (define optname-from "A-Z_^") (define optname-to "a-z--") (make-tmp-dir) (if (exist? "preserve-case") (begin (set! optname-from "_^") (set! optname-to "--") )) Upon careful examination of the entire, not-clipped string, I know at one point those "set!" used to be "define". Then I got bit, went through several fixup cycles and an old version must have been copied into place. Sorry for the bother. > PS: As a side note to the Guile developers: the error message here is > misleading, because in the call to 'syntax-violation' within the > 'define*' cases of 'expand-expr', the bound identifier is passed as > the 'subform' and the bound value is passed as the 'form'. > Unfortunately, there is no way to fix this without changing the > values that 'syntax-type' returns for 'define*' forms. Too bad. I do prefer clue-ful error messages and "unknown location" just wasn't the helpful clue I needed. Perhaps just use "improper location"? "invalid location"? Just not "unknown location". It sounds like Guile is out in the weeds and cannot really tell me what's awry.