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

Cannot disable sublimity-auto-hscroll-mode #33

Open
paldepind opened this issue Apr 4, 2016 · 8 comments
Open

Cannot disable sublimity-auto-hscroll-mode #33

paldepind opened this issue Apr 4, 2016 · 8 comments
Assignees

Comments

@paldepind
Copy link

When sublimity-auto-hscroll-mode is active I cannot scroll the buffer with the mouse. Thus I'd like to disable it. I've tried setting sublimity-auto-hscroll-mode but it seems to have no effect.

@zk-phi
Copy link
Owner

zk-phi commented Apr 5, 2016

how about setting auto-hscroll-mode ?

(setq sublimity-auto-hscroll-mode nil
      auto-hscroll-mode t)

@paldepind
Copy link
Author

It has no effect either 😢

@zk-phi
Copy link
Owner

zk-phi commented Apr 8, 2016

hmm... can you tell me which command is invoked on hscroll? (<f1> k then scroll right or left)

@paldepind
Copy link
Author

Oh. I think I might have misunderstood what hscroll-mode is.

I use sublimity for it's great smooth scrolling. But when the point is at the end of the buffer it is vertically centred in the frame and I cannot scroll with the mousewheel. That is the behaviour I am trying to disable.

My current configuration looks like this.

(use-package sublimity
  :init
  (require 'sublimity-scroll)
  :config
  (sublimity-mode 1))

@zk-phi
Copy link
Owner

zk-phi commented Apr 11, 2016

I got it.
sublimity internally uses recenter to determine the amount of scroll without redisplaying, thus it may be technically difficult...

@paldepind
Copy link
Author

Oh. That is unfortunate. Especially with something like IRC in Emacs it causes quite a bit of trouble.

Why does it only happen when point is a the very end of the buffer?

@zk-phi
Copy link
Owner

zk-phi commented Apr 11, 2016

recenter is always called whenever the cursor goes outside the visible portion of the window, and the cursor is vertically centered. so it's not special for the end of the buffer.
how does it cause a trouble ? It's possible to disable recenter when the cursor is at the end of the buffer.

@paldepind
Copy link
Author

There's definitely something special happening at the end of the buffer. When point is at the end of the buffer I can't scroll and C-l recenter-top-bottom doesn't work either. If point is just one character away from the end of the buffer then everything is fine.

It causes trouble in Circe because it moves point to the bottom of the screen but Sublimity moves point to the middle of the screen. So when using it there is a lot of jumping around.

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

No branches or pull requests

2 participants