diff lisp/prim/lisp.el @ 10:49a24b4fd526 r19-15b6

Import from CVS: tag r19-15b6
author cvs
date Mon, 13 Aug 2007 08:47:52 +0200
parents 27bc7f280385
children 8fc7fe29b841
line wrap: on
line diff
--- a/lisp/prim/lisp.el	Mon Aug 13 08:47:36 2007 +0200
+++ b/lisp/prim/lisp.el	Mon Aug 13 08:47:52 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