GNU bug report logs -
#19194
24.4.50; `window-body-width' is not dynamic relative to font size changes
Previous Next
Reported by: Joe Corneli <holtzermann17 <at> gmail.com>
Date: Wed, 26 Nov 2014 13:48:01 UTC
Severity: normal
Tags: notabug
Merged with 20022
Found in versions 24.4.50, 24.4.90
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Joe Corneli <holtzermann17 <at> gmail.com> writes:
> Adjusting the font size, I would expect that the window's "body width"
> would change -- more characters can be fit into the same amount of
> screen space. Current behaviour does not match this expectation.
>
> M-: (window-body-width) RET [Note result.]
> C-x C--
> M-: (window-body-width) RET [Result is the same.]
>
> The function is described:
>
> "This function returns the width, in columns, of the body of window
> window."
>
> If for some reason the "nominal" number of columns needs to calculated
> with reference to the default font, then there should be another
> function to return the "actual" number of columns.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
Skimming this thread, I think the conclusion here is that these
functions work as designed. `C-x C--' reduces the size of the font in
the current buffer, but the "window body width" concept remains the
same. (I.e., if you create a new buffer and display it, that's what
`window-body-width' is telling you the number of columns for.)
So I don't think there's anything to do here, and I'm closing this bug
report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 105 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.