unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludovic.courtes@laas.fr (Ludovic Courtès)
Cc: guile-devel@gnu.org
Subject: Re: Getting source location information
Date: Wed, 30 Nov 2005 18:39:51 +0100	[thread overview]
Message-ID: <877jaqqbko.fsf@laas.fr> (raw)
In-Reply-To: <200511300858.49886.bruce.korb@gmail.com> (Bruce Korb's message of "Wed, 30 Nov 2005 08:58:49 -0800")

Bruce Korb <bruce.korb@gmail.com> writes:

> *Thank you*, Ludvic!  Now we're getting some where.  :-D

Cool. ;-)

> So, again, I need clarity.  Are you saying this:

First, the `scm_sym_*' things should be lower-case (I was using the GNU
notation for function arguments).

It's more complicated than that in fact.  Source properties must be
attached to S-exps (in fact, pairs), not to the source string.  And
source properties are actually attached by `scm_read ()' and the
function it calls.

So I guess we're almost screwed because `scm_read ()' gets location info
from the port it's reading from.  So if you provide it with a string port,
that will not work.

I can't think of a hack to work around that, so we might even be screwed
for good (well, the hack you originally posted does the job but with a
very coarse grain).  Now you just have to hope that a Guile developer
will read this message and post a bright solution.

> Well, actually, I disagree.  If any application wants to cope with
> embedded Guile extensions in their input files

You may agree that this is not a very common case.  :-)

> Now, the 1.7 implementation has invalidated
> portions of the non-deprecated 1.6 interface that I have been using.

Well, *this* is arguably problematic.

Hope this helps,
Ludo'.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2005-11-30 17:39 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-28  4:25 I don't want to maintain this Bruce Korb
2005-11-29  8:16 ` Ludovic Courtès
2005-11-29 20:14   ` Bruce Korb
2005-11-30  8:39     ` Ludovic Courtès
2005-11-30 12:30       ` Bruce Korb
2005-11-30 13:46         ` Ludovic Courtès
2005-11-30 14:00           ` Bruce Korb
2005-11-30 14:44             ` Getting source location information Ludovic Courtès
2005-11-30 15:30               ` Bruce Korb
2005-11-30 16:04                 ` Ludovic Courtès
2005-11-30 16:58                   ` Bruce Korb
2005-11-30 17:39                     ` Ludovic Courtès [this message]
2005-12-01 12:19                       ` Ludovic Courtès
2005-11-30 19:00                   ` Rob Browning
2005-11-30 20:53                     ` Bruce Korb
2005-11-30 22:35                       ` Rob Browning
2005-11-30 23:30                         ` Bruce Korb
2005-12-14 21:54                           ` Kevin Ryde
2005-11-30 23:45                 ` Han-Wen Nienhuys
2005-12-01  0:30 ` I don't want to maintain this Kevin Ryde
2005-12-01  0:38 ` Kevin Ryde
2005-12-07  0:36   ` Marius Vollmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877jaqqbko.fsf@laas.fr \
    --to=ludovic.courtes@laas.fr \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).