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

u cannot undo emmet-expand-yas insertion #2351

Closed
louy2 opened this issue Jul 18, 2015 · 8 comments
Closed

u cannot undo emmet-expand-yas insertion #2351

louy2 opened this issue Jul 18, 2015 · 8 comments
Labels
Reported upstream stale marked as a stale issue/pr (usually by a bot) Web

Comments

@louy2
Copy link
Contributor

louy2 commented Jul 18, 2015

Reproduce steps:

  1. web-mode
  2. Type html:5
  3. Hit TAB, confirm the snippet is expanded
  4. Hit ESC to return to normal state
  5. Hit u

Expected:
Snippet is deleted.

Actual:
Snippet stays.

Messages:

[yas] Snippet 2 exited.
Undo branch point!

undo-tree-visualize shows that two branches seemingly identical are created right after the snippet is expanded.

@sexptherapy
Copy link

I can confirm this.

@Kethku
Copy link
Contributor

Kethku commented Jul 20, 2015

This is probably an issue with emmet-mode not spacemacs, and so an issue could be created here: https://github.com/smihica/emmet-mode

@StreakyCobra
Copy link
Contributor

I can't reproduce it any longer, not on develop nor on master. Is someone still encountering this issue?

@louy2
Copy link
Contributor Author

louy2 commented Nov 6, 2015

Still having this problem. Let me update everything and see.

@StreakyCobra
Copy link
Contributor

Ok now I can reproduce it, but I can't tell what was the difference since last time. Doing SPC a u to open the undo tree, it seems expending is doing an additional step (indenting the region) just after. When pressing u, this indenting is undone, but redone just after, making it impossible to go further back in history.

@louy2
Copy link
Contributor Author

louy2 commented Nov 16, 2015

Oh, that's why. I remembered that single-line expansions are free of this problem. Why is the indenting redone just after?

@StreakyCobra
Copy link
Contributor

No idea 😛

@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
Reported upstream stale marked as a stale issue/pr (usually by a bot) Web
Projects
None yet
Development

No branches or pull requests

4 participants