`shrink-window-if-larger-than-buffer'.
2000-02-21 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
+ * pgg.el (pgg-temp-buffer-show-function): Use
+ `shrink-window-if-larger-than-buffer'.
+
* pgg-gpg.el (pgg-gpg-process-region): Fix cleanup form.
* pgg-pgp.el (pgg-pgp-process-region): Ditto.
,@body)))
(defun pgg-temp-buffer-show-function (buffer)
- (let ((window (split-window-vertically
- (- (window-height)
- (/ (window-height) 5)))))
- (set-window-buffer window buffer)))
+ (let ((window (split-window-vertically)))
+ (set-window-buffer window buffer)
+ (shrink-window-if-larger-than-buffer window)))
(defun pgg-display-output-buffer (start end status)
(if status