branch: externals/yasnippet
commit b86b44cce66f2a6a9994888dd0b7b8a89c898c83
Author: Stefan Monnier <[email protected]>
Commit: Stefan Monnier <[email protected]>
(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 c4f8ae48fa..c25df22266 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))