[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7365f9e 1/5: Avoid to indent snippets having setup `(yas-i
From: |
Noam Postavsky |
Subject: |
[elpa] master 7365f9e 1/5: Avoid to indent snippets having setup `(yas-indent-line 'fixed)' |
Date: |
Sun, 23 Jul 2017 18:40:02 -0400 (EDT) |
branch: master
commit 7365f9ed40c2470799686954c9e981b499eca2de
Author: Pierre Téchoueyres <address@hidden>
Commit: Noam Postavsky <address@hidden>
Avoid to indent snippets having setup `(yas-indent-line 'fixed)'
Avoid `yas--auto-fill' call to `yas--update-mirrors' without setting
the snippet environment.
* yasnippet.el (yas--auto-fill): Reinstate snippet environment before
calling `yas--update-mirrors'.
---
yasnippet.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/yasnippet.el b/yasnippet.el
index 834d035..4ad502a 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -3635,7 +3635,10 @@ field start. This hook does nothing if an undo is in
progress."
(narrow-to-region beg end)
(mapc #'yas--restore-marker-location remarkers)
(mapc #'yas--restore-overlay-location reoverlays))
- (mapc #'yas--update-mirrors snippets))))
+ (mapc (lambda (snippet)
+ (yas--letenv (yas--snippet-expand-env snippet)
+ (yas--update-mirrors snippet)))
+ snippets))))
;;; Apropos protection overlays:
- [elpa] master updated (32b8352 -> a1d8b5b), Noam Postavsky, 2017/07/23
- [elpa] master 7365f9e 1/5: Avoid to indent snippets having setup `(yas-indent-line 'fixed)',
Noam Postavsky <=
- [elpa] master 0463c75 4/5: Release 0.12.1, Noam Postavsky, 2017/07/23
- [elpa] master 304c01a 2/5: Fix some compilation warnings, Noam Postavsky, 2017/07/23
- [elpa] master dd65fe6 3/5: Add compile_all target, fix all compilation warnings, Noam Postavsky, 2017/07/23
- [elpa] master a1d8b5b 5/5: Merge yasnippet 0.12.1 from upstream, Noam Postavsky, 2017/07/23