fix elisp function