From ab03a754e727f3af6a57860a20b2825f87bec681 Mon Sep 17 00:00:00 2001 From: Ron Gut Date: Wed, 28 Feb 2024 19:26:45 -0500 Subject: [PATCH] Undo all-parents memoization in test yas-reload-all does not undo the memoization done in yas--all-parents, which causes the issue-492-and-494 test to fail when run after any tests that expands yas-with-some-interesting-snippet-dirs. With the memoization enabled, c++-mode is considered a parent of c-mode, causing the issue-492-and-494 test to fail. With the memoization reset, this does not occur. --- yasnippet-tests.el | 1 + 1 file changed, 1 insertion(+) diff --git a/yasnippet-tests.el b/yasnippet-tests.el index e8d2847..7e10095 100644 --- a/yasnippet-tests.el +++ b/yasnippet-tests.el @@ -1438,6 +1438,7 @@ hello ${1:$(when (stringp yas-text) (funcall func yas-text))} foo${1:$$(concat \ (yas-with-snippet-dirs '((".emacs.d/snippets" ("yas--test-mode"))) (yas-reload-all) + (put 'c-mode 'yas--all-parents nil) (with-temp-buffer (let* ((major-mode 'yas--test-mode) (expected `(fundamental-mode