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'.
This commit is contained in:
Pierre Téchoueyres 2017-07-22 22:02:16 +02:00 committed by Noam Postavsky
parent 75cbf7251b
commit 7365f9ed40

View File

@ -3635,7 +3635,10 @@ field start. This hook does nothing if an undo is in progress."
(narrow-to-region beg end) (narrow-to-region beg end)
(mapc #'yas--restore-marker-location remarkers) (mapc #'yas--restore-marker-location remarkers)
(mapc #'yas--restore-overlay-location reoverlays)) (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: ;;; Apropos protection overlays: