Is it possible to have an alias for the function name in Lisp?

后端 未结 8 1400
梦毁少年i
梦毁少年i 2021-02-05 20:37

...just like packages do.

I use Emacs (maybe, it can offer some kind of solution).

For example (defun the-very-very-long-but-good-name () ...) is no

8条回答
  •  我在风中等你
    2021-02-05 21:22

    You want defalias. (defalias 'newname 'oldname) will preserve documentation and even show "newname is an alias for `oldname'" when its documentation is requested.

提交回复
热议问题