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:
parent
a6c3ee8dfe
commit
3f27b47528
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue