Hi, Here's a patch to refactor some functions in lisp/emacs-lisp/comp-run.el and lisp/emacs-lisp/comp-run.el . P.S. first time contributing here. I hope I haven't messed up anything in the process. Davide