Open tarsius opened 2 weeks ago
This is much improved as it actually sizes properly. One thing I noticed is that the bottom has an extra gray border that's visible. I'm not sure if it's intentional or not or maybe something in my config. It looks like the color of my mode line, so maybe it's that?
That line (or rather its color) serves a purpose, but it's not essential (most users don't know about it and honestly I don't pay attention to it either).
Customize transient-mode-line-format
to hide it, change its thickness, or display a mode-line instead.
Thank you.
Kindly ping. Can it be merged?
This is much improved as it actually sizes properly. One thing I noticed is that the bottom has an extra gray border that's visible. I'm not sure if it's intentional or not or maybe something in my config. It looks like the color of my mode line, so maybe it's that?
There is a trick to remove the gray line: adding this to the parameter of posframe-show
.
:height (with-current-buffer buffer (1- (count-screen-lines (point-min) (point-max))))
@tarsius I checked the source code, and there is no transient--fit-window-to-buffer
in the original file. Can you please double check?
@seagle0128
There is a trick to remove the gray line...
As dgutov mentioned, the most direct way to remove it is (setq transient-mode-line-format nil)
.
Regarding transient--fit-window-to-buffer
, please make sure you are using the version from GitHub, rather than the one bundled with Emacs.
@aaronjensen Thank you for letting me know.
This fixes the regression described in #5. Additionally fixes a second issue, which (I assume) has always existed. Please see 4db747a8d1a332c3b634cf4c302c14c9c96bf01f for details.
6 also tries to fix the regression, but it just hacks around it without understanding the cause.
I've also included some cleanup and minor improvements. Feel free to drop the parts you don't like.