Locally override functions
emacs-noflet lets you locally override functions, in the manner of flet, but with access to the original function through the symbol: this-fn.
emacs-noflet
flet
this-fn