[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Should yaml-ts-mode inherit from prog-mode?
From: |
Eli Zaretskii |
Subject: |
Re: Should yaml-ts-mode inherit from prog-mode? |
Date: |
Tue, 21 Mar 2023 15:26:28 +0200 |
> Date: Tue, 21 Mar 2023 12:19:31 +0100
> From: Jostein Kjønigsen <jostein@secure.kjonigsen.net>
>
> On 3/20/23 15:37, Rudolf Schlatte wrote:
> >
> > 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
> >
> 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.
>
> 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.
We should instead fix yaml-ts-mode by providing a proper
fill-paragraph-function for it. No one said that the default
text-mode one will do TRT.
- Re: Should yaml-ts-mode inherit from prog-mode?, (continued)
- Re: Should yaml-ts-mode inherit from prog-mode?, Romanos Skiadas, 2023/03/02
- Re: Should yaml-ts-mode inherit from prog-mode?, Richard Stallman, 2023/03/02
- Re: Should yaml-ts-mode inherit from prog-mode?, Romanos Skiadas, 2023/03/04
- Re: Should yaml-ts-mode inherit from prog-mode?, Randy Taylor, 2023/03/19
- Re: Should yaml-ts-mode inherit from prog-mode?, Eli Zaretskii, 2023/03/20
- Re: Should yaml-ts-mode inherit from prog-mode?, Rudolf Schlatte, 2023/03/20
- Re: Should yaml-ts-mode inherit from prog-mode?, Brian Cully, 2023/03/20
- Re: Should yaml-ts-mode inherit from prog-mode?, Eli Zaretskii, 2023/03/20
- Re: Should yaml-ts-mode inherit from prog-mode?, Jostein Kjønigsen, 2023/03/21
- Re: Should yaml-ts-mode inherit from prog-mode?,
Eli Zaretskii <=
- Re: Should yaml-ts-mode inherit from prog-mode?, Rudolf Schlatte, 2023/03/21
- Re: Should yaml-ts-mode inherit from prog-mode?, Yuri Khan, 2023/03/21
- Re: Should yaml-ts-mode inherit from prog-mode?, Rudolf Schlatte, 2023/03/21
- Re: Should yaml-ts-mode inherit from prog-mode?, Yuri Khan, 2023/03/22
- Re: Should yaml-ts-mode inherit from prog-mode?, David Ongaro, 2023/03/21
- Re: Should yaml-ts-mode inherit from prog-mode?, Randy Taylor, 2023/03/20
Re: Re: Should yaml-ts-mode inherit from prog-mode?, Pedro Andres Aranda Gutierrez, 2023/03/05
Re: Should yaml-ts-mode inherit from prog-mode?, Ongaro, 2023/03/11