Skip to main content
1 of 2
NickD
  • 33.6k
  • 3
  • 30
  • 47

Use funcall:

(setq wrapped-copy (symbol-function 'emacs-version))
(fset 'fn (lambda () (funcall wrapped-copy)))

(fn)
"GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32, cairo version 1.16.0)
 of 2020-06-15"

Although, in general, I would use an advice for wrapping a function.

NickD
  • 33.6k
  • 3
  • 30
  • 47