From 0650f1989b6da752f60a15aa6b5222e340388cc2 Mon Sep 17 00:00:00 2001 From: Morgan Smith Date: Sun, 2 May 2021 09:52:59 +0200 Subject: [PATCH] Fix tests failing because of lisp-data-mode * yasnippet-tests.el (extra-modes-parenthood): Add lisp-data-mode (bug#48102). --- yasnippet-tests.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/yasnippet-tests.el b/yasnippet-tests.el index b8a7980..fdc5395 100644 --- a/yasnippet-tests.el +++ b/yasnippet-tests.el @@ -1389,6 +1389,9 @@ hello ${1:$(when (stringp yas-text) (funcall func yas-text))} foo${1:$$(concat \ ;; prog-mode doesn't exist in emacs 23.4 ,@(if (fboundp 'prog-mode) '(prog-mode)) + ;; lisp-data-mode doesn't exist in emacs 27.1 + ,@(if (fboundp 'lisp-data-mode) + '(lisp-data-mode)) emacs-lisp-mode lisp-interaction-mode)) (observed (yas--modes-to-activate))) @@ -1416,6 +1419,9 @@ hello ${1:$(when (stringp yas-text) (funcall func yas-text))} foo${1:$$(concat \ ;; prog-mode doesn't exist in emacs 23.4 ,@(if (fboundp 'prog-mode) '(prog-mode)) + ;; lisp-data-mode doesn't exist in emacs 27.1 + ,@(if (fboundp 'lisp-data-mode) + '(lisp-data-mode)) emacs-lisp-mode and-also-this-one lisp-interaction-mode))