diff lisp/prim/lisp.el @ 76:c0c698873ce1 r20-0b33

Import from CVS: tag r20-0b33
author cvs
date Mon, 13 Aug 2007 09:05:10 +0200
parents 54cc21c15cbb
children 0d2f883870bc
line wrap: on
line diff
--- a/lisp/prim/lisp.el	Mon Aug 13 09:04:39 2007 +0200
+++ b/lisp/prim/lisp.el	Mon Aug 13 09:05:10 2007 +0200
@@ -326,7 +326,9 @@
 		     (setq list (cdr list)))
 		   (setq list (nreverse new))))
 	     (with-output-to-temp-buffer "*Completions*"
-	       (display-completion-list list)))
+	       (display-completion-list list))
+	     (shrink-window-if-larger-than-buffer
+	      (get-buffer-window "*Completions*")))
 	   (message "Making completion list...%s" "done")))))
 
 ;;; lisp.el ends here