names icon indicating copy to clipboard operation
names copied to clipboard

Questions About Using With Evil Macros

Open noctuid opened this issue 8 years ago • 2 comments

First off, thank you for the great package.

I want to use this for my packages that create evil text objects, and I noticed that I still have to type the namespace prefix when using evil-define-text-object. I'm guessing this is because the macro's debug section does not have what Names is looking for:

(debug (&define name lambda-list
                           [&optional stringp]
                           [&rest keywordp sexp]
                           def-body))

Is there another way to get names to correctly handle this or does the debug section in the macro have to be changed?

Also, when not using Names, magic autoload comments don't recognize evil-define-text-object, so the full autoload has to be specified (e.g. ;;;###autoload (autoload 'name ...). Can this be done with :autoload?

noctuid avatar Oct 10 '15 00:10 noctuid