From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: manday@openmail.cc Newsgroups: gmane.lisp.guile.devel Subject: Re: Loss of location in (library) code Date: Sat, 14 Nov 2020 20:36:36 +0100 Message-ID: <20201114193636.GB4924@air> References: <20201114192613.GA4924@air> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17864"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sun Nov 15 22:37:52 2020 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kePia-0004Vu-O1 for guile-devel@m.gmane-mx.org; Sun, 15 Nov 2020 22:37:52 +0100 Original-Received: from localhost ([::1]:35754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kePiZ-0005cG-DE for guile-devel@m.gmane-mx.org; Sun, 15 Nov 2020 16:37:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kePh5-0005WF-NF for guile-devel@gnu.org; Sun, 15 Nov 2020 16:36:19 -0500 Original-Received: from nl101-2.vfemail.net ([149.210.219.31]:55811 helo=freequeue.vfemail.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kePh3-0004aX-JT for guile-devel@gnu.org; Sun, 15 Nov 2020 16:36:19 -0500 Original-Received: (qmail 5020 invoked from network); 15 Nov 2020 21:35:53 -0000 Original-Received: from nl101-2.vfemail.net (bmE=@149.210.219.31) by freequeue.vfemail.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 15 Nov 2020 21:35:53 -0000 Original-Received: (qmail 39296 invoked from network); 14 Nov 2020 19:36:36 -0000 Original-Received: by simscan 1.4.0 ppid: 39244, pid: 39281, t: 0.0691s scanners:none Original-Received: from unknown (HELO www192.vfemail.net) (bWFuZGF5QG9wZW5tYWlsLmNj@192.168.1.192) by nl101.vfemail.net with ESMTPA; 14 Nov 2020 19:36:36 -0000 Content-Disposition: inline In-Reply-To: <20201114192613.GA4924@air> Received-SPF: pass client-ip=149.210.219.31; envelope-from=manday@openmail.cc; helo=freequeue.vfemail.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/15 16:35:55 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 15 Nov 2020 16:37:36 -0500 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20610 Archived-At: I apologize for an editing mistake in the earlier mail. It was supposed to read: "[...] When the offending form is somewhere in an __RnRS library__, the warnings give inconsistent line numbers. [...]" The problem does not occur if Guile's modules are used (and the code thus placed at the exterior of the (define-module)). On Sat, Nov 14, 2020 at 08:26:15PM +0100, manday@openmail.cc wrote: > As discussed on #guile, we tried for a "possibly unbound variable" warning, on Guile 3.0.4: > > When the offending form is somewhere in a RnRS module or Guile library, the warnings give inconsistent line numbers. For instance: > > (library (test) > (export f) > (import (rnrs)) > (define (f x) > (if x > (cons x 3) > (IS-UNBOUND x)))) > > produces "4:1: warning: possibly unbound variable `IS-UNBOUND'", the warning is located on the (define) whereas > > ; Line 1 > ; Line 2 > ; Line 3 > (define (f x) > (if x > (cons x 3) > (IS-UNBOUND x))) > > produces "7:2: warning: possibly unbound variable `IS-UNBOUND'", the warning is located correctly. ------------------------------------------------- This free account was provided by VFEmail.net - report spam to abuse@vfemail.net ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!