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-commit.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-commit.el')
| -rw-r--r-- | lisp/magit-commit.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/magit-commit.el b/lisp/magit-commit.el index 7aab4f3..e8607c0 100644 --- a/lisp/magit-commit.el +++ b/lisp/magit-commit.el @@ -815,7 +815,13 @@ actually insert the entry." (provide 'magit-commit) ;; 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-commit.el ends here |
