diff options
| author | Miles Bader | 2000-10-21 05:40:19 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-10-21 05:40:19 +0000 |
| commit | d9c30bdf7f12f3201c767e1f6890fb6bf1c480e6 (patch) | |
| tree | 70feaf02bd6b5cce1fc2607c93d5ed5b4a9d9478 /lisp | |
| parent | 65e742bdea8d2f54ee7bdf49922912302d3fb5ef (diff) | |
| download | emacs-d9c30bdf7f12f3201c767e1f6890fb6bf1c480e6.tar.gz emacs-d9c30bdf7f12f3201c767e1f6890fb6bf1c480e6.zip | |
(resize-temp-buffer-window): Use `fit-window-to-buffer'.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/help.el | 12 |
2 files changed, 9 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 619bffa8db0..42eebf899ff 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2000-10-21 Miles Bader <miles@gnu.org> | 1 | 2000-10-21 Miles Bader <miles@gnu.org> |
| 2 | 2 | ||
| 3 | * window.el (fit-window-to-buffer): New function. | ||
| 4 | (shrink-window-if-larger-than-buffer): Use it. | ||
| 5 | * help.el (resize-temp-buffer-window): Use `fit-window-to-buffer'. | ||
| 6 | |||
| 3 | * international/quail.el (quail-show-guidance-buf): Make sure | 7 | * international/quail.el (quail-show-guidance-buf): Make sure |
| 4 | guidance window really has enough room. | 8 | guidance window really has enough room. |
| 5 | (quail-update-guidance): If quail-guidance-win is already shown, | 9 | (quail-update-guidance): If quail-guidance-win is already shown, |
diff --git a/lisp/help.el b/lisp/help.el index adbe12e6ae9..aa3e7c42e32 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -1463,13 +1463,11 @@ out of view." | |||
| 1463 | (unless (or (one-window-p 'nomini) | 1463 | (unless (or (one-window-p 'nomini) |
| 1464 | (not (pos-visible-in-window-p (point-min))) | 1464 | (not (pos-visible-in-window-p (point-min))) |
| 1465 | (/= (frame-width) (window-width))) | 1465 | (/= (frame-width) (window-width))) |
| 1466 | (let* ((max-height (if (functionp temp-buffer-max-height) | 1466 | (fit-window-to-buffer |
| 1467 | (funcall temp-buffer-max-height (current-buffer)) | 1467 | (selected-window) |
| 1468 | temp-buffer-max-height)) | 1468 | (if (functionp temp-buffer-max-height) |
| 1469 | (min-height (1- window-min-height)) | 1469 | (funcall temp-buffer-max-height (current-buffer)) |
| 1470 | (text-height (count-screen-lines)) | 1470 | temp-buffer-max-height)))) |
| 1471 | (new-height (max (min text-height max-height) min-height))) | ||
| 1472 | (set-window-text-height nil new-height)))) | ||
| 1473 | 1471 | ||
| 1474 | ;; `help-manyarg-func-alist' is defined primitively (in doc.c). | 1472 | ;; `help-manyarg-func-alist' is defined primitively (in doc.c). |
| 1475 | ;; New primitives with `MANY' or `UNEVALLED' arglists should be added | 1473 | ;; New primitives with `MANY' or `UNEVALLED' arglists should be added |