Bug#953033: bug#39901: Emacs needs to update window-width when the user updates the text size

2020-08-05 Thread Lars Ingebrigtsen
Eli Zaretskii writes: > I do: there's no bug here -- window-width is documented to return a > value in terms of the frame's canonical character width (i.e. it uses > the dimensions of the frame's default font). And that doesn't change > when you change the font only for a single buffer. > >

Bug#953033: bug#39901: Emacs needs to update window-width when the user updates the text size

2020-08-05 Thread Eli Zaretskii
> From: Lars Ingebrigtsen > Date: Wed, 05 Aug 2020 14:04:59 +0200 > Cc: 953...@bugs.debian.org, Katsumi Yamaoka , > 39...@debbugs.gnu.org > > 積丹尼 Dan Jacobson writes: > > > Emacs needs to update window-width when the user updates the text size. > > I think that makes sense. > > Anybody got

Bug#953033: bug#39901: Emacs needs to update window-width when the user updates the text size

2020-08-05 Thread Lars Ingebrigtsen
積丹尼 Dan Jacobson writes: > Emacs needs to update window-width when the user updates the text size. I think that makes sense. Anybody got an opinion here? I'm not sure how this would be implemented, though. Where's the code that computes the pixel width upon startup? I guess that code would

Bug#953033: bug#39901: Emacs needs to update window-width when the user updates the text size

2020-03-04 Thread Katsumi Yamaoka
Thanks Drew. Jidanni, try the following two advices if interest. Probably this would be what you want `text-scale-adjust' to do. The first one tweaks the `window-width' function so to return a value based on the text scaling, and the second one makes the `text-scale-adjust' function redisplay an

Bug#953033: bug#39901: Emacs needs to update window-width when the user updates the text size

2020-03-04 Thread Drew Adams
> Emacs needs to update window-width when > the user updates the text size. Apologies for not following this thread, and if this reply is off-topic. I stumbled on this message by chance. FWIW, letting users automatically resize the window to accommodate a change in text scale is the purpose of