Recent Emacs does not accept obsolete last-command-char, change it to -event.