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

Cursor automatically gets repositioned in Buffer Menu Mode #2667

Closed
aviralg opened this issue Aug 15, 2015 · 8 comments
Closed

Cursor automatically gets repositioned in Buffer Menu Mode #2667

aviralg opened this issue Aug 15, 2015 · 8 comments
Labels

Comments

@aviralg
Copy link

aviralg commented Aug 15, 2015

I typed :ls to get a list of open buffers. In that list (Buffer Menu Mode), I navigate to a particular line. But in a couple of seconds the cursor is repositioned to the beginning of the list.

@syl20bnr
Copy link
Owner

This is a known bug. I don't think there was a fix for it.
Did you tried the ibuffer layer which you can activate with SPC b B ? Do you still have the issue with this ?
What's you version of emacs?

@aviralg
Copy link
Author

aviralg commented Aug 16, 2015

OS - Lubuntu 15.04
Emacs - 24.5.1 (Compiled Manually)
WM - XMonad

I was not aware of SPC b B. I tried :ls as I was going through a vim tutorial on handling buffers.
SPC b B seems to work great. Thanks.

@TheBB
Copy link
Collaborator

TheBB commented Aug 30, 2015

This is caused by global-auto-revert-mode. There's a timer running every five seconds.

We could cancel the timer in Buffer-menu-mode-hook (yes, believe it or not, a capital letter), but I don't know of a reliable way to start it again.

@TheBB
Copy link
Collaborator

TheBB commented Aug 30, 2015

Actually, this can be solved by customizing the revert-buffer-function of that buffer.

(add-hook 'Buffer-menu-mode-hook 
          (lambda ()
            (setq-local revert-buffer-function
                        (lambda (&rest args)))))

It could aso be solved by setting auto-revert-non-file-buffers to nil but judging by the comments that's t for dired.

Feels hacky though.

@StreakyCobra
Copy link
Contributor

:ls is now showing helm-buffers, so the problem of arriving on buffer-menu by following some tutorial is solved. I'm marking this issue as fixed in develop. If someone really want to use buffer-menu, feel free to open a new issue and link this one in it, it will be discussed for integration there.

@cubranic
Copy link

@StreakyCobra: :ls only shows helm-buffers if one is using the helm layer. If at install time the user chooses ivy as the completion framework, :ls will open the list in the buffer menu mode.

@StreakyCobra
Copy link
Contributor

@cubranic Sorry I'm not any longer enough into Spacemacs development to be useful here. This is also an old issue, you'll probably get better in visibility by opening a new one.

@cubranic
Copy link

cubranic commented Mar 1, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants