[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 6b4f7f5811 05/11: Remove magit-section-when, ob
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit 6b4f7f5811 05/11: Remove magit-section-when, obsolete since v2.90.0 |
Date: |
Mon, 13 Mar 2023 14:00:24 -0400 (EDT) |
branch: elpa/git-commit
commit 6b4f7f5811272417560e952aed390098c6cf100e
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Remove magit-section-when, obsolete since v2.90.0
---
lisp/magit-section.el | 24 ------------------------
1 file changed, 24 deletions(-)
diff --git a/lisp/magit-section.el b/lisp/magit-section.el
index 3844e13780..10c119a779 100644
--- a/lisp/magit-section.el
+++ b/lisp/magit-section.el
@@ -1213,30 +1213,6 @@ See `magit-section-match' for the forms CONDITION can
take."
(and (magit-section-match condition section)
(oref section value))))
-(defmacro magit-section-when (condition &rest body)
- "If the section at point matches CONDITION, evaluate BODY.
-
-If the section matches, then evaluate BODY forms sequentially
-with `it' bound to the section and return the value of the last
-form. If there are no BODY forms, then return the value of the
-section. If the section does not match or if there is no section
-at point, then return nil.
-
-See `magit-section-match' for the forms CONDITION can take."
- (declare (obsolete
- "instead use `magit-section-match' or `magit-section-value-if'."
- "Magit 2.90.0")
- (indent 1)
- (debug (sexp body)))
- `(--when-let (magit-current-section)
- ;; Quoting CONDITION here often leads to double-quotes, which
- ;; isn't an issue because `magit-section-match-1' implicitly
- ;; deals with that. We shouldn't force users of this function
- ;; to not quote CONDITION because that would needlessly break
- ;; backward compatibility.
- (when (magit-section-match ',condition it)
- ,@(or body '((oref it value))))))
-
(defmacro magit-section-case (&rest clauses)
"Choose among clauses on the type of the section at point.
- [nongnu] elpa/git-commit updated (dec25b407b -> 9b6ae49dd1), ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit 2bc6aaf527 02/11: Avoid using called-interactively-p, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit 6b4f7f5811 05/11: Remove magit-section-when, obsolete since v2.90.0,
ELPA Syncer <=
- [nongnu] elpa/git-commit df2f6e3f5d 01/11: magit-xref-setup: Limit number of items, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit 5b31ec985f 03/11: Cleanup whitespace, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit a8c92cc35d 06/11: Remove face aliases, obsolete since v2.12.0 and v3.0.0, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit ed8067830f 07/11: Remove variables and functions obsolete since v3.3.0, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit 02f4d3366e 08/11: Remove kludge for unmaintained third-party packages, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit 9b6ae49dd1 11/11: test: Compile magit-tests.el, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit 9e888be5ac 09/11: Remove magit-obsolete.el, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit 26a705fffe 10/11: test: Stop using removed magit-status-internal alias, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit bc18ba942f 04/11: Remove git-commit-fill-column, obsolete since v2.11.0, ELPA Syncer, 2023/03/13