mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Fix #619; find parents for extra-modes too
* yasnippet.el (yas--modes-to-activate): Call dfs on yas--extra-modes as well.
This commit is contained in:
parent
e56aa6f7b3
commit
fb6ec67228
@ -741,10 +741,9 @@ and friends."
|
|||||||
(symbolp neighbour))
|
(symbolp neighbour))
|
||||||
do (funcall dfs neighbour)))))
|
do (funcall dfs neighbour)))))
|
||||||
(if mode
|
(if mode
|
||||||
(progn (funcall dfs mode)
|
(funcall dfs mode)
|
||||||
explored)
|
(mapcar dfs (cons major-mode yas--extra-modes)))
|
||||||
(funcall dfs major-mode)
|
explored))
|
||||||
(append yas--extra-modes explored))))
|
|
||||||
|
|
||||||
(defvar yas-minor-mode-hook nil
|
(defvar yas-minor-mode-hook nil
|
||||||
"Hook run when `yas-minor-mode' is turned on.")
|
"Hook run when `yas-minor-mode' is turned on.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user