Function: set-frame-height

set-frame-height is an interactive function defined in frame.c.

Signature

(set-frame-height FRAME HEIGHT &optional PRETEND PIXELWISE)

Documentation

Set text height of frame FRAME to HEIGHT lines.

Optional third arg PRETEND non-nil means that redisplay should use HEIGHT lines but that the idea of the actual height of the frame should not be changed.

Optional fourth argument PIXELWISE non-nil means that FRAME should be HEIGHT pixels high. Note: When frame-resize-pixelwise is nil, some window managers may refuse to honor a HEIGHT that is not an integer multiple of the default frame font height.

When called interactively, HEIGHT is the numeric prefix and the currently selected frame will be set to this height.

If FRAME is nil, it defaults to the selected frame.

View in manual

Probably introduced at or before Emacs version 24.1.

Key Bindings

Source Code

// Defined in /usr/src/emacs/src/frame.c
{
  struct frame *f = decode_live_frame (frame);
  int text_height
    = check_frame_pixels (height, pixelwise, FRAME_LINE_HEIGHT (f));

  /* With INHIBIT 1 pass correct text width to adjust_frame_size.  */
  adjust_frame_size
    (f, FRAME_TEXT_WIDTH (f), text_height, 1, !NILP (pretend), Qheight);

  return Qnil;
}