From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28795: 25.2; UTF-8 language environment causes extreme sluggishness Date: Thu, 12 Oct 2017 14:55:44 +0300 Message-ID: <83bmlcmvgf.fsf@gnu.org> References: <86376oiv5i.fsf@60hz.org> <83infkn251.fsf@gnu.org> <83h8v4n0so.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1507809437 23642 195.159.176.226 (12 Oct 2017 11:57:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 11:57:17 +0000 (UTC) Cc: 28795@debbugs.gnu.org To: Mark Laws Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 12 13:57:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2c6r-0004Zd-3S for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 13:57:05 +0200 Original-Received: from localhost ([::1]:44959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2c6y-0004fz-Db for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 07:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2c6t-0004fs-1R for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 07:57:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2c6o-0000rS-VS for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 07:57:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54501) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2c6o-0000rG-Rp for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 07:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2c6o-00050H-Hm for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 07:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Oct 2017 11:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28795-submit@debbugs.gnu.org id=B28795.150780936719148 (code B ref 28795); Thu, 12 Oct 2017 11:57:02 +0000 Original-Received: (at 28795) by debbugs.gnu.org; 12 Oct 2017 11:56:07 +0000 Original-Received: from localhost ([127.0.0.1]:34949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2c5v-0004ym-1h for submit@debbugs.gnu.org; Thu, 12 Oct 2017 07:56:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2c5s-0004yG-Pj for 28795@debbugs.gnu.org; Thu, 12 Oct 2017 07:56:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2c5j-0000Is-71 for 28795@debbugs.gnu.org; Thu, 12 Oct 2017 07:55:59 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2c5j-0000Im-2q; Thu, 12 Oct 2017 07:55:55 -0400 Original-Received: from [176.228.60.248] (port=1814 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e2c5i-0002Cb-ES; Thu, 12 Oct 2017 07:55:54 -0400 In-reply-to: (message from Mark Laws on Thu, 12 Oct 2017 19:31:57 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138263 Archived-At: > From: Mark Laws > Date: Thu, 12 Oct 2017 19:31:57 +0900 > Cc: 28795@debbugs.gnu.org > > > And which font is used if you don't set your language-environment to > > UTF-8? > > uniscribe:-outline-Malgun > Gothic-bold-normal-normal-sans-15-*-*-*-p-*-ksc5601.1987-0 (#xF7) OK, so now we know why you get slow redisplay only with UTF-8 as language-environment: doing that changes the preferred charset, which affects font selection (Malgun Gothic is for the Korean character set, as you see from the end of its spec, so it is rejected when the preferred charset is unicode-bmp or Unicode). > If I use (prefer-coding-system 'utf-8), I do not get the slowness > anymore, even if inhibit-compacting-font-caches is nil, and even after > propertizing the text. However, the font changes from PragmataPro Mono > to Malgun Gothic, which seems odd too. Why is that odd? Emacs selects fonts according to what it thinks is the user's preferences, and by default those preferences are deduced from the culture defined in the environment. > if I use both (set-locale-environment "English") and > (prefer-coding-system 'utf-8), the issue returns. "English" nowadays defaults to Unicode as well. In general, there should be no reason for you to set a non-default language-environment on Windows, because Emacs takes that from your system's setup. If you just want to control the default encodings, use prefer-coding-system, its effect is limited to encodings, and doesn't change anything else. Is there any other problem left to solve, or we can close this bug report?