'mode-local-print-bindings' in mode-local.el seems to be broken since the file was converted to lexical binding. Straightforward patch attached -- acceptable for emacs-27? (It's a regression from Emacs 26.)