GNU bug report logs - #13073
24.0.91; (window-width) doesn't take into account text-scale-adjust 'ed buffers

Previous Next

Package: emacs;

Reported by: Raimon Grau <raimonster <at> gmail.com>

Date: Tue, 4 Dec 2012 02:09:02 UTC

Severity: normal

Merged with 9949

Found in version 24.0.91

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Raimon Grau <raimonster <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.91;
	(window-width) doesn't take into account text-scale-adjust 'ed buffers
Date: Tue, 04 Dec 2012 02:32:22 +0100
I'm trying to get the maximum number of chars that a line would accept
without overflowing of wrapping

(window-width) gives the number of columns of a given window, but if I
increase the size of the font, window-width doesn't change the
value returned.

steps to reproduce
$ emacs -Q
m-x (window-width) => 80
c-x c-+
m-x (window-width) => 80

visual-line-mode *does* take text scale adjustments into account, so the
knowledge about how to cope with text scale is in emacs somewhere at
least.

Regards,

Raimon Grau




This bug report was last modified 12 years and 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.