1
0
Fork 0
mirror of https://github.com/emacs-twist/org-babel.git synced 2025-03-13 20:30:04 +00:00

feat: Add a set of more concisely named functions

The former naming was ugly, so I will deprecate it.

It is recommended to use these functions via a qualified import.
This commit is contained in:
Akira Komamura 2022-01-02 15:38:35 +09:00
parent a6c3ee8dfe
commit 3f27b47528

View file

@ -10,7 +10,17 @@ let
tangleOrgBabel = import ./tangleOrgBabel.nix;
in
{
# Newer concise APIs
excludeHeadlines = excludeOrgSubtreesOnHeadlines;
tag = matchOrgTag;
headlineText = matchOrgHeadline;
allP = predicates: x: builtins.all (p: p x) predicates;
anyP = predicates: x: builtins.any (p: p x) predicates;
# Deprecated APIs
inherit matchOrgTag matchOrgHeadline matchOrgHeadlines;
inherit excludeOrgSubtreesOnHeadlines;
# Tangle
inherit tangleOrgBabel;
}