ad-with-originals is a Lisp macro in `advice.el'.

(ad-with-originals FUNCTIONS &rest BODY)

Binds FUNCTIONS to their original definitions and execute BODY.
For any members of FUNCTIONS that are not currently advised the rebinding will
be a noop. Any modifications done to the definitions of FUNCTIONS will be
undone on exit of this macro.