]> code.delx.au - gnu-emacs-elpa/commit
Indent multi-line output from mirrors
authorJoão Távora <joaotavora@gmail.com>
Fri, 4 Mar 2016 17:34:40 +0000 (17:34 +0000)
committerNoam Postavsky <npostavs@users.sourceforge.net>
Sat, 30 Apr 2016 23:00:53 +0000 (19:00 -0400)
commiteca2f995c15dda7632701f7cb682643f6c9597b6
tree0fcdfa5296da4064e0b6301464e604b63f46f5e7
parenteeb4b62efb636ba7e74d9afdfd14f906b23f9111
Indent multi-line output from mirrors

* yasnippet.el (yas--indent-region): Adapted and redesigned from
`yas--indent-according-to-mode'
(yas--indent-according-to-mode): Deleted.
(yas--indent): Use `yas--indent-region'.
(yas--real-line-beginning): Deleted.
(yas--update-mirrors): Always re-place active field overlay if it
exists.  Pass the snippet to `yas--mirror-update-display'.
(yas--mirror-update-display): Indent the mirror text after
inserting the reflection.
yasnippet.el