mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 06:32:24 +00:00
Closes #318: Don't use CL-LABELS for backward compatibility with older emacsen
This commit is contained in:
@@ -696,8 +696,7 @@ defined direct keybindings to the command
|
||||
(defun yas--modes-to-activate ()
|
||||
"Compute list of mode symbols that are active for `yas-expand'
|
||||
and friends."
|
||||
(cl-labels
|
||||
((dfs (mode &optional explored)
|
||||
(let ((dfs (lambda (mode &optional explored)
|
||||
(push mode explored)
|
||||
(cons mode
|
||||
(loop for neighbour
|
||||
@@ -706,9 +705,9 @@ and friends."
|
||||
(gethash mode yas--parents)))
|
||||
|
||||
unless (memq neighbour explored)
|
||||
append (dfs neighbour explored)))))
|
||||
append (funcall dfs neighbour explored))))))
|
||||
(remove-duplicates (append yas-extra-modes
|
||||
(dfs major-mode)))))
|
||||
(funcall dfs major-mode)))))
|
||||
|
||||
(defvar yas-minor-mode-hook nil
|
||||
"Hook run when `yas-minor-mode' is turned on.")
|
||||
|
||||
Reference in New Issue
Block a user