Skip to content

Commit

Permalink
tweak(core)!: remove some unused macros
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Aug 3, 2023
1 parent f5c6fcd commit 0e10572
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions elisp/+minemacs.el
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ If NO-MESSAGE-LOG is non-nil, do not print any message to *Messages* buffer."
(with-temp-message (or (current-message) "") ,@body))
`(progn ,@body)))

;;;###autoload
(defmacro +suppress! (&rest body)
"Suppress new messages temporarily in the echo area while BODY is evaluated."
(if (not minemacs-verbose)
`(with-temp-message (or (current-message) "") ,@body)
`(progn ,@body)))

;;;###autoload
(defmacro +cmdfy! (&rest body)
"Convert BODY to an interactive command."
Expand Down Expand Up @@ -168,12 +161,6 @@ If NO-MESSAGE-LOG is non-nil, do not print any message to *Messages* buffer."
(declare (indent 1))
`(unless ,condition (+deferred! ,@body)))

;;;###autoload
(defmacro +deferred-or-immediate! (condition &rest body)
"Like `+deferred!', with BODY deferred if CONDITION is non-nil, otherwise it acts like `progn'."
(declare (indent 1))
`(if ,condition (+deferred! ,@body) (progn ,@body)))

;;;###autoload
(defmacro +lazy! (&rest body)
"Run BODY as a lazy block (see `minemacs-lazy')."
Expand All @@ -193,12 +180,6 @@ If NO-MESSAGE-LOG is non-nil, do not print any message to *Messages* buffer."
(declare (indent 1))
`(unless ,condition (+lazy! ,@body)))

;;;###autoload
(defmacro +lazy-or-immediate! (condition &rest body)
"Like `+lazy!', with BODY deferred if CONDITION is non nil, otherwise it acts like `progn'."
(declare (indent 1))
`(if ,condition (+lazy! ,@body) (progn ,@body)))

;;;###autoload
(defmacro +after-load! (features &rest body)
"Execute BODY after FEATURES have been loaded."
Expand Down

0 comments on commit 0e10572

Please sign in to comment.