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

Issue in go mode. Mark is getting set in normal mode for no apparent reason #5604

Closed
jrmiller82 opened this issue Mar 26, 2016 · 5 comments
Closed
Labels
- Bug tracker - Go stale marked as a stale issue/pr (usually by a bot)

Comments

@jrmiller82
Copy link

Description

I'm finding that 'mark' is getting set in go mode and that ESC is not cancelling (sorry for speaking in Vim terms) insert mode to go back to normal mode. Instead, ESC is bringing up a helm menu.

If I C-[ or 'jk' out of insert mode, and then into normal mode, somehow mark is getting set, and when I start to move using any keyboard navigation, such as 'j' or 'k' to move up or down a line, it's like I'm highlighting things as if I had hit Shift-V or C-v.

I never noticed it before. My guess is that something's going on with gocode or the syntax checker that is doing something wrong, because it seems to happen especially bad when the cursor was resting on a function or variable definition.

Reproduction guide

  • Start Emacs
  • see my description, it's not something I can always reproduce. I'm sorry that I can't give you a clear reproduction step.

Observed behaviour:
See description.

Expected behaviour:
Esc exits to normal mode with one press.

AND

Mark not set when in normal mode unless explicitly asked for.

System Info

  • OS: darwin
  • Emacs: 24.5.1
  • Spacemacs: 0.105.14
  • Spacemacs branch: master (rev. a298a5a)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(auto-completion emacs-lisp git markdown org go c-c   markdown latex python syntax-checking themes-megapack version-control)

Backtrace

BACKTRACE IF RELEVANT
@jrmiller82
Copy link
Author

Bueller? Anyone? Bueller? :)

@StreakyCobra
Copy link
Contributor

CC @bogdanteleaga

@bogdanteleaga
Copy link
Contributor

I can confirm the mark getting set in an apparently "random" fashion, but it also seems to happen in python mode (haven't tried other modes too). What I'm doing is just moving around and inserting text then going to normal mode and undoing and that's pretty much it.

I cannot reproduce the ESC(or C-[) not going back to normal mode straight away.

@StreakyCobra
Copy link
Contributor

There are 3 different issues there if I understand correctly:

  1. Exiting insert state set the mark.
  2. After exiting the insert state, moving up and down highlight text like when selecting.
  3. ESC is not exiting the insert state.

I can't reproduce 2 and 3 in python mode (not tested with go). Concerning 1, Isn't this made in purpose to allow navigating to old modification place with C-i?

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

No branches or pull requests

3 participants