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 18:44:20 -0800 Message-ID: <4F220F84.5090601@gmail.com> References: <4F20CEE7.4000403@gmail.com> <1327551746.85660.YahooMailNeo@web37907.mail.mud.yahoo.com> <4F21BFFC.8040300@gmail.com> <87d3a6ovhs.fsf@netris.org> <4F21F635.4020404@gmail.com> <8762fxq3rr.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 1327632276 18929 80.91.229.12 (27 Jan 2012 02:44:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Jan 2012 02:44: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 03:44:31 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 1Rqbni-00049V-VR for guile-devel@m.gmane.org; Fri, 27 Jan 2012 03:44:31 +0100 Original-Received: from localhost ([::1]:47224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqbni-0005Ex-7b for guile-devel@m.gmane.org; Thu, 26 Jan 2012 21:44:30 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqbne-0005Eg-GE for guile-devel@gnu.org; Thu, 26 Jan 2012 21:44:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rqbnc-0004Xx-4I for guile-devel@gnu.org; Thu, 26 Jan 2012 21:44:26 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:54355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqbnb-0004Xt-Te for guile-devel@gnu.org; Thu, 26 Jan 2012 21:44:24 -0500 Original-Received: by iadk27 with SMTP id k27so1900329iad.0 for ; Thu, 26 Jan 2012 18:44:23 -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=lo9b92bt0glbUOFZlbM8AjYjpzhO3KHLLJq+QTgnpQk=; b=sGjX2wnfI5xmJT7M4/h0smBMl198jh+9OkSu64FrBQVb6FhRv3m8VE344c2wt/s8+2 NCEjKWMgu9bHW1ls5hXksUbFkf0QHNyM+m2jzHv5JuUON2KedrmvVRAocFJkMKit9FwD PHZQLLP1mdYmyHUp8KoFqQFNszQYcGYzNBEcU= Original-Received: by 10.50.34.202 with SMTP id b10mr4773952igj.2.1327632263138; Thu, 26 Jan 2012 18:44:23 -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 z22sm6140479ibg.5.2012.01.26.18.44.21 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Jan 2012 18:44:22 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111220 Thunderbird/9.0 In-Reply-To: <8762fxq3rr.fsf@netris.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 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:13701 Archived-At: On 01/26/12 18:26, Mark H Weaver wrote: >> 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". > > That part of the error message (where "unknown location" was printed) > would normally contain the filename, line number, and column number. Then either it ought to have printed the location, or there are new wrinkles in the file/line number stuff that I need to know about. That is precisely why I hate having this function in my code: SCM ag_scm_c_eval_string_from_file_line( char const * pzExpr, char const * pzFile, int line) { SCM port = scm_open_input_string(AG_SCM_STR02SCM(pzExpr)); if (OPT_VALUE_TRACE >= TRACE_EVERYTHING) fprintf(pfTrace, TRACE_EVAL_STRING, pzFile, line, pzExpr); { static SCM file = SCM_UNDEFINED; static char * pzOldFile = NULL; if ((pzOldFile == NULL) || (strcmp(pzOldFile, pzFile) != 0)) { if (pzOldFile != NULL) AGFREE(pzOldFile); AGDUPSTR(pzOldFile, pzFile, "scheme source"); file = AG_SCM_STR02SCM(pzFile); } { SCM ln = AG_SCM_INT2SCM(line); scm_set_port_filename_x(port, file); scm_set_port_line_x(port, ln); } } { SCM ans = SCM_UNSPECIFIED; /* Read expressions from that port; ignore the values. */ for (;;) { SCM form = scm_read(port); if (SCM_EOF_OBJECT_P(form)) break; ans = scm_primitive_eval_x(form); } return ans; } } Every evaluation comes from here and in this instance, "pzFile" pointed to "/path/to/aginfo.tpl" and "line" was set to 163. Therefore, the location should *NOT* have been unknown and in fact, the displayed line number ought to have been 171. Why that failed I would very much want to know so that I can fix this ag_scm_c_eval_string_from_file_line() thingy. > The message "definition in expression context" accurately conveys the Yes, it does. I was thrown off by the "unknown location" stuff. Thank you for your help!! Regards, Bruce