Evaluating (window-text-width) for a fullscreen window returns 238, which indicates that 238 columns of characters should be able to be displayed on one line. However, using count-words-region, I can see that I can actually only fit 234 characters on a line without it causing wrapping (I'm using global-visual-line-mode, although this problem persists when it's off). This causes problems with any functionality that tries to right align content - for instance, org-agenda will try to align content so that the last character in a heading's tags is on column 238 (i.e. on the right side of the screen), but since column 238 is actually beyond the right side of the screen, the tags end up on the following visual line. Instead of

* TODO my task a :@home: * TODO my task b :@work: 

I end up with

* TODO my task a :@home: * TODO my task b :@work: 

...which is significantly less information dense and generally uglier. I was content to set org-agenda-tags-column to 0, but I've recently picked up ledger, and this issue has also started messing up the formatting in its reports. This also happens regardless of how I split windows - if I split vertically, window-text-width reports a width of 118, but I can actually only fit 114 columns. Has anyone run into this before, or have tips for where to start looking? This seems like such a finicky, low-level thing I don't have much hope - especially since I haven't futzed around with any obvious culprits like font settings.

submitted by /u/summetria
[link] [comments]