GNU bug report logs -
#77095
31.0.50; Using fill-region doesn't produce commented lines in yaml-ts-mode
Previous Next
To reply to this bug, email your comments to 77095 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
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):
[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):
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):
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):
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):
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.
>
>
>
>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#77095
; Package
emacs
.
(Sat, 05 Apr 2025 20:22:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 77095 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Sunday, March 23rd, 2025 at 01:52, the_wurfkreuz <the_wurfkreuz <at> proton.me> wrote:
>
>
> 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.
>
Thanks, and sorry for the delay.
I've attached a patch that fixes it for me.
[0001-Fix-yaml-ts-mode-comment-filling-Bug-77095.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#77095
; Package
emacs
.
(Thu, 10 Apr 2025 07:17:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 77095 <at> debbugs.gnu.org (full text, mbox):
I applied the patch and recompiled emacs. I don't see any changes.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#77095
; Package
emacs
.
(Sat, 12 Apr 2025 20:06:05 GMT)
Full text and
rfc822 format available.
Message #26 received at 77095 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Thursday, April 10th, 2025 at 03:16, the_wurfkreuz <the_wurfkreuz <at> proton.me> wrote:
>
>
> I applied the patch and recompiled emacs. I don't see any changes.
Sorry, I must've turned another mode on or something by mistake. The
previous patch fixed the problem for fill-paragraph, and something
like electric-pair-mode being on fixes it for fill-region, too.
Anyway, I've attached an updated patch that should fix it for fill-region.
[0001-Fix-yaml-ts-mode-comment-filling-Bug-77095.patch (text/x-patch, attachment)]
This bug report was last modified 11 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.