add revert-this-buffer function and binding