all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Brent Goodrick <bgoodr@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: 3285@emacsbugs.donarmstrong.com, Chong Yidong <cyd@stupidchicken.com>
Subject: bug#3285: 23.0.91; Messaging propertized text increases minibuffer height unnecessarily
Date: Thu, 21 May 2009 08:05:40 -0700	[thread overview]
Message-ID: <e38bce640905210805u24b3ef7el808c69fadd2933dd@mail.gmail.com> (raw)
In-Reply-To: <003701c9d565$0ab09e50$0200a8c0@us.oracle.com>

On Fri, May 15, 2009 at 6:57 AM, Drew Adams <drew.adams@oracle.com> wrote:
>> 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.
>
> 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.

(I thought I had sent this reply, but found later that it had gotten
stuck in the "Draft bit bucket" 8) ).

I would be more than happy to just have the minibuffer clipped to one
line, with some part of the font clipped.  If not, I'll have to set
the defvar for that font being used in eldoc mode to use something
like inverse highlight using the same font to insure that the
minibuffer stays the same height.

I initially toyed with the idea of forcing the minibuffer to always be
one line tall, but that would undoubtedly interact badly with the
ever-so-useful incremental completion mode(s) where large lists of
things need to be shown in the minibuffer temporarily.

bg






  reply	other threads:[~2009-05-21 15:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-14 19:36 bug#3285: 23.0.91; Messaging propertized text increases minibuffer height unnecessarily Chong Yidong
2009-05-15  3:47 ` Brent Goodrick
2009-05-15 13:57   ` Drew Adams
2009-05-21 15:05     ` Brent Goodrick [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-05-14  6:05 Brent Goodrick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e38bce640905210805u24b3ef7el808c69fadd2933dd@mail.gmail.com \
    --to=bgoodr@gmail.com \
    --cc=3285@emacsbugs.donarmstrong.com \
    --cc=cyd@stupidchicken.com \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.