Skip to content

Commit

Permalink
Bump compat dependency
Browse files Browse the repository at this point in the history
Since that version backports `static-if',
we no longer have to define that here.
  • Loading branch information
tarsius committed Jul 13, 2024
1 parent 32b7a99 commit ed732cb
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
;; Keywords: extensions

;; Package-Version: 0.7.2
;; Package-Requires: ((emacs "26.1") (compat "29.1.4.5") (seq "2.24"))
;; Package-Requires: ((emacs "26.1") (compat "30.0.0.0") (seq "2.24"))

;; SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -85,17 +85,6 @@ similar defect.") :emergency))
(defvar Man-notify-method)
(defvar pp-default-function) ; since Emacs 29.1

(defmacro static-if (condition then-form &rest else-forms)
"A conditional compilation macro.
Evaluate CONDITION at macro-expansion time. If it is non-nil,
expand the macro to THEN-FORM. Otherwise expand it to ELSE-FORMS
enclosed in a `progn' form. ELSE-FORMS may be empty."
(declare (indent 2)
(debug (sexp sexp &rest sexp)))
(if (eval condition lexical-binding)
then-form
(cons 'progn else-forms)))

(defmacro transient--with-emergency-exit (id &rest body)
(declare (indent defun))
(unless (keywordp id)
Expand Down

0 comments on commit ed732cb

Please sign in to comment.