From xemacs-m  Fri Mar  7 13:43:29 1997
Received: from newman (root@newman.aventail.com [38.225.141.10])
	by xemacs.org (8.8.5/8.8.5) with SMTP id NAA21777
	for <xemacs-beta@xemacs.org>; Fri, 7 Mar 1997 13:43:26 -0600 (CST)
Received: from kramer.in.aventail.com.aventail.com (wmperry@kramer [192.168.1.12]) by newman (8.6.12/8.6.9) with SMTP id LAA17814; Fri, 7 Mar 1997 11:36:18 -0800
Date: Fri, 7 Mar 1997 11:36:18 -0800
Message-Id: <199703071936.LAA17814@newman>
From: "William M. Perry" <wmperry@aventail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Damon Lipparelli <lipp@primus.com>
Cc: XEmacs Beta Mailing List <xemacs-beta@xemacs.org>
Subject: Re: filename completion bug (?)
In-Reply-To: <199703071920.LAA16319@roy>
References: <199703071920.LAA16319@roy>
Errors-to: wmperry@aventail.com
Reply-to: wmperry@aventail.com
X-Face: O~Rn;(l][/-o1sALg4A@xpE:9-"'IR[%;,,!m7</SYF`{vYQ(&RI1&EiH[FvT;J}@f!4kfz
 x_!Y#=y{Uuj9GvUi=cPuajQ(Z42R[wE@{G,sn$qGr5g/wnb*"*ktI+,CD}1Z'wxrM2ag-r0p5I6\nA
 [WJopW_J.WY;

Damon Lipparelli writes:
>I think I've discovered a bug with the algorithm to make the
>"*Completions*" window only as large as necessary.
>
>Try this experiment:
>
>1) start XEmacs in the top-level build directory (e.g. ".../xemacs-20.1-b5")
>   with "-q"
>
>2) type "\C-x\C-f" and at the prompt type "vms/[space]"; you should see a
>   "*Completions*" buffer with the window just large enough to hold the
>   contents of the "vms" subdirectory (7 lines or so)
>
>3) now, still at the "Find file: " prompt, type "../[space]"; the
>   "*Completions*" buffer now contains the contents of the top-level dir,
>   but the size of the window hasn't changed (that is, most of the contents
>   of the top-level dir are not visible)
>
>I've been scrounging through the source, looking for something suspicious,
>but I'm getting pretty lost in the completion code.

  this is because of the new shrink-window-if-larger-than-buffer in the
temporary buffer code.  There is no
enlarge-buffer-if-i-bogusly-shrunk-it-earlier

-bill p.

