branch: elpa/gnosis
commit b622de441cf01f095ef1e2e88be02fcbfaac8e44
Author: Thanos Apollo <[email protected]>
Commit: Thanos Apollo <[email protected]>
[new] update-thema: support type changes.
* all themata have the same data, so change of thema type
e.g from cloze => mc-cloze should not be an issue
---
gnosis.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gnosis.el b/gnosis.el
index 8905eec5d1..0072a944d2 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -957,6 +957,8 @@ When `gnosis--id-cache' is bound, uses hash table for
existence check."
(gnosis-update 'themata `(= answer ',answer) `(= id ,id))
(gnosis-update 'extras `(= parathema ,parathema) `(= id ,id))
(gnosis-update 'themata `(= tags ',tags) `(= id ,id))
+ (when type
+ (gnosis-update 'themata `(= type ,type) `(= id ,id)))
(gnosis--delete 'links `(= source ,id))
(cl-loop for link in links
do (gnosis--insert-into 'links `([,id ,link]))))