On 2005-02-27 17:15 +0100, Daniel Burrows wrote: > Package: emacs21 > Version: 21.3+1-9 > Severity: normal > > As you may or may not be aware, "ion" is a window manager in which, rather > than drag windows around the screen, you tile the screen into "frames" and > attach windows to each frame -- not unlike an Emacs window, in fact. If > emacs is running under ion and the font size has been decreased, it contracts > its window to only fill part of the frame when it starts up. I briefly see > it filling the whole frame, and then it "resizes" itself to fill only part of > the frame. If I resize the frame in any way, emacs notices and fills it all > again. > > In a floating workspace (like a 'normal' wm) I briefly see a large version > of the window, and then it shrinks when the font size changes. My guess is > that when run on a tiled workspace, emacs doesn't notice that it can't > actually change its window size, so instead of expanding to the frame size it > shrinks to keep the same number of columns.
Yes. There are basically two possibilities for Emacs to react to font size changes: a) Keep the window¹ size intact and adjust the number of text lines and columns, or b) the other way around. Emacs always chooses the latter, unless the window is maximized. For a text editor that measures size in characters rather than pixels, this is a sensible approach, but not compatible with tiling window managers. The commands to change the window size (set-frame-height and set-frame-width) also take lines and columns as parameters. > I haven't tested this, but I presume that expanding the font size might > result in a window that's *larger* than its frame, which is even worse. This is a problem even in non-tiling window managers, since the Emacs window can easily become larger than the screen if you choose a big font. Sven ¹ I say "window" although the Emacs terminology for an X window is "frame", but I want to avoid confusion with the window manager's frame. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org