ad-map-arglists

ad-map-arglists is a compiled Lisp function in `advice.el'.

(ad-map-arglists SOURCE-ARGLIST TARGET-ARGLIST)

Make `funcall/apply' form to map SOURCE-ARGLIST to TARGET-ARGLIST.
The arguments supplied to TARGET-ARGLIST will be taken from SOURCE-ARGLIST just
as if they had been supplied to a function with TARGET-ARGLIST directly.
Excess source arguments will be neglected, missing source arguments will be
supplied as nil. Returns a `funcall' or `apply' form with the second element
being `function' which has to be replaced by an actual function argument.
Example: `(ad-map-arglists '(a &rest args) '(w x y z))' will return
`(funcall ad--addoit-function a (car args) (car (cdr args)) (nth 2 args))'.