Revert macros to ...! name convention (elisp doesn't like @...)

This commit is contained in:
Henrik Lissner 2017-02-23 00:06:12 -05:00
parent b64d5554e3
commit 33c88d4f82
125 changed files with 877 additions and 880 deletions

View file

@ -22,7 +22,7 @@
(puthash args (apply ',func args) doom-memoized-table))))
;;;###autoload
(defmacro @def-memoized (name arglist &rest body)
(defmacro def-memoized! (name arglist &rest body)
"Create a memoize'd function. NAME, ARGLIST, DOCSTRING and BODY
have the same meaning as in `defun'."
(declare (indent defun) (doc-string 3))

View file

@ -9,15 +9,15 @@
;; regular plists.
;;
;; (let ((a '(abc :commands 1 :config 3 4 5)))
;; (@mplist a &delete :commands :config))
;; (mplist! a &delete :commands :config))
;;;###autoload
(defmacro @mplist (var action &rest args)
(defmacro mplist! (var action &rest args)
"A helper macro that makes dealing with doom-mplist-* functions a little more concise.
Examples:
(@mplist plist &delete :x :y)
(@mplist plist &get :x)"
(mplist! plist &delete :x :y)
(mplist! plist &get :x)"
(declare (indent defun))
(let ((fn-sym (intern (format "doom-mplist-%s" (substring (symbol-name action) 1)))))
(when (fboundp fn-sym)

View file

@ -102,7 +102,7 @@ Used by `doom/packages-autoremove'."
(defun doom-get-missing-packages ()
"Return a list of requested packages that aren't installed or built-in. Each
element is a list whose CAR is the package symbol, and whose CDR is a plist
taken from that package's `@package' declaration.
taken from that package's `package!' declaration.
Used by `doom/packages-install'."
(cl-remove-if (lambda (pkgsym)