Use window-total-width' instead of window-width'.#119
Use window-total-width' instead of window-width'.#119joostkremers wants to merge 1 commit intoemacsorphanage:masterfrom joostkremers:master
window-total-width' instead of window-width'.#119Conversation
|
Looks good, but after applying this patch, |
|
The test that fails contains a call to There are two more instances of I could create a patch if you like. |
|
I have experienced the following error. This means that the window configuration has been changed little a bit after calling popwin. I didn't find yet how to fix this problem. |
|
Mmm, I get neither of those errors. I’m running Emacs 24.4.1, perhaps that is of relevance. Only one test failed for me: It should be noted that |
The function
window-widthreturns the width of the text area, which leads to wrong results with windows that have (wide) margins:The window to the left is originally a frame-wide window with large margins. The window to the right is created with popwin (used in the
guide-keypackage). It's obviously far too wide. The problem can be solved by usingwindow-total-width, which takes the window margins into account: