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

Fix term-mode undo issue #914

Merged
merged 1 commit into from
Sep 1, 2017
Merged

Fix term-mode undo issue #914

merged 1 commit into from
Sep 1, 2017

Conversation

toctan
Copy link
Contributor

@toctan toctan commented Sep 1, 2017

Currently Evil breaks term-char-mode undo by enabling undo-tree-mode, see
syl20bnr/spacemacs#4063 (comment)

turn-on-undo-tree-mode checks the variable undo-tree-incompatible-major-modes
before enabling undo-tree-mode, see https://github.com/emacs-evil/evil/blob/master/lib/undo-tree.el#L2618

Currently Evil breaks `term-char-mode` undo by enabling `undo-tree-mode`, see
syl20bnr/spacemacs#4063 (comment)

`turn-on-undo-tree-mode` checks the variable `undo-tree-incompatible-major-modes`
before enabling `undo-tree-mode`, see https://github.com/emacs-evil/evil/blob/master/lib/undo-tree.el#L2618
@wasamasa
Copy link
Member

wasamasa commented Sep 1, 2017

Hm, I don't exactly see a change in behavior with and without this PR, but I agree that undo-tree-mode shouldn't be enabled in ansi-term. Thanks!

@wasamasa wasamasa merged commit e745d56 into emacs-evil:master Sep 1, 2017
@toctan
Copy link
Contributor Author

toctan commented Sep 3, 2017

@wasamasa Try use C-_ instead of C-/ in ansi-term to undo with & without this PR.

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

Successfully merging this pull request may close these issues.

2 participants