GNU bug report logs - #40733
28.0.50; Emacs locks up on paste (yank) of unicode characters

Previous Next

Package: emacs;

Reported by: Will Bush <will.g.bush <at> gmail.com>

Date: Mon, 20 Apr 2020 14:56:02 UTC

Severity: normal

Tags: moreinfo

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pip Cet <pipcet <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: contovob <at> tcd.ie, 40733 <at> debbugs.gnu.org, rpluim <at> gmail.com, will.g.bush <at> gmail.com, cloos <at> jhcloos.com
Subject: bug#40733: 28.0.50; Emacs locks up on paste (yank) of unicode characters
Date: Mon, 1 Jun 2020 15:50:36 +0000
On Mon, Jun 1, 2020 at 3:15 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
> Thanks.
>
> From what I see in the net search, this is a very large font, created
> for some very special circumstances.  Not sure we should spend time on
> this issue.  Maybe submit a bug report to Fontconfig folks.

Every call to fontconfig takes a long time, and we call it 17 times...
But it looks like the code that varies pixel size is there for a
reason:

  for (psize = pixel_size; ; psize++)
    {
      font_object = driver_list->driver->open_font (f, entity, psize);
      if (NILP (font_object))
    return Qnil;
      font = XFONT_OBJECT (font_object);
      if (font->average_width > 0 && font->height > 0)
    break;
      /* Avoid an infinite loop.  */
      if (psize > pixel_size + 15)
    return Qnil;
    }




This bug report was last modified 3 years and 26 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.