diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2025-08-22 20:55:32 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2025-08-22 20:55:32 +0200 |
| commit | fcd2907fca0921c5338808e28427d7ca2649479c (patch) | |
| tree | 9bf6833a838c318bd1df1c1d446be88c3aaa55c9 /lisp/magit-reset.el | |
| parent | 08dafc1732119663ef8e81c681da1f881bb12a0d (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-reset.el')
| -rw-r--r-- | lisp/magit-reset.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/magit-reset.el b/lisp/magit-reset.el index 5b099fc..4e8af09 100644 --- a/lisp/magit-reset.el +++ b/lisp/magit-reset.el @@ -136,7 +136,13 @@ or \"detached head\" will be substituted for %s." (provide 'magit-reset) ;; 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-reset.el ends here |
