GNU bug report logs - #77095
31.0.50; Using fill-region doesn't produce commented lines in yaml-ts-mode

Previous Next

Package: emacs;

Reported by: the_wurfkreuz <the_wurfkreuz <at> proton.me>

Date: Tue, 18 Mar 2025 09:13:04 UTC

Severity: normal

Found in version 31.0.50

To reply to this bug, email your comments to 77095 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#77095; Package emacs. (Tue, 18 Mar 2025 09:13:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to the_wurfkreuz <the_wurfkreuz <at> proton.me>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 18 Mar 2025 09:13:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: the_wurfkreuz <the_wurfkreuz <at> proton.me>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 31.0.50;
 Using fill-region doesn't produce commented lines in yaml-ts-mode
Date: Tue, 18 Mar 2025 09:11:54 +0000
[Message part 1 (text/plain, inline)]
It's the same issue as in this bug report #75978, but for yaml-ts-mode. Do i need to provide reproduction steps still?
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77095; Package emacs. (Tue, 18 Mar 2025 17:32:02 GMT) Full text and rfc822 format available.

Message #8 received at 77095 <at> debbugs.gnu.org (full text, mbox):

From: Randy Taylor <dev <at> rjt.dev>
To: the_wurfkreuz <the_wurfkreuz <at> proton.me>
Cc: 77095 <at> debbugs.gnu.org
Subject: Re: bug#77095: 31.0.50;
 Using fill-region doesn't produce commented lines in yaml-ts-mode
Date: Tue, 18 Mar 2025 17:30:54 +0000
On Tuesday, March 18th, 2025 at 05:11, the_wurfkreuz via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org> wrote:
> It's the same issue as in this bug reportĀ #75978, but for yaml-ts-mode. Do i need to provide reproduction steps still?

Thanks for the report.

If it's the exact same steps (using yaml-ts-mode instead, obviously),
then no need.

I'll try to take a look at this hopefully sometime this week.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77095; Package emacs. (Sat, 22 Mar 2025 20:46:01 GMT) Full text and rfc822 format available.

Message #11 received at 77095 <at> debbugs.gnu.org (full text, mbox):

From: Randy Taylor <dev <at> rjt.dev>
To: the_wurfkreuz <the_wurfkreuz <at> proton.me>
Cc: 77095 <at> debbugs.gnu.org
Subject: Re: bug#77095: 31.0.50;
 Using fill-region doesn't produce commented lines in yaml-ts-mode
Date: Sat, 22 Mar 2025 20:44:49 +0000
On Tuesday, March 18th, 2025 at 05:11, the_wurfkreuz via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org> wrote:

> It's the same issue as in this bug reportĀ #75978, but for yaml-ts-mode. Do i need to provide reproduction steps still?

I followed the instructions listed in #75978 and it works for me as
expected.

I tried on master (commit 2658f4eab96aaad7f52245c2422bbfa51db9b207).

If you see otherwise, please post specific reproduction steps.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77095; Package emacs. (Sun, 23 Mar 2025 05:53:04 GMT) Full text and rfc822 format available.

Message #14 received at 77095 <at> debbugs.gnu.org (full text, mbox):

From: the_wurfkreuz <the_wurfkreuz <at> proton.me>
To: Randy Taylor <dev <at> rjt.dev>
Cc: 77095 <at> debbugs.gnu.org
Subject: Re: bug#77095: 31.0.50;
 Using fill-region doesn't produce commented lines in yaml-ts-mode
Date: Sun, 23 Mar 2025 05:52:18 +0000
I cleared the scratch buffer and pasted this yaml:

```
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  # some comment aosiertn oairsetn oarisetn oarisetn oarisent oarisetn oa risetn oairsetn
  name: hostpath-pvc-reboot-test
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: manual-reboot-test
  resources:
    requests:
      storage: 500Mi
```

Then i enabled yaml-ts-mode.
I went to the commented line and did `back-to-indentation`, then `set-mark-command` followed by `move-end-of-line` and `fill-region`.
And this is the result i got:

```
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  # some comment aosiertn oairsetn oarisetn oarisetn oarisent oarisetn
    oa risetn oairsetn
  name: hostpath-pvc-reboot-test
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: manual-reboot-test
  resources:
    requests:
      storage: 500Mi
```

