From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.bugs Subject: bug#23092: 25.0.92; Minibuffer completion fails to resize completion window if reused during same command Date: Wed, 23 Mar 2016 13:45:15 -0300 Message-ID: <878u19gn38.fsf@gmail.com> References: <87fuviigpw.fsf@gmail.com> <83k2ku4bb5.fsf@gnu.org> <8737riibq2.fsf@gmail.com> <837fgu49m1.fsf@gnu.org> <56F24F21.4040107@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458751585 28020 80.91.229.3 (23 Mar 2016 16:46:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2016 16:46:25 +0000 (UTC) Cc: 23092@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 23 17:46:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ailvA-0003aa-1r for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Mar 2016 17:46:12 +0100 Original-Received: from localhost ([::1]:44991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ailv9-00036s-8E for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Mar 2016 12:46:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ailv5-00036k-Iu for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2016 12:46:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ailv0-0006by-Fv for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2016 12:46:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ailv0-0006bt-Bg for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2016 12:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ailv0-00040i-3U for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2016 12:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: nljlistbox2@gmail.com (N. Jackson) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Mar 2016 16:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23092 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23092-submit@debbugs.gnu.org id=B23092.145875155115397 (code B ref 23092); Wed, 23 Mar 2016 16:46:02 +0000 Original-Received: (at 23092) by debbugs.gnu.org; 23 Mar 2016 16:45:51 +0000 Original-Received: from localhost ([127.0.0.1]:34632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ailuo-00040H-Sq for submit@debbugs.gnu.org; Wed, 23 Mar 2016 12:45:51 -0400 Original-Received: from mail-io0-f170.google.com ([209.85.223.170]:36485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ailun-000405-D6 for 23092@debbugs.gnu.org; Wed, 23 Mar 2016 12:45:49 -0400 Original-Received: by mail-io0-f170.google.com with SMTP id 124so49615189iov.3 for <23092@debbugs.gnu.org>; Wed, 23 Mar 2016 09:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=CFeUn4qEQAh0LobUYcoODEJFz5S8fww9LXhtTrlr6k0=; b=otNUOdNW9f2LQZCFVSM1JGO9qfzh1+jdi1y/FSR2FF0UOwcoWcT1JsM7V5hO4s+mtY xlkCA5wShibLzQyIHea8bpRUVyCcbSU1WaGSgcmsBMC+7EqweqB5mfN8+1h2WtkArfrN sxv24JkxJPA0pyWkbInwxRAWW4aXDdCaCECeCGtN7Iv0I8McksVAUnxpAFHlP5q7Q/PG AD8OumHcxhE3uvebHa7DoR5h5sEMc2oU20VaS1qcqYqjYKFs9H5nxqXZ+nB5Z5MlIH1Q pKj9MIIRyU/FtolyTHFl4av9/SAAzjbuThU1bPIWapFqOO+VkZdjZ5uzaTn8DexBeH0i D1lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=CFeUn4qEQAh0LobUYcoODEJFz5S8fww9LXhtTrlr6k0=; b=QS801mvcmRJ+66jmEJ+buTizhvY6vjuC5wFPV04XHfl0ZdWqT+bWmIRztUj9JLLuLx FgYJYiKSPUFVMGVdHlrv975qcntsGbJqYNu7pIJRQkWiVGsJyst3IliQ8ww8JscEpBze uUEK6lWhu634b7YNZ7dYDL1lbeCAdJzwvd0hTPTOMRChbNHTdmhueF/Uc2OMx4AauMcB dh31ZvF7kF6gJeINvztFSkBGJOCc7TrfrWIOoWIYSiO1vhW8YRGI14vqLOCdGw+lktBG 8r3tf8Z0BVRQIPL2S7VoBX+r8MQpARFzNw/OVJDyGnvIQpMwzPtxORZLSZo4P6S7ktmq MRzw== X-Gm-Message-State: AD7BkJI6jrruYGIHOCC187RIBa9VFNtYdMTSm1QLP069HmwzvM0M7w0TRf3nJcRj4WosFw== X-Received: by 10.50.59.146 with SMTP id z18mr25444405igq.6.1458751517698; Wed, 23 Mar 2016 09:45:17 -0700 (PDT) Original-Received: from moondust.nodomain.none (T86F8.WPA.Dal.Ca. [134.190.134.248]) by smtp.gmail.com with ESMTPSA id h130sm1435214ioe.23.2016.03.23.09.45.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Mar 2016 09:45:16 -0700 (PDT) In-Reply-To: <56F24F21.4040107@gmx.at> (martin rudalics's message of "Wed, 23 Mar 2016 09:09:05 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115398 Archived-At: At 09:09 +0100 on Wednesday 2016-03-23, martin rudalics wrote: > > ,(if temp-buffer-resize-mode > '(window-height . resize-temp-buffer-window) > '(window-height . shrink-window-if-larger-than-buffer)) Thanks Martin, that indeed captures the observed behaviour in a nutshell. > Obviously, the second branch is based on the assumption that a user will > "refine" her completions in the sense that she starts with a large > number of possible completions and, by typing characters in the > minibuffer, reduces the number of possible completions until she found > the right one. This is a valid assumption and basis of design when the completion is of something like a command or a function name, because then the completion list is gradually narrowed. But in the case of completion of a file path, this assumption is not valid. (And completing each directory name down a file path is a perfectly normal use case.) The difference is that one is not doing a single completion but several discrete completions. For example, I was doing a find-file to find something in my Emacs init. I started with `~/.em TAB' expecting a single match of ~/.emacs.d/ but instead (of course) I got the initial completions window with .emacs and .emacs.d in it -- a very small completions window. Then I needed a subdirectory in ~/.emacs.d/ but couldn't remember its name at all, so I hit TAB again and got the entire contents of emacs.d/ which is a very long list [it seems to be jammed up full of session files for some reason] all displayed in a buffer sized to show one line of completion candidates. > Apparently, the OP works in the opposite direction - he starts with > few suggestions and removes characters from the minibuffer ending up > with more and more suggestions. No, not normally. When I was trying to come up with a simple reproducible recipe I wanted an example in the emacs tree, and the example I was able to up with was a bit contrived. (Although I don't think it's an unlikely use case.) N.