mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
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:
parent
75cbf7251b
commit
7365f9ed40
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user