syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.64k stars 4.89k forks source link

Cursor jumps between windows when switching windows #6475

Closed landaire closed 4 years ago

landaire commented 8 years ago

Description

When I switch windows the cursor will jump between all of the windows very quickly for a couple of seconds then stop on the correct window.

Reproduction guide

Observed behaviour: The cursor jumps between all windows very quickly for a few seconds before stopping on the correct window

Expected behaviour: Cursor should move to the specified window without the jumping

System Info

((auto-completion :variables auto-completion-enable-help-tooltip t auto-completion-enable-sort-by-usage t)
 better-defaults emacs-lisp git org
 (shell :variables shell-default-height 30 shell-default-position 'bottom)
 syntax-checking version-control semantic c-c   d go rust swift java yaml latex markdown gtags osx spacemacs-layouts themes-megapack
 (colors :variables colors-enable-rainbow-identifiers nil))
landaire commented 8 years ago

NJBS mentioned on gitter that it could have been a bug with Helm and that updating packages should fix it. Helm didn't update when I ran update-packages, but it's no longer occurring after a restart so I'll mark this as closed.

landaire commented 8 years ago

Reopening since it actually started occurring again.

edit: It only happens when I enable golden-ratio (SPC t g).

edit 2 (ha): The golden-ratio thing is actually true, but it still occurs when I begin to enter a command in evil-mode (so when I type a colon) as well.

syl20bnr commented 8 years ago

I had a similar issue and I use golden-ratio too, it does not happen all the time. I'll investigate when I encounter it again.

landaire commented 8 years ago

Here is a video demonstrating the issue: https://gfycat.com/ChillyAshamedIcelandichorse

I think the below conditions need to be met in order to trigger it though:

None of this can be reproduced with a neotree window not open.

YeFFreY commented 8 years ago

I had a similar issue (even worse, each time I was pressing the SPC key I had to wait 3 to 5 seconds until the cursors stops jumping between every windows). (Im on OSX) Then I installed this emacs : emacs-mac (https://github.com/railwaycat/homebrew-emacsmacport) and the problems stopped.

landaire commented 8 years ago

@YeFFreY if you still have regular GNU Emacs installed could you see if you can reproduce it with neotree open? emacs-mac is not a good solution since while it adds some good features it also introduces some other issues that aren't present in standard.

sbdchd commented 8 years ago

@landaire Does the issue still occur if you set dotspacemacs-colorize-cursor-according-to-state nil in your .spacemacs?

landaire commented 7 years ago

@sbdchd Hey, sorry I never saw your response here. I think that did the trick! I'm not seeing that behavior anymore with dotspacemacs-colorize-cursor-according-to-state nil.

timjstewart commented 6 years ago

I'm on the develop branch and I just pulled today. I'm running the newly released Emacs 26.1 on Mac OS X (10.10)

I created 5 vertical splits and then pressed SPC b h and saw the flickering. This is not the only way to reproduce the error for me. Any tips on debugging?

I have set dotspacemacs-colorize-cursor-according-to-state to nil and restarted Emacs.

emacs-flicker

syl20bnr commented 6 years ago

Does it happen everytime or just with the home buffer, we have some computation that is trigerred to center the home buffer contents which may be the cause of this glitch.

Can you try your repro with dotspacemacs-startup-buffer-responsive set to nil ?

Tim Stewart notifications@github.com writes:

I created 5 vertical splits and then pressed SPC b h and saw the flickering. This is not the only way to reproduce the error for me. Any tips on debugging?

emacs-flicker

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/syl20bnr/spacemacs/issues/6475#issuecomment-393344235

timjstewart commented 6 years ago

Sorry for just getting to this @syl20bnr. I can no longer reproduce this behavior using the steps I provided.

My dotspacemacs-startup-buffer-responsive variable is set to t.

Thanks!

timjstewart commented 6 years ago

Today I did a pull from develop and the jumping issue is back.

UPDATE: But then I did a package update and it works again.

github-actions[bot] commented 4 years ago

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!