Here is an updated patch, which uses the '(no-record . EVENT)' approach, and whose changes are therefore limited to quail.el.