* bug#13073: 24.0.91; (window-width) doesn't take into account text-scale-adjust 'ed buffers
@ 2012-12-04 1:32 Raimon Grau
2012-12-04 2:21 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Raimon Grau @ 2012-12-04 1:32 UTC (permalink / raw)
To: 13073
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#13073: 24.0.91; (window-width) doesn't take into account text-scale-adjust 'ed buffers
2012-12-04 1:32 bug#13073: 24.0.91; (window-width) doesn't take into account text-scale-adjust 'ed buffers Raimon Grau
@ 2012-12-04 2:21 ` Glenn Morris
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2012-12-04 2:21 UTC (permalink / raw)
To: Raimon Grau; +Cc: 13073
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-04 2:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-04 1:32 bug#13073: 24.0.91; (window-width) doesn't take into account text-scale-adjust 'ed buffers Raimon Grau
2012-12-04 2:21 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).