From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#1291: 23.0.60; 1) resize-mini-windows: customizable, 2) if grow mini, grow Completions Date: Sun, 02 Nov 2008 19:14:55 +0100 Message-ID: <490DEE1F.1090700@gmx.at> References: <005b01c93c80$436e6ac0$0200a8c0@us.oracle.com> <490DB544.9000003@gmx.at> <007201c93cfd$5d33d440$0200a8c0@us.oracle.com> Reply-To: martin rudalics , 1291@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225650643 23241 80.91.229.12 (2 Nov 2008 18:30:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Nov 2008 18:30:43 +0000 (UTC) Cc: 1291@emacsbugs.donarmstrong.com To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 02 19:31:45 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 1Kwhjh-0003W8-N5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Nov 2008 19:31:42 +0100 Original-Received: from localhost ([127.0.0.1]:53448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kwhia-0005Iv-VB for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Nov 2008 13:30:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwhiG-0005B3-2F for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 13:30:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwhiE-0005AX-D2 for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 13:30:11 -0500 Original-Received: from [199.232.76.173] (port=43595 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwhiE-0005AU-6B for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 13:30:10 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54878) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KwhiD-0000Hu-LW for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 13:30: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 mA2IU4Ao022376; Sun, 2 Nov 2008 10:30:04 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mA2IP6VC021236; Sun, 2 Nov 2008 10:25:06 -0800 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 02 Nov 2008 18:25:06 +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.122564979519735 (code B ref 1291); Sun, 02 Nov 2008 18:25:06 +0000 Original-Received: (at 1291) by emacsbugs.donarmstrong.com; 2 Nov 2008 18:16:35 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mA2IGVni019729 for <1291@emacsbugs.donarmstrong.com>; Sun, 2 Nov 2008 10:16:32 -0800 Original-Received: (qmail invoked by alias); 02 Nov 2008 18:16:24 -0000 Original-Received: from 62-47-41-152.adsl.highway.telekom.at (EHLO [62.47.41.152]) [62.47.41.152] by mail.gmx.net (mp046) with SMTP; 02 Nov 2008 19:16:24 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+V3X8mt+KV+cKJ8LC7oWTucynpOFC3ZO++MSSc07 YIbd08g99pIOwz User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <007201c93cfd$5d33d440$0200a8c0@us.oracle.com> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.63 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 02 Nov 2008 13:30:11 -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:22102 Archived-At: > Previously (2008-10-09 build), the *Completions* buffer showed all of the > candidates through `s==>Subdir', e.g. when I try it in a Dired buffer. It only > left out one line, with the candidate `h==>Help'. Now, *Completions* leaves out > all of these candidates: I'm afraid we won't get this very right ever. But you could try the below version of `Electric-pop-up-window'. martin (defun Electric-pop-up-window (buffer &optional max-height) (let* ((win (or (get-buffer-window buffer) (selected-window))) (buf (get-buffer buffer)) (one-window (one-window-p t)) (pop-up-windows t) (pop-up-frames nil)) (if (not buf) (error "Buffer %s does not exist" buffer) (cond ((and (eq (window-buffer win) buf)) (select-window win)) (one-window (pop-to-buffer buffer) (setq win (selected-window))) (t (switch-to-buffer buf))) ;; Don't shrink the window, but expand it if necessary. (goto-char (point-min)) (unless (<= (point-max) (window-end win t)) (fit-window-to-buffer win max-height)) win)))