Skip to content

Conversation

@rfkm
Copy link
Contributor

@rfkm rfkm commented Jan 20, 2016

I noticed cider-repl--show-maximum-output doesn't work with non-selected frames.
(Sometimes, I move a repl buffer to sub-monitor, creating a new frame.)

This PR should make it work with non-selected frames.

@rfkm rfkm force-pushed the fix-sticky-prompt branch from ae2dad3 to 8435bb5 Compare January 20, 2016 15:46
cider-repl.el Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason not to use t instead of visible?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand, get-buffer-window ignores hidden frames if visible is passed.
I feel like the auto scroll feature is meaningless if the repl buffer is invisible.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

invisible == minimized?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think so.

At least, minimized ⊆ invisible is definitely true.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should make this a defcustom if some people would like to get auto-scrolling for invisible frames as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or just pass t?
I feel like #1508 is fine grained enough as customizability.
In any case, I'm ready to update this PR. ;-)
What shall I do?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, let's just go with t.

@rfkm rfkm force-pushed the fix-sticky-prompt branch from 8435bb5 to bb39da9 Compare January 21, 2016 06:11
@rfkm
Copy link
Contributor Author

rfkm commented Jan 21, 2016

Done :)

bbatsov added a commit that referenced this pull request Jan 21, 2016
Make auto scroll work with repl buffer in non-selected frames
@bbatsov bbatsov merged commit 621cc04 into clojure-emacs:master Jan 21, 2016
@bbatsov
Copy link
Member

bbatsov commented Jan 21, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants