emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-30 951fb93956d: * lisp/transient.el (static-if): Remove duplicated


From: Jonas Bernoulli
Subject: emacs-30 951fb93956d: * lisp/transient.el (static-if): Remove duplicated definition.
Date: Fri, 19 Jul 2024 13:10:44 -0400 (EDT)

branch: emacs-30
commit 951fb93956d3b90aa6d1fbc8c3dcd25c42fbe7dc
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    * lisp/transient.el (static-if): Remove duplicated definition.
    
    (Bug#72182)
    
    This should have been removed when the standalone version was merged
    into Emacs.
---
 lisp/transient.el | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index 8788fbc834f..14a94434c12 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -82,17 +82,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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]