<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Recently, I've developed some eye issues (surgical consult this
month about that), which means I've been adjusting my Aquamacs
font sizes a great deal more than I used to (along with every
other application, it seems).</p>
<p>However, my clever idea to set up a key sequence to use <font
face="monospace">set-frame-width</font> to set a window's width
to 80 characters has revealed that I don't really know what units
this function is using.</p>
<p>For example, I have a frame here that's 60 columns wide and 19
lines high (above the info and minibuffer rows), and if I run</p>
<p>(set-frame-width (selected-frame) 80)</p>
<p>in it, the frame does get wider, but only to 70 columns.</p>
<p>If I use ⌘= to increase the size of the font, the width is now 56
columns, but trying to execute the function again doesn't change
the window width. Nor does it seem to matter if I change the font
for the mode; 80-whatever-units is independent of the font size.</p>
<p>If I use a value of 91, I <i>can</i> get 79 columns (which I'm
used to), but if I use ⌘= again, then I'm at 63 columns, and <font
face="monospace">set-frame-width</font> has no effect.</p>
<p>The help for the function clearly says “columns,” but that
doesn't appear to be true.</p>
<p>Any idea what I'm doing wrong here?</p>
<p>—Ken</p>
<p><br>
</p>
</body>
</html>