Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
taquangtrung opened this issue Sep 4, 2022 · 4 comments
Open

Comments

@taquangtrung
Copy link

Hi,

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

Can you help to check?

I'm using:

Thank you!

@wasamasa
Copy link
Member

wasamasa commented Sep 5, 2022

This is still lacking reproduction instructions.

@taquangtrung
Copy link
Author

taquangtrung commented Sep 11, 2022

@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).

@wasamasa
Copy link
Member

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.

@taquangtrung
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants