News for hackers. Stuff that matters.
Re:Emacs 26 Brings Generators and Threads by mrighele on Friday June 01, 2018 @07:25AM (#17204321)
I too find the undo behavior quite confusing. I don't know the implementation, but I guess it is because by default instead of unwinding the stack of operations it does something like doing the opposite action. This means that sometimes you may redo an operation by mistake: for example

- Paste 5 time the same line - Press undo 3 times: removes 3 lines - Move the cursor by one character - Press undo 2 times: instead of removing 2 lines it adds back 2

It would be better if the two operations (undo/redo) would be distinct.

Re:Emacs 26 Brings Generators and Threads by rusk on Friday June 01, 2018 @08:22AM (#17204599)
Basically "Undos" become actions that you can later "Undo". It's very weird. I accept that it means you never loose a change but it does feel a bit like boiling the ocean to produce some salt ... that said, it's an "alternative approach" that does have its merits. I like that about emacs, it challenges your assumptions and makes you think! As much concept art as a tool in itself.