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

Lentic interferes with undo #20

Closed
tmalsburg opened this issue Feb 21, 2015 · 4 comments
Closed

Lentic interferes with undo #20

tmalsburg opened this issue Feb 21, 2015 · 4 comments

Comments

@tmalsburg
Copy link

Open lentic-org.el and a lentic view of that file in org mode (lentic-orgel-org-init). Write a longer text on one buffer line in either the Elisp view or the org view and execute fill-column to word wrap. This produces several new buffer lines. Then execute undo-tree-undo.

Expected result: the text is on one line as it was before fill-column.

Actual result: I have to execute undo several times to arrive at the original text in several steps. In each step either two adjacent lines are joined, or the comment characters of a line (;;) are removed in the elisp view.

Thanks for lentic mode. It looks very promising and I'm looking forward to use it.

@phillord
Copy link
Owner

I haven't seen quite that before -- it's not specific to undo-tree, incidentally, and yes, it's clearly buggy.

Lentic and the undo system do not interact well with each other at all at the moment. In general, I find it difficult to predict when switching views. This is the first time that I have seen it happen with a single buffer.

Will investigate! Thanks for the report.

@phillord
Copy link
Owner

Been investigating this further, and I know why it's happening, but not sure how to fix it yet!

@tmalsburg
Copy link
Author

Thanks for looking into it!

@phillord
Copy link
Owner

So, took a while, but this should be fixed now. It requires compiling from Emacs trunk, am afraid. There should be pretests out in a short while.

Will close this now. Feel free to reopen if it doesn't work.

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