monkey-patch.el was defining an alias live-mp-orig-basic-save-buffer
which was bound to the symbol basic-save-buffer. After redefining
basic-save-buffer with the call (defalias 'basic-save-buffer 'live-mp-new-basic-save-buffer), both basic-save-buffer and
live-mp-orig-basic-save-buffer were both bound to the function
live-mp-new-basic-save-buffer.
Instead, the backup alias should be bound to the function directly, not
the symbol.
monkey-patch.el was defining an alias
live-mp-orig-basic-save-buffer
which was bound to the symbolbasic-save-buffer
. After redefiningbasic-save-buffer
with the call(defalias 'basic-save-buffer 'live-mp-new-basic-save-buffer)
, bothbasic-save-buffer
andlive-mp-orig-basic-save-buffer
were both bound to the functionlive-mp-new-basic-save-buffer
.Instead, the backup alias should be bound to the function directly, not the symbol.