Comments (6)
Thanks @Hi-Angel - I can reproduce. If evil-want-fine-undo
is set to t
then I can't, so it does indeed look like evil is clobbering the undo info for what was typed, most likely as part of its evil-start-undo-step
grouping. Will investigate when I have some time. The proliferation of marker entries looks like it's worth investigating too.
from evil.
Yay, cool, that works! Thanks!
from evil.
This may be a bug in Emacs, because the problem is reproduced if I bind C-/ and C-r (the latter in "normal mode") to undo-only
and undo-redo
directly.
However, I'd need some help in reducing this to a testcase that detaches the problem from Evil.
from evil.
Idk if relevant, but I found out that reproducing the bug leaves a marker in no buffer
entry in the buffer-undo-list
list.
Evil somehow causes it, that won't appear in emacs -Q
. As a matter of fact, Evil leaves around a lot of marker
entries while following the steps (albeit only one of them is a "no buffer"). That does not happen with emacs -Q
which has only one marker.
from evil.
Thank you @tomdl89. Makes me wonder if that's somehow connected to the infamous undo-tree "unrecognized entry in undo list" error.
from evil.
I have evil-want-fine-undo
set to t
and I think that is the best solution to this problem. But I have also made a commit which does provide a fix, of sorts, without doing that: https://github.com/tomdl89/evil/tree/insert-state-undo-in-normal-state.
@Hi-Angel can you check out the branch and let me know if it works as expected? It drops you back to normal state, undoes the (entire) insert, and then puts you back into insert state. A jumping-off point, at least, hopefully.
from evil.
Related Issues (20)
- Visual states should set region-extract-function
- `Vkko` does nothing under cua-selection-mode
- How to reliably check if at the beginning of the line in Evil visual state? HOT 3
- visual selection + prettify
- `vip` select wrong region in org-mode HOT 3
- Help overriding only certain postfixs to "m" HOT 2
- $ followed by g j moves point at the beginning of next line HOT 4
- Don't move cursor (and don't unhighlight) options in evil mode HOT 1
- Move `evil-test-helpers.el` to its own repo? HOT 6
- Can't exit Visual-Block Mode with keyboard-escape-quit HOT 1
- Copy/paste in + register doesn't work when evil is run in Emacs terminal HOT 3
- incorrect behaviour of visual block paste HOT 14
- Backreferences in search fail to work with vim-style-regexp HOT 2
- Docstring slot busy for select-window in evil-core.el
- C-M-mouse-1 / mouse-drag-region-rectangle doesn't work in normal state
- 'f' (search forward) becomes ';' repeat search on second search HOT 2
- `C-w <count> +` and `C-w <count> -` will not work; you *have* to put the count in front HOT 1
- Compile Error: List contains a loop: (lower-right lower-left upper-left upper-right HOT 2
- (evil-goto-definition) somehow erases the last jump HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evil.