>> (2) Automatically generated references to source code lines, >> something like >> >> file ly/foo.ly, line xxx >> >> for top-level stuff like LilyPond contexts. > > Scheme can be told to keep source locations for expressions. > Documentation generation could switch this on and pick the > expression out of the source code instead of using it from the > variable when it is being generated by Scheme.
This sounds very promising. Of course, I have no idea how to do that :-) Werner