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#3285: 23.0.91; Messaging propertized text increases minibuffer height unnecessarily Date: Fri, 15 May 2009 06:57:09 -0700 Message-ID: <003701c9d565$0ab09e50$0200a8c0@us.oracle.com> References: <87iqk3iiiu.fsf@cyd.mit.edu> Reply-To: Drew Adams , 3285@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1242423141 10313 80.91.229.12 (15 May 2009 21:32:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 May 2009 21:32:21 +0000 (UTC) To: "'Brent Goodrick'" , <3285@emacsbugs.donarmstrong.com>, "'Chong Yidong'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 15 23:32:13 2009 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 1M550n-0001l1-CP for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 May 2009 23:32:13 +0200 Original-Received: from localhost ([127.0.0.1]:48451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M550m-0001o3-E6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 May 2009 17:32:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M550i-0001nm-6q for bug-gnu-emacs@gnu.org; Fri, 15 May 2009 17:32:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M550d-0001n8-UM for bug-gnu-emacs@gnu.org; Fri, 15 May 2009 17:32:07 -0400 Original-Received: from [199.232.76.173] (port=46579 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M550d-0001n0-Bs for bug-gnu-emacs@gnu.org; Fri, 15 May 2009 17:32:03 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50918) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M550c-0006bs-R5 for bug-gnu-emacs@gnu.org; Fri, 15 May 2009 17:32:03 -0400 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 n4FLVul8031298; Fri, 15 May 2009 14:31:56 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n4FLK5JE027132; Fri, 15 May 2009 14:20:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 15 May 2009 21:20:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3285 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3285-submit@emacsbugs.donarmstrong.com id=B3285.124242190225257 (code B ref 3285); Fri, 15 May 2009 21:20:05 +0000 Original-Received: (at 3285) by emacsbugs.donarmstrong.com; 15 May 2009 21:11:42 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from acsinet14.oracle.com (acsinet14.oracle.com [141.146.126.236]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4FLBc0F025240 for <3285@emacsbugs.donarmstrong.com>; Fri, 15 May 2009 14:11:39 -0700 Original-Received: from acsinet11.oracle.com (acsinet11.oracle.com [141.146.126.233]) by acsinet14.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4FDwN6N029349 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <3285@emacsbugs.donarmstrong.com>; Fri, 15 May 2009 13:58:25 GMT Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4FDvbfF024253 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 15 May 2009 13:57:39 GMT Original-Received: from abhmt005.oracle.com (abhmt005.oracle.com [141.146.116.14]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4FDvhkJ029463; Fri, 15 May 2009 13:57:43 GMT Original-Received: from dradamslap1 (/141.144.169.87) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 15 May 2009 06:57:10 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcnVE4gGw8Caur6bR++nZhRoc+EiswAUCCPg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsinet11.oracle.com [141.146.126.233] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4A0D74C3.026B:SCFMA922111,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 15 May 2009 17:32:07 -0400 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:27898 Archived-At: > > > Notice that the height changes to 2 lines. > > > > > > The maximum height of the regular sized font versus of=20 > > > the bold font can NOT be so different as to cause the > > > minibuffer have to increase in height from 1 line to 2 lines. > > > > I'm afraid I don't observe this. =A0Use a bold font does not=20 > > resize the minibuffer. =A0What font are you using? >=20 > I'm using xft with the "Bitstream Vera Sans Mono-9" font. I suspect this is the known problem, reported long ago, that if a face = makes a character slightly taller, then an extra line is allocated to handle the = extra 1 or 2 pixels in height.=20 I see this too, because I use a face with `box' for one character = sometimes in the minibuffer (before the prompt), and that causes the minibuffer = height to increase by a whole character height. The box outline is only 1 pixel = thick, but those 2 pixels (box top + bottom) are enough to cause the faced = character to be larger than the one character height allocated. Maybe (dunno) the same thing happens for bold - maybe the bold = characters are a pixel or two taller. This was discussed in Emacs Devel long ago, but never fixed. Maybe there = is no easy fix, as long as the minibuffer must be an integral number of chars = high. Dunno. Yes, it is annoying. We accommodate ascenders and descenders (e.g. in p = and d) as part of the character height, but we don't account for box outlines = or (apparently?) for the thickness of bolding. HTH.