I found this in comp.emacs. This addition seems sensible to me, and since there is really no other way to do this sanely, I'd not think it is copyrightable.