From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#1291: 23.0.60; 1) resize-mini-windows: customizable, 2) if grow mini, grow Completions Date: Mon, 3 Nov 2008 00:21:18 -0800 Message-ID: <00a001c93d8d$25b016b0$0200a8c0@us.oracle.com> References: <005b01c93c80$436e6ac0$0200a8c0@us.oracle.com> <490DB544.9000003@gmx.at> <007201c93cfd$5d33d440$0200a8c0@us.oracle.com> <490DEE1F.1090700@gmx.at> <008101c93d1d$fc93a450$0200a8c0@us.oracle.com> <490E035D.3050104@gmx.at> <008701c93d29$5dbc3a20$0200a8c0@us.oracle.com> <490EA576.7050401@gmx.at> Reply-To: Drew Adams , 1291@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225702226 14057 80.91.229.12 (3 Nov 2008 08:50:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2008 08:50:26 +0000 (UTC) Cc: 1291@emacsbugs.donarmstrong.com To: "'martin rudalics'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 03 09:51:29 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kwv9i-00017y-2q for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Nov 2008 09:51:26 +0100 Original-Received: from localhost ([127.0.0.1]:44019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kwv8b-0007nV-01 for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Nov 2008 03:50:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kwv8X-0007nQ-F4 for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 03:50:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kwv8U-0007nD-Uo for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 03:50:13 -0500 Original-Received: from [199.232.76.173] (port=42417 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kwv8U-0007nA-P9 for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 03:50:10 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:3831) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kwv8U-0004nc-Dn for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 03:50:10 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kwv8S-0007qv-S0 for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 03:50:09 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA38o4fK010870; Mon, 3 Nov 2008 00:50:04 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mA38Z384007292; Mon, 3 Nov 2008 00:35:03 -0800 X-Loop: don@donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 03 Nov 2008 08:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1291 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1291-submit@emacsbugs.donarmstrong.com id=B1291.12257007835973 (code B ref 1291); Mon, 03 Nov 2008 08:35:03 +0000 Original-Received: (at 1291) by emacsbugs.donarmstrong.com; 3 Nov 2008 08:26:23 +0000 Original-Received: from acsinet11.oracle.com (acsinet11.oracle.com [141.146.126.233]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA38QKGL005967 for <1291@emacsbugs.donarmstrong.com>; Mon, 3 Nov 2008 00:26:21 -0800 Original-Received: from rgminet15.oracle.com (mail-router.oracle.com [148.87.113.117]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mA38QSWU025466 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 3 Nov 2008 08:26:30 GMT Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mA38Q6Bf032576 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Nov 2008 08:26:08 GMT Original-Received: from acsmt705.oracle.com (acsmt705.oracle.com [141.146.40.83]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id mA38Q1Vw002179; Mon, 3 Nov 2008 01:26:02 -0700 Original-Received: from dradamslap1 (/24.23.165.218) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 03 Nov 2008 08:20:52 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <490EA576.7050401@gmx.at> X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Thread-Index: Ack9hJ3ZTHduylOBQPyAXdMZk2ekeAAAOCmA X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Source-IP: rgmgw1.us.oracle.com [138.1.186.110] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090209.490EB59E.02DE:SCFSTAT928724,ss=1,fgs=0 X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Mon, 03 Nov 2008 03:50:13 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22120 Archived-At: > FAIK the *Completions* windows and the minibuffer are independent from > each other. So we have to find a mechanism to tell the window > management part what to do. Fixing window sizes in some "lax" fashion > is one way to do that. AFAIK, the main functions that complete minibuffer input and display possible completions use buffer *Completions* for that display. `minibuffer-completion-help' and `switch-to-completions', for example, are used by the standard minibuffer completion keymaps, and they both use *Completions*. Likewise, Pcomplete and Iswitchb use *Completions*. Ido uses the value of `ido-completion-buffer', however. Seems a good enough heuristic that for minibuffer completion the completions are displayed in a window showing buffer *Completions*, if they are displayed at all (`completion-show-help'). Not 100% fail-safe, perhaps, but it should be possible to nail things down pretty well, if necessary, to make sure that a displayed *Completions* buffer in `completion-list-mode' is showing the current completions for the active minibuffer currently completing. In practice, I don't think such nails are really needed. Both `minibuffer-completion-help' and `switch-to-completions' simply rely on (get-buffer-window "*Completions*"), and that seems to suffice to determine the completions window. However, I suggest using 0 for the FRAME arg to `get-buffer-window', since *Completions* might be on a different frame from the minibuffer (e.g. standalone minibuffer, special-display *Completions*). So I guess I don't see the independence you mention. During minibuffer completion, a visible window showing buffer *Completions* is the one whose size the minibuffer should care about. If there is no such window, e.g. because the completions buffer has a different name, then the minibuffer won't take the completions window into account for its resizing - but in that corner case we are no worse off than now. In sum, if *Completions* is visible during minibuffer completion, then the minibuffer should take its window into account. If not, it need not worry about it.