Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d9c30bdf
Commit
d9c30bdf
authored
Oct 21, 2000
by
Miles Bader
Browse files
(resize-temp-buffer-window): Use `fit-window-to-buffer'.
parent
65e742bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/help.el
lisp/help.el
+5
-7
No files found.
lisp/ChangeLog
View file @
d9c30bdf
2000-10-21 Miles Bader <miles@gnu.org>
* window.el (fit-window-to-buffer): New function.
(shrink-window-if-larger-than-buffer): Use it.
* help.el (resize-temp-buffer-window): Use `fit-window-to-buffer'.
* international/quail.el (quail-show-guidance-buf): Make sure
guidance window really has enough room.
(quail-update-guidance): If quail-guidance-win is already shown,
...
...
lisp/help.el
View file @
d9c30bdf
...
...
@@ -1463,13 +1463,11 @@ out of view."
(
unless
(
or
(
one-window-p
'nomini
)
(
not
(
pos-visible-in-window-p
(
point-min
)))
(
/=
(
frame-width
)
(
window-width
)))
(
let*
((
max-height
(
if
(
functionp
temp-buffer-max-height
)
(
funcall
temp-buffer-max-height
(
current-buffer
))
temp-buffer-max-height
))
(
min-height
(
1-
window-min-height
))
(
text-height
(
count-screen-lines
))
(
new-height
(
max
(
min
text-height
max-height
)
min-height
)))
(
set-window-text-height
nil
new-height
))))
(
fit-window-to-buffer
(
selected-window
)
(
if
(
functionp
temp-buffer-max-height
)
(
funcall
temp-buffer-max-height
(
current-buffer
))
temp-buffer-max-height
))))
;; `help-manyarg-func-alist' is defined primitively (in doc.c).
;; New primitives with `MANY' or `UNEVALLED' arglists should be added
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment