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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13073 in the body.
You can then email your comments to 13073 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13073; Package emacs. (Tue, 04 Dec 2012 02:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raimon Grau <raimonster <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 04 Dec 2012 02:09:03 GMT) Full text and rfc822 format available.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13073; Package emacs. (Tue, 04 Dec 2012 02:24:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Raimon Grau <raimonster <at> gmail.com>
Cc: 13073 <at> debbugs.gnu.org
Subject: Re: bug#13073: 24.0.91;
	(window-width) doesn't take into account text-scale-adjust 'ed buffers
Date: Mon, 03 Dec 2012 21:21:30 -0500
Raimon Grau wrote:

> 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.

Please see

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9949




Forcibly Merged 9949 13073. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 05 Dec 2012 21:09:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 03 Jan 2013 12:24:04 GMT) Full text and rfc822 format available.

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

Previous Next


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