From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#17809: 24.4.50; Completions display Date: Mon, 30 Jun 2014 02:47:00 +0300 Organization: JURTA Message-ID: <87vbrj462z.fsf@mail.jurta.org> References: <87tx7buryg.fsf@mail.jurta.org> <53A92532.9040901@gmx.at> <87y4wlg8gx.fsf_-_@mail.jurta.org> <53AA7222.1010905@gmx.at> <8738er89q6.fsf@mail.jurta.org> <53AD12AE.2050707@gmx.at> <877g41vp5x.fsf@mail.jurta.org> <53AE7A3A.20307@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1404087749 10362 80.91.229.3 (30 Jun 2014 00:22:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Jun 2014 00:22:29 +0000 (UTC) Cc: 17809@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 30 02:22:22 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 1X1PMS-0008UG-GK for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jun 2014 02:22:20 +0200 Original-Received: from localhost ([::1]:59776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1PMR-0003d6-OW for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Jun 2014 20:22:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1PMI-0003c4-55 for bug-gnu-emacs@gnu.org; Sun, 29 Jun 2014 20:22:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1PMA-0006rf-LF for bug-gnu-emacs@gnu.org; Sun, 29 Jun 2014 20:22:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1PMA-0006rb-I7 for bug-gnu-emacs@gnu.org; Sun, 29 Jun 2014 20:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X1PMA-0000VQ-4l for bug-gnu-emacs@gnu.org; Sun, 29 Jun 2014 20:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jun 2014 00:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17809 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 17809-submit@debbugs.gnu.org id=B17809.14040877021903 (code B ref 17809); Mon, 30 Jun 2014 00:22:02 +0000 Original-Received: (at 17809) by debbugs.gnu.org; 30 Jun 2014 00:21:42 +0000 Original-Received: from localhost ([127.0.0.1]:37218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1PLp-0000Ud-PC for submit@debbugs.gnu.org; Sun, 29 Jun 2014 20:21:42 -0400 Original-Received: from alc-vshost7.dreamhost.com ([69.163.216.107]:46236 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1PLl-0000UL-IY for 17809@debbugs.gnu.org; Sun, 29 Jun 2014 20:21:38 -0400 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 1EAEF348328C64; Sun, 29 Jun 2014 17:21:33 -0700 (PDT) In-Reply-To: <53AE7A3A.20307@gmx.at> (martin rudalics's message of "Sat, 28 Jun 2014 10:18:02 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) 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:90987 Archived-At: >> But then (window-height . fit-window-to-buffer) will be called >> on the empty buffer, that will always produce a small window >> with 3-lines height. > > Then don't do that. If you want to do both - formatting and fitting - > have QUIT-FUNCTION do that. So in BODY put the text into the buffer and > in QUIT-FUNCTION first format the text according to what the window size > gives and then try to fit the window to the formatted text. Then the users will lose the ability to override window fitting by redefining `window-height' in `display-buffer-alist'. Not sure how important this is. > And note that `display-buffer-base-action' is a user variable. Isn't `display-buffer-alist' a customizable variable intended for users? I see no other way for a function to override `display-buffer-fallback-action', but still allow the users to customize it in `display-buffer-alist'. Only `display-buffer-base-action' can be used for this.