Comment #15 on issue 2249 by [email protected]: ledger lines of pitched rests are verticaly misplaced
http://code.google.com/p/lilypond/issues/detail?id=2249
I did not read your comment #2 previously. Yes, doing it with a user function like you did seems like a sensible approach. I would not really bother with further work unless there is some indication that anybody actually has come across the problem.
