aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-core.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2025-08-22 20:55:32 +0200
committerJonas Bernoulli <jonas@bernoul.li>2025-08-22 20:55:32 +0200
commitfcd2907fca0921c5338808e28427d7ca2649479c (patch)
tree9bf6833a838c318bd1df1c1d446be88c3aaa55c9 /lisp/magit-core.el
parent08dafc1732119663ef8e81c681da1f881bb12a0d (diff)
Use Cond-Let's implementations of {if,when,and,while}-let{,*}
Cond-Let's `if-let', `if-let*', `when-let', `when-let*' and `and-let*' implementations behave differently from the built-in implementations, but because I have been careful not to depend on the idiosyncrasies, switching over should be mostly safe. Also add shorthands for the other `cond-let--...' macros. We will start using those (and `cond-let' and `cond-let*') in later commits.
Diffstat (limited to 'lisp/magit-core.el')
-rw-r--r--lisp/magit-core.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/magit-core.el b/lisp/magit-core.el
index dd95228..0ea2385 100644
--- a/lisp/magit-core.el
+++ b/lisp/magit-core.el
@@ -122,7 +122,13 @@ Each of these options falls into one or more of these categories:
(provide 'magit-core)
;; Local Variables:
;; read-symbol-shorthands: (
+;; ("and$" . "cond-let--and$")
+;; ("and>" . "cond-let--and>")
+;; ("and-let" . "cond-let--and-let")
+;; ("if-let" . "cond-let--if-let")
+;; ("when-let" . "cond-let--when-let")
+;; ("while-let" . "cond-let--while-let")
;; ("match-string" . "match-string")
-;; ("match-str" . "match-string-no-properties"))
+;; ("match-str" . "match-string-no-properties"))
;; End:
;;; magit-core.el ends here