mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 21:43:04 +00:00
fix: shoosh warning with LETREC instead of LET
This commit is contained in:
parent
ce50b3dbfa
commit
78c52fdf5c
18
yasnippet.el
18
yasnippet.el
@ -696,16 +696,16 @@ defined direct keybindings to the command
|
|||||||
(defun yas--modes-to-activate ()
|
(defun yas--modes-to-activate ()
|
||||||
"Compute list of mode symbols that are active for `yas-expand'
|
"Compute list of mode symbols that are active for `yas-expand'
|
||||||
and friends."
|
and friends."
|
||||||
(let ((dfs (lambda (mode &optional explored)
|
(letrec ((dfs (lambda (mode &optional explored)
|
||||||
(push mode explored)
|
(push mode explored)
|
||||||
(cons mode
|
(cons mode
|
||||||
(loop for neighbour
|
(loop for neighbour
|
||||||
in (remove nil (cons (get mode
|
in (remove nil (cons (get mode
|
||||||
'derived-mode-parent)
|
'derived-mode-parent)
|
||||||
(gethash mode yas--parents)))
|
(gethash mode yas--parents)))
|
||||||
|
|
||||||
unless (memq neighbour explored)
|
unless (memq neighbour explored)
|
||||||
append (funcall dfs neighbour explored))))))
|
append (funcall dfs neighbour explored))))))
|
||||||
(remove-duplicates (append yas-extra-modes
|
(remove-duplicates (append yas-extra-modes
|
||||||
(funcall dfs major-mode)))))
|
(funcall dfs major-mode)))))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user