I expect it to be like this:

```
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  # some comment aosiertn oairsetn oarisetn oarisetn oarisent oarisetn
  # oa risetn oairsetn
  name: hostpath-pvc-reboot-test
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: manual-reboot-test
  resources:
    requests:
      storage: 500Mi
```

I use emacs from the master branch.


On Saturday, March 22nd, 2025 at 8:44 PM, Randy Taylor <dev <at> rjt.dev> wrote:

> On Tuesday, March 18th, 2025 at 05:11, the_wurfkreuz via "Bug reports for GNU Emacs, the Swiss army knife of text editors" bug-gnu-emacs <at> gnu.org wrote:
> 
> > It's the same issue as in this bug report #75978, but for yaml-ts-mode. Do i need to provide reproduction steps still?
> 
> 
> I followed the instructions listed in #75978 and it works for me as
> expected.
> 
> I tried on master (commit 2658f4eab96aaad7f52245c2422bbfa51db9b207).
> 
> If you see otherwise, please post specific reproduction steps.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77095; Package emacs. (Thu, 03 Apr 2025 07:23:02 GMT) Full text and rfc822 format available.

Message #17 received at 77095 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: the_wurfkreuz <the_wurfkreuz <at> proton.me>
Cc: dev <at> rjt.dev, 77095 <at> debbugs.gnu.org
Subject: Re: bug#77095: 31.0.50;
 Using fill-region doesn't produce commented lines in yaml-ts-mode
Date: Thu, 03 Apr 2025 10:22:00 +0300
Ping! Randy, any suggestions?

> Cc: 77095 <at> debbugs.gnu.org
> Date: Sun, 23 Mar 2025 05:52:18 +0000
> From:  the_wurfkreuz via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> I cleared the scratch buffer and pasted this yaml:
> 
> ```
> apiVersion: v1
> kind: PersistentVolumeClaim
> metadata:
>   # some comment aosiertn oairsetn oarisetn oarisetn oarisent oarisetn oa risetn oairsetn
>   name: hostpath-pvc-reboot-test
> spec:
>   accessModes:
>     - ReadWriteOnce
>   storageClassName: manual-reboot-test
>   resources:
>     requests:
>       storage: 500Mi
> ```
> 
> Then i enabled yaml-ts-mode.
> I went to the commented line and did `back-to-indentation`, then `set-mark-command` followed by `move-end-of-line` and `fill-region`.
> And this is the result i got:
> 
> ```
> apiVersion: v1
> kind: PersistentVolumeClaim
> metadata:
>   # some comment aosiertn oairsetn oarisetn oarisetn oarisent oarisetn
>     oa risetn oairsetn
>   name: hostpath-pvc-reboot-test
> spec:
>   accessModes:
>     - ReadWriteOnce
>   storageClassName: manual-reboot-test
>   resources:
>     requests:
>       storage: 500Mi
> ```
> 
> I expect it to be like this:
> 
> ```
> apiVersion: v1
> kind: PersistentVolumeClaim
> metadata:
>   # some comment aosiertn oairsetn oarisetn oarisetn oarisent oarisetn
>   # oa risetn oairsetn
>   name: hostpath-pvc-reboot-test
> spec:
>   accessModes:
>     - ReadWriteOnce
>   storageClassName: manual-reboot-test
>   resources:
>     requests:
>       storage: 500Mi
> ```
> 
> I use emacs from the master branch.
> 
> 
> On Saturday, March 22nd, 2025 at 8:44 PM, Randy Taylor <dev <at> rjt.dev> wrote:
> 
> > On Tuesday, March 18th, 2025 at 05:11, the_wurfkreuz via "Bug reports for GNU Emacs, the Swiss army knife of text editors" bug-gnu-emacs <at> gnu.org wrote:
> > 
> > > It's the same issue as in this bug report #75978, but for yaml-ts-mode. Do i need to provide reproduction steps still?
> > 
> > 
> > I followed the instructions listed in #75978 and it works for me as
> > expected.
> > 
> > I tried on master (commit 2658f4eab96aaad7f52245c2422bbfa51db9b207).
> > 
> > If you see otherwise, please post specific reproduction steps.
> 
> 
> 
> 




This bug report was last modified 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.