Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defmacro define-command-completion (name arglist &body body)
- (let* ((documentation (if (stringp (first body)) (first body) nil))
- (body (if (stringp (first body)) (rest body) body))
- (prefix-name (concatenate 'string (symbol-name name) "-COMPLETION"))
- (symbol-name (intern prefix-name)))
- `(progn
- (defun ,symbol-name ,arglist ,@body)
- (setf (cmpl (get-named-command ,name)) #',symbol-name))))
Add Comment
Please, Sign In to add comment