|
From: | Jostein Kjønigsen |
Subject: | Re: Should yaml-ts-mode inherit from prog-mode? |
Date: | Tue, 21 Mar 2023 12:19:31 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 |
On 3/20/23 15:37, Rudolf Schlatte wrote:
Following up on this exact use-case, due to my text-mode hooks, using yaml-ts-mode many times ended up with causing invalid YAML or breaking existing YAML-files.Let me try one last argument for making the switch to prog-mode. Put the following yaml fragment into a file and hit M-q ("fill-paragraph"). This destroys the yaml structure: Before fill-paragraph: jobs: check: runs-on: ubuntu-latest strategy: fail-fast: false matrix: emacs_version: - 27.1 - 27.2 - 28.1 - 28.2 After fill-paragraph: jobs: check: runs-on: ubuntu-latest strategy: fail-fast: false matrix: emacs_version: - 27.1 - 27.2 - 28.1 - 28.2
I was pretty sure yaml-ts-mode itself was buggy and actually started using fundamental-mode to edit yaml-files instead, until I realized what was going on.
== Yes. The user-experience was literally that bad. ==Lots of people are going to have lots of problems and breakage when using yaml-ts-mode as it is today, deriving from text-mode.
I plea from the bottom of my heart that we allow a change to prog-mode. -- Jostein
[Prev in Thread] | Current Thread | [Next in Thread] |