mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
(yas--modes-to-activate): Pay attention to major-mode-remap-alist
Should hopefully fix issue #1169.
This commit is contained in:
parent
52a1c50319
commit
b86b44cce6
@ -820,6 +820,9 @@ which decides on the snippet to expand.")
|
|||||||
;; NOTE: `fboundp' check is redundant
|
;; NOTE: `fboundp' check is redundant
|
||||||
;; since Emacs 24.4.
|
;; since Emacs 24.4.
|
||||||
(and (fboundp mode) (symbol-function mode))
|
(and (fboundp mode) (symbol-function mode))
|
||||||
|
(and (boundp 'major-mode-remap-alist)
|
||||||
|
(car (rassq mode
|
||||||
|
major-mode-remap-alist)))
|
||||||
(gethash mode yas--parents))
|
(gethash mode yas--parents))
|
||||||
when (and neighbour
|
when (and neighbour
|
||||||
(not (memq neighbour explored))
|
(not (memq neighbour explored))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user