I've accidentally called `emacs-lisp-byte-compile-and-load' in buffers that are not emacs-lisp-mode (due to M-x completion history), this patch should fix that. There are a number of other interactive functions in elisp-mode.el, but the two functions patched here I think are obviously meant to be limited to emacs-lisp-mode.