sublimity icon indicating copy to clipboard operation
sublimity copied to clipboard

Cannot disable `sublimity-auto-hscroll-mode`

Open paldepind opened this issue 8 years ago • 8 comments

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.

paldepind avatar Apr 04 '16 19:04 paldepind

how about setting auto-hscroll-mode ?

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

zk-phi avatar Apr 05 '16 13:04 zk-phi

It has no effect either :cry:

paldepind avatar Apr 08 '16 12:04 paldepind

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

zk-phi avatar Apr 08 '16 14:04 zk-phi

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))

paldepind avatar Apr 08 '16 14:04 paldepind

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

zk-phi avatar Apr 11 '16 01:04 zk-phi

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?

paldepind avatar Apr 11 '16 06:04 paldepind

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.

zk-phi avatar Apr 11 '16 06:04 zk-phi

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.

paldepind avatar Apr 11 '16 06:04 paldepind