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#19355: 25.0.50; limit the popup window height Date: Fri, 12 Dec 2014 13:45:32 +0100 Message-ID: <548AE36C.7060606@gmx.at> References: <87vblhtz5m.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1418388391 8553 80.91.229.3 (12 Dec 2014 12:46:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2014 12:46:31 +0000 (UTC) Cc: Juri Linkov To: Leo Liu , 19355@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 12 13:46:23 2014 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 1XzPby-0002ch-OP for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Dec 2014 13:46:22 +0100 Original-Received: from localhost ([::1]:56876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzPby-0000fQ-4q for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Dec 2014 07:46:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzPbl-0000Ta-Rj for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2014 07:46:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzPbe-0002ht-BR for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2014 07:46:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzPbe-0002hn-8G for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2014 07:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XzPbd-0000gc-Na for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2014 07:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Dec 2014 12:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19355 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19355-submit@debbugs.gnu.org id=B19355.14183883522623 (code B ref 19355); Fri, 12 Dec 2014 12:46:01 +0000 Original-Received: (at 19355) by debbugs.gnu.org; 12 Dec 2014 12:45:52 +0000 Original-Received: from localhost ([127.0.0.1]:43549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XzPbU-0000gF-8F for submit@debbugs.gnu.org; Fri, 12 Dec 2014 07:45:52 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:62650) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XzPbS-0000g3-UD for 19355@debbugs.gnu.org; Fri, 12 Dec 2014 07:45:51 -0500 Original-Received: from [62.47.250.254] ([62.47.250.254]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MMTZa-1Y2Bom2N7W-008Jzf; Fri, 12 Dec 2014 13:45:42 +0100 In-Reply-To: <87vblhtz5m.fsf@gmail.com> X-Provags-ID: V03:K0:PBP7D9tXGZLD98OkLtZogV/rmqSWs+OPDvqd/mA9uv3cY24whrr pXfDu3AnBO0BuvQPoO74oB5aDAEWQc+G9kX8bgJN8KiO1F1ZfrrZl1ZA4a2eeEMhBsmAp81 GQc5Y0x3CDVOqlZJVNVkahNJuY5p3cWEFGr43GRZLlRCN/Z3BZOXCgx0XOLYPCpk2uL+798 rl9FPXg/+UJvj9EbO4KKQ== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:97258 Archived-At: > The popup window from, for example, minibuffer-completion-help, can be > so tall that the main editing window is squeezed to a few lines This number of lines is specified by `window-min-height'. > which > has the unfortunate side-effect of moving point, pushing some buffer > text out of the window. This is quite an annoyance. To see this: > > 1. Find an elisp file, with the form under edit centred around the > window. > > 2. Try complete for `(s' and assume the window split will be done > vertically. We can add the MAX/MIN-HEIGHT/WIDTH arguments of `fit-window-to-buffer' to the alist entries recognized by `display-buffer'. Then `minibuffer-completion-help' and friends could set them in a way we'd have to choose yet. Or we make these globally customizable. I'm currently rewriting the code for *Completions* windows to make sure they don't get obscured by an expanding minibuffer window. If you have a good proposal I can make the necessary changes right away. martin