unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Mark Laws <mdl@60hz.org>
Cc: 28795@debbugs.gnu.org
Subject: bug#28795: 25.2; UTF-8 language environment causes extreme sluggishness
Date: Thu, 12 Oct 2017 13:00:23 +0300	[thread overview]
Message-ID: <83h8v4n0so.fsf@gnu.org> (raw)
In-Reply-To: <CADemMPPf-S8XpYJygf5DUYKB7txbHNtjNE+GJORtZLkZbsDkaQ@mail.gmail.com> (message from Mark Laws on Thu, 12 Oct 2017 18:40:25 +0900)

[Please keep the bug address on the CC list.]

> From: Mark Laws <mdl@60hz.org>
> Date: Thu, 12 Oct 2017 18:40:25 +0900
> 
> On Thu, Oct 12, 2017 at 6:31 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> >> From: Mark Laws <mdl@60hz.org>
> >> Date: Thu, 12 Oct 2017 18:15:53 +0900
> >>
> >> M-x set-language-environment UTF-8
> >
> > On Windows, doing this is a mistake (but not because it causes
> > sluggish redisplay).
> 
> What is the correct way to use UTF-8 as the default encoding for
> things like file-visiting buffers without causing other potential
> problems?

Put this in your .emacs:

  (prefer-coding-system 'utf-8)

or even

  (setq-default buffer-file-coding-system 'utf-8-dos)

(the latter doesn't affect process I/O).

> > I cannot reproduce this here.  What font is used to display that
> > character?  You can find this out with "C-u C-x =" with the cursor on
> > the character.
> 
> uniscribe:-outline-PragmataPro
> Mono-normal-normal-normal-mono-15-*-*-*-c-*-iso8859-1 (#x8FC)

And which font is used if you don't set your language-environment to
UTF-8?

> If it doesn't work for you off the bat, do this after inserting the character:
> 
> M-: (put-text-property 1 2 'face font-lock-warning-face)
> 
> Then try moving around again.

Doesn't change anything here.

I do see slow redisplay on another system, where Symbola is not
installed, and the BatangChe font is then used.  But there I see slow
redisplay whether or not I set the language-environment to UTF-8.

> > On my system, I have the Symbola font installed, which is used for
> > displaying this character, and the problem doesn't happen.
> >
> > As another thing to try, set inhibit-compacting-font-caches to a
> > non-nil value, and see if that helps.
> 
> This seems to help

By "this" do you mean installing Symbola or setting
inhibit-compacting-font-caches non-nil?

> though the fact it only happens due to changes with encoding and/or
> font locking makes me suspicious.

It could be that the default language-environment causes a different
font to be used for that character.





  parent reply	other threads:[~2017-10-12 10:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-12  9:15 bug#28795: 25.2; UTF-8 language environment causes extreme sluggishness Mark Laws
2017-10-12  9:31 ` Eli Zaretskii
     [not found]   ` <CADemMPPf-S8XpYJygf5DUYKB7txbHNtjNE+GJORtZLkZbsDkaQ@mail.gmail.com>
2017-10-12 10:00     ` Eli Zaretskii [this message]
2017-10-12 10:31       ` Mark Laws
2017-10-12 11:55         ` Eli Zaretskii
2017-10-12 12:17           ` Mark Laws
2017-10-12 12:37             ` 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=83h8v4n0so.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=28795@debbugs.gnu.org \
    --cc=mdl@60hz.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).