inf-clojure icon indicating copy to clipboard operation
inf-clojure copied to clipboard

REPL buffer scrolls uncontrollably

Open arichiardi opened this issue 6 years ago • 6 comments

This is quite annoying in my opinion, every time the point is on a symbol (say def in lumo) that does not have arglists and then one that has arglists, you see the REPL buffer scrolling up or down.

I dug into it and it seems that this var in comint sets comint-postoutput-scroll-to-bottom which is responsible for the scrolling.

I could not find a way to customize the behavior, except from removing it from the var completely with:

(seq-filter (lambda (sym) (not (eq 'comint-postoutput-scroll-to-bottom sym))) comint-output-filter-functions)

I know it is extreme but I would like to set this as default. An alternative would be to pass in a custom lambda in comint-output-filter-functions that checks what is the REPL return and decides whether to scroll or not - it seems quite some work for no gain.

Thoughts?

arichiardi avatar Dec 31 '17 05:12 arichiardi

This is quite annoying in my opinion, every time the point is on a symbol (say def in lumo) that does not have arglists and then one that has arglists, you see the REPL buffer scrolling up or down.

Can you share some gif recording of this or something? I'm having a hard time understanding what exactly is happening.

bbatsov avatar Jan 01 '18 17:01 bbatsov

Yep I will, you can try to open an inf-clojure project and move point from def to any other symbol. You will see the REPL buffer scrolling.

arichiardi avatar Jan 01 '18 17:01 arichiardi

I guess what puzzles me is what is this output that's triggering this.

bbatsov avatar Jan 01 '18 18:01 bbatsov

Looks like comint calculates the amount it scrools based on the characters returned in the response, but we hide the returned characters for our actions. So it scrolls but really should not.

arichiardi avatar Jan 01 '18 18:01 arichiardi

What should we do about this? defcustom?

arichiardi avatar Feb 24 '18 01:02 arichiardi

autogenerated with https://github.com/MalloZup/doghub: issue inactive since 450 days. Please update the issue or close it

MalloZup avatar Aug 05 '19 21:08 MalloZup