[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 0f8c2ab 094/177: Add `yas-after-reload-hook' and run it at
From: |
João Távora |
Subject: |
[elpa] master 0f8c2ab 094/177: Add `yas-after-reload-hook' and run it at the end of `yas-reload-all' |
Date: |
Sat, 28 Mar 2015 15:41:10 +0000 |
branch: master
commit 0f8c2ab4381449298d8bc8b8ee63524aaa8ba1ac
Author: Joao Tavora <address@hidden>
Commit: Joao Tavora <address@hidden>
Add `yas-after-reload-hook' and run it at the end of `yas-reload-all'
See https://github.com/pezra/rspec-mode/pull/75 for the discussion leading
up to
this change.
---
ChangeLog | 10 ++++++++++
yasnippet.el | 4 ++++
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 483f2ac..c735533 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-06 João Távora <address@hidden>
+
+ * yasnippet.el (yas-reload-all): run `yas-after-reload-hook'.
+ (yas-after-reload-hook): add it.
+
2013-12-31 João Távora <address@hidden>
* yasnippet.el (require): require cl-lib during byte-compilation
@@ -16,3 +21,8 @@
* README.mdown: Add Travis CI badge.
* .travis.yml: new file
+
+
+;; Local Variables:
+;; coding: utf-8
+;; End:
diff --git a/yasnippet.el b/yasnippet.el
index 98ace6a..269d008 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -1931,10 +1931,14 @@ loading."
;;
(yas-direct-keymaps-reload)
+ (run-hooks 'yas-after-reload-hook)
(yas--message 3 "Reloaded everything%s...%s."
(if interactive "" " (snippets will load just-in-time)")
(if errors " (some errors, check *Messages*)" "")))))
+(defvar yas-after-reload-hook nil
+ "Hooks run after `yas-reload-all'.")
+
(defun yas--load-pending-jits ()
(dolist (mode (yas--modes-to-activate))
(let ((funs (reverse (gethash mode yas--scheduled-jit-loads))))
- [elpa] master 0567c93 083/177: Merge pull request #442 from npostavs/auto-export, (continued)
- [elpa] master 0567c93 083/177: Merge pull request #442 from npostavs/auto-export, João Távora, 2015/03/28
- [elpa] master 4916657 084/177: Use https instead of ssh for submodules access, João Távora, 2015/03/28
- [elpa] master 22773c7 087/177: add a link to the symbol reference in top menu, João Távora, 2015/03/28
- [elpa] master c18672a 085/177: Closes #447: only call command beyond yasnippet if it exists, João Távora, 2015/03/28
- [elpa] master 24d7a67 086/177: fix typo, João Távora, 2015/03/28
- [elpa] master 78c8b5e 090/177: yas--document-symbol: fix no transform case, João Távora, 2015/03/28
- [elpa] master e190b08 088/177: Rakefile: don't fail with EMACS=t env setting, João Távora, 2015/03/28
- [elpa] master df58222 089/177: yas--document-symbols: respect level arg, raise to 1, João Távora, 2015/03/28
- [elpa] master f94c38e 091/177: Merge pull request #449 from nibua-r/https-submodules, João Távora, 2015/03/28
- [elpa] master 3002043 093/177: Sync git submodule for yasmate repo, João Távora, 2015/03/28
- [elpa] master 0f8c2ab 094/177: Add `yas-after-reload-hook' and run it at the end of `yas-reload-all',
João Távora <=
- [elpa] master 987942c 095/177: update snippets submodule, João Távora, 2015/03/28
- [elpa] master c128580 096/177: yasnippet templates don't add newlines, João Távora, 2015/03/28
- [elpa] master 83c174c 097/177: Merge pull request #464 from kidd/master, João Távora, 2015/03/28
- [elpa] master 12b7f82 092/177: Add Travis CI and update tests. Start a Changelog., João Távora, 2015/03/28
- [elpa] master 3744f92 098/177: avoid double choices reversing, João Távora, 2015/03/28
- [elpa] master 1fc858f 099/177: Remove experimental Changelog file, João Távora, 2015/03/28
- [elpa] master 4d220f7 100/177: Remove an obsolete hack notice, João Távora, 2015/03/28
- [elpa] master 4470110 101/177: display-fn isn't actually used for filtering, João Távora, 2015/03/28
- [elpa] master c07db05 102/177: yas-x-prompt: remove dead code, João Távora, 2015/03/28
- [elpa] master 43a501a 103/177: remove yas--x-pretty-prompt-templates, João Távora, 2015/03/28