Subject: Re: bug#19972: 24.4; Font size change doesn't update (window-total-width)

From: martin rudalics <[email-masked]>
Date: Tue, 03 Mar 2015 09:06:09 +0100

>> In that case, I guess if you call (window-total-width 'round), you
 >> will see the correct value even before "C-x 3", right?
 >
 > No, it doesn't. It still returns 240, i.e., the same value returned by
 > (window-total-width).

Observe that

(window-total-width 'round)

should get you

(wrong-type-argument window-valid-p round)

As a rule `window-' prefixed functions require a window as first
argument.

The form to evaluate should be either (window-total-width nil 'ceiling)
or (window-total-width nil 'floor).  Any other value for ROUND behaves
like `window-total-width' called without ROUND argument.

martin