]> git.eshelyaron.com Git - emacs.git/commit
Improve yaml-ts-mode fill-paragraph (bug#68226)
authorGraham Marlow <graham@mgmarlow.com>
Tue, 2 Jan 2024 21:58:22 +0000 (13:58 -0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 5 Jan 2024 08:23:35 +0000 (09:23 +0100)
commit233045246cd352e3516d6fdecfb7b3121c1cfac5
treeafcd4c7471e57db191c1dc19f2c735378e5c3265
parentf1aea4427b792c244923f66afbc6a046f981fad4
Improve yaml-ts-mode fill-paragraph (bug#68226)

When using fill-paragraph on a block_scalar (the element within a
block_node) fill the paragraph such that the contents remain
within the block_node. This fixes the previous behavior that would
clobber a block_node.

* lisp/textmodes/yaml-ts-mode.el: Add yaml-ts-mode--fill-paragraph

(cherry picked from commit 1d40c601b3b77d3bf1ad1bdfbaf2f479ba9c4998)
lisp/textmodes/yaml-ts-mode.el