From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Shrinking mini windows to one pixel height Date: Sat, 03 Mar 2018 12:25:27 +0200 Message-ID: <83d10lv4ko.fsf@gnu.org> References: <5A9A658A.5080207@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1520072633 6479 195.159.176.226 (3 Mar 2018 10:23:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Mar 2018 10:23:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 03 11:23:48 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1es4KR-0001Ax-Vm for ged-emacs-devel@m.gmane.org; Sat, 03 Mar 2018 11:23:48 +0100 Original-Received: from localhost ([::1]:39448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1es4MU-0004uD-HU for ged-emacs-devel@m.gmane.org; Sat, 03 Mar 2018 05:25:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1es4Lq-0004tx-PO for emacs-devel@gnu.org; Sat, 03 Mar 2018 05:25:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1es4Ln-00005L-Jp for emacs-devel@gnu.org; Sat, 03 Mar 2018 05:25:14 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1es4Ln-000056-Ff; Sat, 03 Mar 2018 05:25:11 -0500 Original-Received: from [176.228.60.248] (port=4448 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1es4Lm-0001T1-US; Sat, 03 Mar 2018 05:25:11 -0500 In-reply-to: <5A9A658A.5080207@gmx.at> (message from martin rudalics on Sat, 03 Mar 2018 10:06:18 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223233 Archived-At: > Date: Sat, 03 Mar 2018 10:06:18 +0100 > From: martin rudalics > > I just noticed that one can resize mini windows down to one pixel > which is maybe not what users want. To reproduce with emacs -Q simply > type C-h f and drag the modeline of the only window down with the > mouse. With some insistence you can make the minibuffer window almost > disappear. > > A trivial patch is attached. I think it should go to the release > branch but maybe the problem is too cosmetic for that. Does the capability or making a mini window 1-pixel tall cause us any trouble? If not, I'd prefer not to block it, let alone do that on the release branch. If you feel strongly about disabling this by default, on behalf of the innocent and the naïve, I could agree with a defcustom that would do that. Maybe. In any case, limiting this to frame-char-height sounds too harsh to me, because using a suitably selected font one could produce quite legible text in the mini window of a significantly smaller size. E.g., AFAIR sizes as small as half that don't even trigger reallocation of the glyph matrices, because their original allocation tolerates up to twice as many screen lines as determined by the frame's default font. Thanks.