emacs-evil/goto-chg

Comments created by comment-dwim-2 are not detected as changes

taquangtrung opened this issue · 4 comments

Hi,

This is a similar issue to #8, but happens to comment-dwim-2.

Can you help to check?

I'm using:

Thank you!

This is still lacking reproduction instructions.

@wasamasa: I did a further investigation and it turned out that goto-last-change cannot record the changes done by comment-region, shipped default with Emacs 28.1

Reproduction steps:

The cursor does not jump to the previous location where the region is commented.

Note that I used the default undo mechanism in the above step (undo-tree was not used).

Thank you, I can reproduce this now. First question that comes to mind is whether this is an issue exclusive to Emacs 28.1. Does Emacs 27.1 behave correctly? If yes, that would point to glc-fixup-edit requiring adjustments specific to Emacs 28.1.

Thanks for the confirmation!

FYI, I just tested on Emacs 27.1 (similar reproducing steps) and the bug still occurs when comment-region is used.