From 8bbb6d30529abd5350884e822b308da917966e73 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 5 May 2026 05:10:52 -0500 Subject: fix: drop dead translate_number entry from card-type alist (upstream #43) The card-type alist mapped translate_number to a function that no longer exists in the file. Cards with DRILL_CARD_TYPE: translate_number crashed with void-function during drill instead of being skipped. Reporter (issue #43, 2021) said they had old decks using the documented translate_number type and were getting the crash on restore. The function was apparently removed at some point without clearing the alist entry. Removed the alist entry so entry-f's no-presentation-fn branch fires and returns skip after messaging the user. Legacy decks now degrade gracefully instead of crashing the session. Tests in tests/test-org-drill-translate-number-regression.el lock the behavior in (entry-f returns skip on translate_number, alist no longer carries the entry). --- org-drill.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'org-drill.el') diff --git a/org-drill.el b/org-drill.el index 599406f..f98bbfe 100644 --- a/org-drill.el +++ b/org-drill.el @@ -294,8 +294,7 @@ This is a buffer-local variable.") ("decline_noun" org-drill-present-noun-declension org-drill-show-answer-noun-declension) - ("spanish_verb" org-drill-present-spanish-verb) - ("translate_number" org-drill-present-translate-number)) + ("spanish_verb" org-drill-present-spanish-verb)) "Alist associating card types with presentation functions. Each entry in the alist takes the form: -- cgit v1.2.3