[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/swiper 3c65e3fc57: Merge branch 'master' into externals
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/swiper 3c65e3fc57: Merge branch 'master' into externals/swiper |
Date: |
Fri, 5 Apr 2024 16:42:46 -0400 (EDT) |
branch: externals/swiper
commit 3c65e3fc579742133320a83837f59386ab3bb775
Merge: 2d310b2321 a38bc60eb7
Author: Basil L. Contovounesios <basil@contovou.net>
Commit: Basil L. Contovounesios <basil@contovou.net>
Merge branch 'master' into externals/swiper
---
swiper.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/swiper.el b/swiper.el
index 4cdd2f31ff..f00f08ef47 100644
--- a/swiper.el
+++ b/swiper.el
@@ -38,6 +38,16 @@
(require 'cl-lib)
(require 'ivy)
+(eval-when-compile
+ (unless (fboundp 'static-if)
+ (defmacro static-if (condition then-form &rest else-forms)
+ "Expand to THEN-FORM or ELSE-FORMS based on compile-time CONDITION.
+Polyfill for Emacs 30 `static-if'."
+ (declare (debug (sexp sexp &rest sexp)) (indent 2))
+ (if (eval condition lexical-binding)
+ then-form
+ (macroexp-progn else-forms)))))
+
(defgroup swiper nil
"`isearch' with an overview."
:group 'matching