diff --git a/yasnippet.el b/yasnippet.el index c4f8ae4..c25df22 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -820,6 +820,9 @@ which decides on the snippet to expand.") ;; NOTE: `fboundp' check is redundant ;; since Emacs 24.4. (and (fboundp mode) (symbol-function mode)) + (and (boundp 'major-mode-remap-alist) + (car (rassq mode + major-mode-remap-alist))) (gethash mode yas--parents)) when (and neighbour (not (memq neighbour explored))