* pgg.el (pgg-temp-buffer-show-function): Use emiko-1_13_11
authorueno <ueno>
Mon, 21 Feb 2000 15:27:43 +0000 (15:27 +0000)
committerueno <ueno>
Mon, 21 Feb 2000 15:27:43 +0000 (15:27 +0000)
`shrink-window-if-larger-than-buffer'.

ChangeLog
pgg.el

index 0b58de0..5992550 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 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.
diff --git a/pgg.el b/pgg.el
index c254400..6975eef 100644 (file)
--- a/pgg.el
+++ b/pgg.el
        ,@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