C supports a #line directive which tells the compiler that the source location isn't in the file that compiler reads but somewhere else. Tools like Yacc use this to instruct the C compiler to generate error messages for the yacc source file rather than the intermediate C file.
Is/was there a Lisp or Scheme compiler that supports something similar?