[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master ce50b3d 004/177: Closes #318: Don't use CL-LABELS for back
From: |
João Távora |
Subject: |
[elpa] master ce50b3d 004/177: Closes #318: Don't use CL-LABELS for backward compatibility with older emacsen |
Date: |
Sat, 28 Mar 2015 15:40:25 +0000 |
branch: master
commit ce50b3dbfa7529fff3f642f986b6189436554276
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Closes #318: Don't use CL-LABELS for backward compatibility with older
emacsen
---
yasnippet.el | 23 +++++++++++------------
1 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/yasnippet.el b/yasnippet.el
index dab6b55..a6754ab 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -696,19 +696,18 @@ 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)
- (push mode explored)
- (cons mode
- (loop for neighbour
- in (remove nil (cons (get mode
- 'derived-mode-parent)
- (gethash mode yas--parents)))
-
- unless (memq neighbour explored)
- append (dfs neighbour explored)))))
+ (let ((dfs (lambda (mode &optional explored)
+ (push mode explored)
+ (cons mode
+ (loop for neighbour
+ in (remove nil (cons (get mode
+ 'derived-mode-parent)
+ (gethash mode yas--parents)))
+
+ unless (memq 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.")
- [elpa] master updated (da45e68 -> 39a27b6), João Távora, 2015/03/28
- [elpa] master 6ce6b24 001/177: fix: replace 'text' in 'yas-text' in bundled snippets, João Távora, 2015/03/28
- [elpa] master ddaf9a9 002/177: Fix: cleanup yasnippet-tests.el, João Távora, 2015/03/28
- [elpa] master ce50b3d 004/177: Closes #318: Don't use CL-LABELS for backward compatibility with older emacsen,
João Távora <=
- [elpa] master a7d40ed 003/177: Closes #318: correctly implement YAS--MODES-TO-ACTIVATE, João Távora, 2015/03/28
- [elpa] master 78c52fd 005/177: fix: shoosh warning with LETREC instead of LET, João Távora, 2015/03/28
- [elpa] master 3ec62ab 006/177: fix: please older emacsen, don't use LETREC after all, João Távora, 2015/03/28
- [elpa] master 1aac5fc 008/177: Merge pull request #407 from dongxiong/patch-1, João Távora, 2015/03/28
- [elpa] master 79f3656 011/177: fix font-lock-keywords syntax, João Távora, 2015/03/28
- [elpa] master 13cfdbc 009/177: fix: remove references to dropdown-list.el in Rakefile, João Távora, 2015/03/28
- [elpa] master 8853127 007/177: Update manual.mdown, João Távora, 2015/03/28
- [elpa] master d963c41 010/177: Closes #406: correct docstring for yas-extra-modes, João Távora, 2015/03/28
- [elpa] master f21ddd1 012/177: remove redundant font-lock-keywords, João Távora, 2015/03/28
- [elpa] master 90d4cae 013/177: inhibit change hooks during (insert content), João Távora, 2015/03/28