From b86b44cce66f2a6a9994888dd0b7b8a89c898c83 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 1 Jan 2024 16:17:58 -0500 Subject: [PATCH] (yas--modes-to-activate): Pay attention to `major-mode-remap-alist` Should hopefully fix issue #1169. --- yasnippet.el | 3 +++ 1 file changed, 3 insertions(+) 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))