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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

New undo behaviour #6203

Closed
samdesota opened this issue Jun 2, 2016 · 13 comments
Closed

New undo behaviour #6203

samdesota opened this issue Jun 2, 2016 · 13 comments
Labels
- Bug tracker - Emacs 25.1 Evil stale marked as a stale issue/pr (usually by a bot)

Comments

@samdesota
Copy link

samdesota commented Jun 2, 2016

Edit:

Description :octocat:

Is there new undo behavior? If so, how can I change it?
The grouping appears to be messed up.

Reproduction guide 馃

  • Start Emacs
  • Insert text on one line
  • move to another line
  • delete the line
  • hit undo

Observed behaviour: 馃憖
it put's the line back, but then goes back to the line you inserted text on and removes the insert

Expected behaviour: 馃挃
It put's the line back

System Info 馃捇

  • OS: darwin
  • Emacs: 25.0.94.1
  • Spacemacs: 0.105.20
  • Spacemacs branch: develop (rev. 9414a8a)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(auto-completion search-engine fasd emacs-lisp react html git markdown org clojure yaml haskell elm rust
                 (shell :variables shell-default-shell 'eshell shell-default-height 30 shell-default-position 'bottom)
                 spell-checking syntax-checking version-control)
@syl20bnr
Copy link
Owner

syl20bnr commented Jun 2, 2016

Interesting, I'll check it out, we did not change anything in this regard.
In the meantime be sure that your packages are up to date.

@syl20bnr
Copy link
Owner

syl20bnr commented Jun 2, 2016

Also use SPC h I to submit your issue, this way we can have more info about your system.

@samdesota
Copy link
Author

Updated with SPC h I

@samdesota
Copy link
Author

I'm on the latest develop, also.

@Stebalien
Copy link
Contributor

Stebalien commented Jun 2, 2016

Could you give the reproduction instructions assuming one starts in a scratch buffer and give the exact key sequence? For example, ia<RET>b<RET>c<ESC>ggAa<ESC>jddu (which doesn't reproduce the problem for me).

-- edit: ggAa, not ggaa

@samdesota
Copy link
Author

samdesota commented Jun 3, 2016

Your moves appeared broken, this appears not to work also:

ifoo<RET>bar<ESC>kA test<ESC>jddu

I'm going to try and move my .spacemacs to .back and then try again.

@samdesota
Copy link
Author

Still broken on a fresh .spacemacs

@samdesota
Copy link
Author

samdesota commented Jun 3, 2016

Cloned master, fresh .spacemacs, still broken. Could be a problem with GNU Emacs 25?

@Stebalien
Copy link
Contributor

Stebalien commented Jun 3, 2016

Still can't reproduce but I'm using emacs 24.5. Have you tried setting evil-want-fine-undo to nil (wild guess)?

@StreakyCobra
Copy link
Contributor

You can also try to look for similar problems upstream here.

A potentially related one: https://bitbucket.org/lyro/evil/issues/594/undo-doesnt-behave-like-vim

@samdesota
Copy link
Author

Looks like it's an issue with Emacs 25. Setting evil-in-single-undo to t fixed it though.

Thanks!

@syl20bnr
Copy link
Owner

syl20bnr commented Jun 3, 2016

So we can consider to add that setting in Spacemacs.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Bug tracker - Emacs 25.1 Evil stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

5 participants