Malabarba / names

A Namespace implementation for Emacs-Lisp
250 stars 19 forks source link

feat: support `cl-defun` in namespace macro #36

Closed JimMoen closed 1 year ago

JimMoen commented 1 year ago

cl-defun support for #32 and kosh04/unicode-escape.el#3

JimMoen commented 1 year ago

after this patch:

(defalias 'names--convert-cl-defun 'names--convert-defun)
(define-namespace unicode-escape-
(defun* xxx ())
(cl-defun yyy ())
)

(fboundp 'unicode-escape-xxx)           ;=> t
(fboundp 'unicode-escape-yyy)           ;=> t
(fboundp 'yyy)                          ;=> nil
JimMoen commented 1 year ago

@Malabarba Plz review this PR. Thanks a lot. 🚀

Malabarba commented 1 year ago

Thanks for the PR!