unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Klaus-Dieter Bauer <bauer.klaus.dieter@gmail.com>
Cc: 14520@debbugs.gnu.org
Subject: bug#14520: 24.3; minibuffer resizes when message contains bold or italic text
Date: Fri, 31 May 2013 20:47:19 +0300	[thread overview]
Message-ID: <83a9nb2g9k.fsf@gnu.org> (raw)
In-Reply-To: <CANtbJLEW2moN8+P36w_-05rqPrUAZtbG3vZnyj4k34b+_3uNKQ@mail.gmail.com>

> From: Klaus-Dieter Bauer <bauer.klaus.dieter@gmail.com>
> Date: Fri, 31 May 2013 16:28:53 +0200
> 
> When a message contains bold or italic text, the minibuffer is resized
> incorrectly.

Why do you think it is incorrect?

> (defun x () (interactive)
>   (let ((message "Hello World"))
>     (put-text-property 0 5 'face 'bold message)
>     (message message)))
> 
> (defun y () (interactive)
>   (let ((message "Hello World"))
>     (put-text-property 0 5 'face '(:foreground "blue") message)
>     (message message)))
> 
> On "M-x x" the minibuffer will look as if the message contained a
> trailing newline. On "M-x y" the minibuffer will display correctly.
> 
> eldoc's tips become distracting as this causes random flickering of the
> minibuffer while moving the cursor through code.
> 
> The problem is reproducible at least in all emacs-24.x-bin-i386.zip
> releases on http://ftp.gnu.org/gnu/emacs/windows/

It doesn't happen to me with 24.3, but that's on XP, while you are on
Windows 7.  So I'm quite sure it's a font and/or shaping engine thing.
Somehow, on your system the font tells Emacs that its height is more
than you think it should be.  Emacs has no alternative but to comply.





  parent reply	other threads:[~2013-05-31 17:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-31 14:28 bug#14520: 24.3; minibuffer resizes when message contains bold or italic text Klaus-Dieter Bauer
2013-05-31 16:16 ` martin rudalics
2013-05-31 17:47 ` Eli Zaretskii [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-05-14 17:11 bug#6192: 24.0.50; eldoc-mode: unexpected recentering Stephen Berman
2022-05-05 12:20 ` bug#14520: 24.3; minibuffer resizes when message contains bold or italic text Lars Ingebrigtsen
2022-05-05 12:50   ` Stephen Berman
2022-05-05 13:07     ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83a9nb2g9k.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=14520@debbugs.gnu.org \
    --cc=bauer.klaus.dieter@gmail.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).