comparison lisp/window.el @ 90428:a8190f7e546e

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 285-296) - Update from CVS - Merge from gnus--rel--5.10 - Update from CVS: admin/FOR-RELEASE: Update refcard section. * gnus--rel--5.10 (patch 102-104) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-64
author Miles Bader <miles@gnu.org>
date Wed, 07 Jun 2006 18:05:10 +0000
parents c5406394f567 073af3c41750
children 138ce2701550
comparison
equal deleted inserted replaced
90427:ddb25860d044 90428:a8190f7e546e
595 (max beg end))) 595 (max beg end)))
596 (goto-char (point-min)) 596 (goto-char (point-min))
597 (1+ (vertical-motion (buffer-size) window)))))) 597 (1+ (vertical-motion (buffer-size) window))))))
598 598
599 (defun fit-window-to-buffer (&optional window max-height min-height) 599 (defun fit-window-to-buffer (&optional window max-height min-height)
600 "Make WINDOW the right size to display its contents exactly. 600 "Make WINDOW the right height to display its contents exactly.
601 If WINDOW is omitted or nil, it defaults to the selected window. 601 If WINDOW is omitted or nil, it defaults to the selected window.
602 If the optional argument MAX-HEIGHT is supplied, it is the maximum height 602 If the optional argument MAX-HEIGHT is supplied, it is the maximum height
603 the window is allowed to be, defaulting to the frame height. 603 the window is allowed to be, defaulting to the frame height.
604 If the optional argument MIN-HEIGHT is supplied, it is the minimum 604 If the optional argument MIN-HEIGHT is supplied, it is the minimum
605 height the window is allowed to be, defaulting to `window-min-height'. 605 height the window is allowed to be, defaulting to `window-min-height'.