From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.devel Subject: Re: Getting source location information Date: Thu, 01 Dec 2005 00:45:24 +0100 Message-ID: <438E3994.1010101@xs4all.nl> References: <200511272025.32395.bruce.korb@gmail.com> <200511300600.54799.bruce.korb@gmail.com> <878xv62o13.fsf_-_@laas.fr> <200511300730.44076.bruce.korb@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133395403 25981 80.91.229.2 (1 Dec 2005 00:03:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Dec 2005 00:03:23 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Dec 01 01:03:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EhbtX-0002si-Cj for guile-devel@m.gmane.org; Thu, 01 Dec 2005 01:01:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EhbtW-0007KU-KW for guile-devel@m.gmane.org; Wed, 30 Nov 2005 19:01:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EhbtR-0007KD-FK for guile-devel@gnu.org; Wed, 30 Nov 2005 19:01:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EhbtP-0007Jz-3N for guile-devel@gnu.org; Wed, 30 Nov 2005 19:01:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EhbtO-0007Jv-Mi for guile-devel@gnu.org; Wed, 30 Nov 2005 19:01:42 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EhbtO-0001tk-8n for guile-devel@gnu.org; Wed, 30 Nov 2005 19:01:42 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1EhbsF-00028R-Bg for guile-devel@gnu.org; Thu, 01 Dec 2005 01:00:31 +0100 Original-Received: from muurbloem.xs4all.nl ([213.84.26.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Dec 2005 01:00:31 +0100 Original-Received: from hanwen by muurbloem.xs4all.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Dec 2005 01:00:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: guile-devel@gnu.org Original-Lines: 15 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: muurbloem.xs4all.nl User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en In-Reply-To: <200511300730.44076.bruce.korb@gmail.com> X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5441 Archived-At: Bruce Korb wrote: > Hi, > > I am completely certain that this makes sense to you. To me, it does > not. If I call ``scm_read(port)'' I have to attach the input file > as a port. That read function reads an s-expr. How can that work if > the non-Scheme text in the file is not an s-expr? I don't see another What we do in LilyPond is to do scm_seek() to the start of the s-expr. Then scm_read() reads exactly one s-expr, and scm_ftell() shows us where we can continue reading non-Scheme stuff. The port is a string-port, which is easy enough, as we read the input file in a big string anyway. -- Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel