emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master fb6ec67 29/60: Fix #619; find parents for extra-modes too


From: João Távora
Subject: [elpa] master fb6ec67 29/60: Fix #619; find parents for extra-modes too
Date: Thu, 21 Jan 2016 22:35:58 +0000

branch: master
commit fb6ec6722827b812a2e8bed85378a06d234cdd56
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Fix #619; find parents for extra-modes too
    
    * yasnippet.el (yas--modes-to-activate): Call dfs on yas--extra-modes as
      well.
---
 yasnippet.el |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/yasnippet.el b/yasnippet.el
index c38b9db..a119011 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -741,10 +741,9 @@ and friends."
                                   (symbolp neighbour))
                         do (funcall dfs neighbour)))))
     (if mode
-        (progn (funcall dfs mode)
-               explored)
-      (funcall dfs major-mode)
-      (append yas--extra-modes explored))))
+        (funcall dfs mode)
+      (mapcar dfs (cons major-mode yas--extra-modes)))
+    explored))
 
 (defvar yas-minor-mode-hook nil
   "Hook run when `yas-minor-mode' is turned on.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]