Fix tests failing because of lisp-data-mode

* yasnippet-tests.el (extra-modes-parenthood): Add lisp-data-mode
(bug#48102).
This commit is contained in:
Morgan Smith 2021-05-02 09:52:59 +02:00 committed by Lars Ingebrigtsen
parent 5cbdbf0d20
commit 0650f1989b

View File

@ -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 ;; prog-mode doesn't exist in emacs 23.4
,@(if (fboundp 'prog-mode) ,@(if (fboundp 'prog-mode)
'(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 emacs-lisp-mode
lisp-interaction-mode)) lisp-interaction-mode))
(observed (yas--modes-to-activate))) (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 ;; prog-mode doesn't exist in emacs 23.4
,@(if (fboundp 'prog-mode) ,@(if (fboundp 'prog-mode)
'(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 emacs-lisp-mode
and-also-this-one and-also-this-one
lisp-interaction-mode)) lisp-interaction-mode))