GNU bug report logs - #42522
Emacs 27: 100% CPU when setting mode-name with ligatures

Previous Next

Package: emacs;

Reported by: Evan Moses <emoses <at> gmail.com>

Date: Fri, 24 Jul 2020 22:30:01 UTC

Severity: normal

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Evan Moses <emoses <at> gmail.com>
Cc: 42522 <at> debbugs.gnu.org
Subject: bug#42522: Emacs 27: 100% CPU when setting mode-name with ligatures
Date: Sat, 25 Jul 2020 09:24:47 +0300
> From: Evan Moses <emoses <at> gmail.com>
> Date: Fri, 24 Jul 2020 14:35:50 -0700
> 
> To reproduce, evaluate this
> 
> (set-char-table-range composition-function-table 47 '([".\\(?:\\(?:\\*\\*\\|//\\|==\\)\\|[*/=>]\\)" 0
> font-shape-gstring]))
> 
> And then evaluate 
> 
> (setq mode-name "test//")
> 
> Emacs will become unresponsive and consume 100% CPU.

It doesn't hang here.  Could this be macOS-specific?  Or maybe the
problem happens only with some fonts?  Does it happen in "emacs -Q"?

In any case, did you really mean for Emacs to produce ligatures on the
mode line?  More generally, what kind of ligatures are you trying to
produce with this setup?




This bug report was last modified 4 years and 279 days ago.

Previous Next


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