Skip to content

Commit ab03a75

Browse files
author
Ron Gut
committed
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.
1 parent 5b565c5 commit ab03a75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

yasnippet-tests.el

+1
Original file line numberDiff line numberDiff line change
@@ -1438,6 +1438,7 @@ hello ${1:$(when (stringp yas-text) (funcall func yas-text))} foo${1:$$(concat \
14381438
(yas-with-snippet-dirs '((".emacs.d/snippets"
14391439
("yas--test-mode")))
14401440
(yas-reload-all)
1441+
(put 'c-mode 'yas--all-parents nil)
14411442
(with-temp-buffer
14421443
(let* ((major-mode 'yas--test-mode)
14431444
(expected `(fundamental-mode

0 commit comments

Comments
 (0)