(yas--modes-to-activate): Pay attention to major-mode-remap-alist

Should hopefully fix issue #1169.
This commit is contained in:
Stefan Monnier 2024-01-01 16:17:58 -05:00
parent 52a1c50319
commit b86b44cce6

View File

@ -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))