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 13:00:23 +0300 Message-ID: <83h8v4n0so.fsf@gnu.org> References: <86376oiv5i.fsf@60hz.org> <83infkn251.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1507802780 9670 195.159.176.226 (12 Oct 2017 10:06:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 10:06:20 +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 12:06:17 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 1e2aNa-0001if-Bi for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 12:06:14 +0200 Original-Received: from localhost ([::1]:44586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2aNh-0003Oh-BV for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 06:06:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2aIe-0007id-9J for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 06:01:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2aIZ-000672-Ob for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 06:01:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54434) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2aIZ-00066R-Ke for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 06:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2aIY-00007h-An for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 06:01:03 -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 10:01: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.1507802449443 (code B ref 28795); Thu, 12 Oct 2017 10:01:02 +0000 Original-Received: (at 28795) by debbugs.gnu.org; 12 Oct 2017 10:00:49 +0000 Original-Received: from localhost ([127.0.0.1]:34882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2aIJ-000073-Do for submit@debbugs.gnu.org; Thu, 12 Oct 2017 06:00:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2aIH-00006n-Ne for 28795@debbugs.gnu.org; Thu, 12 Oct 2017 06:00:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2aI6-0005hr-SW for 28795@debbugs.gnu.org; Thu, 12 Oct 2017 06:00:40 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2aI6-0005hf-Pc; Thu, 12 Oct 2017 06:00:34 -0400 Original-Received: from [176.228.60.248] (port=1575 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e2aI6-0007C1-5S; Thu, 12 Oct 2017 06:00:34 -0400 In-reply-to: (message from Mark Laws on Thu, 12 Oct 2017 18:40:25 +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:138257 Archived-At: [Please keep the bug address on the CC list.] > From: Mark Laws > Date: Thu, 12 Oct 2017 18:40:25 +0900 > > On Thu, Oct 12, 2017 at 6:31 PM, Eli Zaretskii wrote: > >> From: Mark Laws > >> 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.