unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Copley <rcopley@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 25279@debbugs.gnu.org
Subject: bug#25279: 26.0.50; Slowdown/crash on certain characters
Date: Mon, 26 Dec 2016 20:40:42 +0000	[thread overview]
Message-ID: <CAPM58ojuZ-D76Deii4Cg4zWmiub9JcouNzr6KZjHLCSqeFMEGQ@mail.gmail.com> (raw)
In-Reply-To: <83vau6wi7r.fsf@gnu.org>

On 26 December 2016 at 20:25, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Richard Copley <rcopley@gmail.com>
>> Date: Mon, 26 Dec 2016 20:09:16 +0000
>>
>> >From emacs -Q:
>> Insert MUSIC FLAT SIGN or RIGHTWARDS DOUBLE ARROW in a buffer.
>> Move point around in the buffer or edit the buffer text.
>> Emacs gets very slow, consuming a lot of CPU.
>> Sometimes it completely grinds to a halt.
>
> Doesn't happen here.
>
>> MUSIC FLAT SIGN and RIGHTWARDS DOUBLE ARROW are examples
>> that cause this problem for me. MUSIC SHARP SIGN and
>> RIGHTWARDS ARROW are examples that do not cause a problem.
>>
>> Below are the contents of the describe-char buffer for these
>> characters (with the character itself asterisked out in each
>> case so as not to crash my Emacs while I edit this mail).
>>
>> Note the categories. They seem illogical. Are they supposed
>> to be like that? Why?
>
> Because you don't have Symbola installed, I guess.  The fonts Emacs
> finds for displaying these characters all have non-Unicode registry
> fields, and that causes Emacs to desperately look for a Unicode font
> each time it needs to display one of these characters.

OK, thanks, but I don't quite follow, sorry. Unless you're saying there's a
non-desperate mechanism that's usually used but which fails unless a
font with a Unicode registry field is found for the character?

> Symbola is referenced in the default fontset with Unicode registry.
> You could also customize the fontset with the fonts you have, giving
> them iso10646-1 as the registry instead of what you have now, and that
> might also fix the problem.  But installing Symbola is better, IMO.

Installing Symbola works a treat. Thanks very much.
I wish I could see how to make that information easy to discover.

> Alternatively, setting inhibit-compacting-font-caches to a non-nil
> value will probably work around the problem.
>
>> Note the fonts. Could there be a bug in "Malgun Gothic"?
>> As far as I know it's a Korean font installed by default with Windows.
>> Could there be a bug in "Consolas"? Why does Emacs find the MUSIC
>> SHARP SIGN glyph but not the MUSIC FLAT SIGN glyph from Consolas?
>
> You will need to look into the coverage of these fonts to answer those
> questions, I think.  On Windows, Emacs generally examines fonts in the
> alphabetical order, looking for the first font that supports the
> character, and that's after it tried to use the default face's font.

Commendably thorough, but causes the editor to grind to a halt and crash
in some circumstances.

>> I asked about this on IRC and there exist Windows Emacs users who
>> don't have the issue, so it may be influenced by environmental
>> factors.
>
> Those factors are the fonts they have installed, I think.

Seems so. Thanks again!





  reply	other threads:[~2016-12-26 20:40 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-26 20:09 bug#25279: 26.0.50; Slowdown/crash on certain characters Richard Copley
2016-12-26 20:18 ` Richard Copley
2016-12-26 20:25 ` Eli Zaretskii
2016-12-26 20:40   ` Richard Copley [this message]
2016-12-26 20:49     ` Eli Zaretskii
2016-12-26 21:21       ` Richard Copley
2016-12-27  7:21         ` Eli Zaretskii
     [not found]           ` <CAPM58oiS8+TuR8WhKZmEZdWY_ac44xLDjnpYAD0aWqU6=mX7eg@mail.gmail.com>
2016-12-27 13:51             ` bug#25279: Fwd: " Richard Copley
     [not found]             ` <CAPM58oioMPAo=x8F1whs5YS3RMwceoadAT9TN7Macbx=SaxyJA@mail.gmail.com>
2016-12-27 13:53               ` Richard Copley
     [not found]               ` <838tr1wlg4.fsf@gnu.org>
     [not found]                 ` <CAPM58og6d1EqTEyMy6df27DXB_ERYOD5=pmFHC9MmoFmq+CDgw@mail.gmail.com>
     [not found]                   ` <837f6lwkju.fsf@gnu.org>
2016-12-27 14:06                     ` Richard Copley
2016-12-27 14:15                       ` Eli Zaretskii
2016-12-27 14:32                         ` Richard Copley
2016-12-27 21:15                           ` Richard Copley
2017-02-21 20:05                             ` Richard Copley
2017-02-21 20:28                               ` Eli Zaretskii
2017-02-21 20:33                                 ` Richard Copley
2017-02-21 20:38                                   ` Richard Copley
2017-02-23 16:19                                 ` Eli Zaretskii
2017-02-23 19:15                                   ` Richard Copley
2017-02-23 19:20                                     ` Richard Copley
2017-02-23 15:22                               ` Eli Zaretskii

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=CAPM58ojuZ-D76Deii4Cg4zWmiub9JcouNzr6KZjHLCSqeFMEGQ@mail.gmail.com \
    --to=rcopley@gmail.com \
    --cc=25279@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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).