GNU bug report logs - #23291
25.0.92; Inserting unicode in buffer requiring a different font slows down Emacs

Previous Next

Package: emacs;

Reported by: "Philippe Crama" <phcrama.work <at> gmx.com>

Date: Thu, 14 Apr 2016 19:34:02 UTC

Severity: minor

Tags: moreinfo

Found in version 25.0.92

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23291 in the body.
You can then email your comments to 23291 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23291; Package emacs. (Thu, 14 Apr 2016 19:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Philippe Crama" <phcrama.work <at> gmx.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 14 Apr 2016 19:34:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Philippe Crama" <phcrama.work <at> gmx.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.92; Inserting unicode in buffer requiring a different font
 slows down Emacs
Date: Thu, 14 Apr 2016 21:28:55 +0200
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23291; Package emacs. (Thu, 14 Apr 2016 19:59:01 GMT) Full text and rfc822 format available.

Message #8 received at 23291 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Philippe Crama" <phcrama.work <at> gmx.com>
Cc: 23291 <at> debbugs.gnu.org
Subject: Re: bug#23291: 25.0.92;
 Inserting unicode in buffer requiring a different font slows down
 Emacs
Date: Thu, 14 Apr 2016 22:57:30 +0300
> Date: Thu, 14 Apr 2016 21:28:55 +0200
> Sensitivity: Normal
> 
> 1. Go to the *scratch* buffer or create a new buffer in fundamental mode
> 2. Observe that Emacs is quite responsive when typing random ASCII
> characters
> 3. Insert (C-x 8 RET) a CIRCLED DIGIT EIGHT into the buffer
> 4. Continue typing: the buffer update is slower than before

I cannot reproduce this on my system.

> 3. In all versions I tested for this report, C-u x = reports the same
> information for CIRCLED DIGIT EIGHT (I've replaced the troublesome
> unicode character by `(8)'):
> character: (8) (displayed as (8)) (codepoint 9319, #o22147, #x2467)
> preferred charset: unicode (Unicode (ISO10646))
> code point in charset: 0x2467
> script: symbol
> syntax: _ which means: symbol
> category: .:Base, c:Chinese, h:Korean, j:Japanese
> to input: type "C-x 8 RET 2467" or "C-x 8 RET CIRCLED DIGIT EIGHT"
> buffer code: #xE2 #x91 #xA7
> file code: #xE2 #x91 #xA7 (encoded by coding system utf-8-dos)
> display: by this font (glyph code)
> uniscribe:-outline-BatangChe-normal-normal-normal-mono-13-*-*-*-c-*-gb2312.1980-0 (#xF62)

Try installing Symbola, that's what Emacs uses on my system for that
character.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23291; Package emacs. (Fri, 15 Apr 2016 13:18:02 GMT) Full text and rfc822 format available.

Message #11 received at 23291 <at> debbugs.gnu.org (full text, mbox):

From: Philippe Crama <phcrama.work <at> gmx.com>
To: 23291 <at> debbugs.gnu.org
Subject: Workaround for "25.0.92;
 Inserting unicode in buffer requiring a different font slows down
 Emacs"
Date: Fri, 15 Apr 2016 15:17:16 +0200
Eli Zaretskii wrote:
> > 4. Continue typing: the buffer update is slower than before

> I cannot reproduce this on my system.

> > 3. In all versions I tested for this report, C-u x = reports the same
> > information for CIRCLED DIGIT EIGHT (I've replaced the troublesome
> > unicode character by `(8)'):
> > character: (8) (displayed as (8)) (codepoint 9319, #o22147, #x2467)
> > ...
> > display: by this font (glyph code)
> > uniscribe:-outline-BatangChe-normal-normal-normal-mono-13-*-*-*-c-*-gb2312.1980-0 (#xF62)

> Try installing Symbola, that's what Emacs uses on my system for that
> character.

1. downloaded Symbola from http://users.teilar.gr/~g1951d/
2. added this code to my .emacs.d/init.el file:
(let ((unicode-fallback "Symbola"))
  (when (x-list-fonts unicode-fallback)
    (set-fontset-font "fontset-default"
                      'unicode
                      (font-spec :name unicode-fallback))))

And my problem was solved.  Now the font used for CIRCLED DIGIT EIGHT
is -outline-Symbola-normal-normal-normal-serif-13-*-*-*-p-*-iso8859-1

Thanks, Eli!




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Fri, 15 Apr 2016 14:18:02 GMT) Full text and rfc822 format available.

Notification sent to "Philippe Crama" <phcrama.work <at> gmx.com>:
bug acknowledged by developer. (Fri, 15 Apr 2016 14:18:02 GMT) Full text and rfc822 format available.

Message #16 received at 23291-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Philippe Crama <phcrama.work <at> gmx.com>
Cc: 23291-done <at> debbugs.gnu.org
Subject: Re: bug#23291: Workaround for "25.0.92;
 Inserting unicode in buffer requiring a different font slows down
 Emacs"
Date: Fri, 15 Apr 2016 17:16:36 +0300
> Date: Fri, 15 Apr 2016 15:17:16 +0200
> From: Philippe Crama <phcrama.work <at> gmx.com>
> 
> > Try installing Symbola, that's what Emacs uses on my system for that
> > character.
> 
> 1. downloaded Symbola from http://users.teilar.gr/~g1951d/
> 2. added this code to my .emacs.d/init.el file:
> (let ((unicode-fallback "Symbola"))
>   (when (x-list-fonts unicode-fallback)
>     (set-fontset-font "fontset-default"
>                       'unicode
>                       (font-spec :name unicode-fallback))))

Did you really need that addition?  Emacs 25 should use Symbola by
default (if available) for the Unicode block of characters that
includes u+2467 CIRCLED DIGIT EIGHT.  Perhaps you customized
fontset-default to countermand that?

> And my problem was solved.  Now the font used for CIRCLED DIGIT EIGHT
> is -outline-Symbola-normal-normal-normal-serif-13-*-*-*-p-*-iso8859-1
> 
> Thanks, Eli!

Thanks, I'm closing this bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 14 May 2016 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 38 days ago.

Previous Next


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