GNU bug report logs -
#66912
With `require', the byte compiler reports the wrong file for errors.
Previous Next
Full log
View this message in rfc822 format
>> Here's the amended patch. It's a lot shorter (and easier) than the
>> previous version. I would like to commit it as the fix to bug#66912.
>
> Thanks. I'm not in love with this approach, among other things because
> of the problem I described earlier:
>
> But I don't think it would be correct in all cases: if file A loads
> file B which compiles file C which loads file D which signals an
> error we want the compiler error message to say "error in D loaded
> from C" and not "error in D loaded from C loaded from B loaded from
> A".
>
> but it's not the end of the world, so I don't object to installing it on
> `master`.
Also, I think it could report incorrect information in cases such as:
(condition-case nil
(load "FILE-A")
(error ... (forward-sexp) ...))
where an error in the `forward-sexp` might be reported as occurring
"while loading FILE-A" because we didn't revert the
`Vloads_still_in_progress` when unwinding the stack.
I suspect such situations won't occur very often, tho.
Stefan
This bug report was last modified 215 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.