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

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

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: 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 21 days ago.

Previous Next


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