summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2025-10-19 22:29:53 +0200
committerJonas Bernoulli <jonas@bernoul.li>2025-10-19 22:29:53 +0200
commit87fb8396c27f64fd9b43be398fa67679539069ef (patch)
tree9b0feb4b9bda07602642bd145124955935dd3c29
parent82baa889668d716e4d3b01e4a1d88f748993161e (diff)
Use Cond-Let's implementations of {if,when}-let{,*} and and-let*
-rw-r--r--default.mk1
-rw-r--r--lisp/transient.el12
2 files changed, 10 insertions, 3 deletions
diff --git a/default.mk b/default.mk
index 8efaaff..9219084 100644
--- a/default.mk
+++ b/default.mk
@@ -6,6 +6,7 @@ ELS = $(PKG).el
ELCS = $(ELS:.el=.elc)
DEPS = compat
+DEPS += cond-let
DEPS += seq
DOMAIN ?= magit.vc
diff --git a/lisp/transient.el b/lisp/transient.el
index 2043b67..2cc1ee0 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -8,9 +8,10 @@
;; Package-Version: 0.10.1
;; Package-Requires: (
-;; (emacs "28.1")
-;; (compat "30.1")
-;; (seq "2.24"))
+;; (emacs "28.1")
+;; (compat "30.1")
+;; (cond-let "0.2")
+;; (seq "2.24"))
;; SPDX-License-Identifier: GPL-3.0-or-later
@@ -41,6 +42,7 @@
(require 'cl-lib)
(require 'compat)
+(require 'cond-let)
(require 'eieio)
(require 'edmacro)
(require 'format-spec)
@@ -5473,6 +5475,10 @@ as stand-in for elements of exhausted lists."
;;; _
(provide 'transient)
;; Local Variables:
+;; read-symbol-shorthands: (
+;; ("and-let" . "cond-let--and-let")
+;; ("if-let" . "cond-let--if-let")
+;; ("when-let" . "cond-let--when-let"))
;; indent-tabs-mode: nil
;; checkdoc-symbol-words: ("command-line" "edit-mode" "help-mode")
;; End: