: An improvement on your patch would be the ability to do
<diary>personname</diary> and have it automatically figure out what
their most recent diary was at the time of posting. Since the majority of
diary references are to the latest entry anyway (via recentlog), that would
save a lot of hassle of looking up what entry number the diary is you're
commenting on. That would make <diary> as easy to use as <person>,
but without the nasty side effect that the links become outdated over time.