From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Georges Ko Newsgroups: gmane.emacs.bugs Subject: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters Date: Sat, 08 Oct 2016 01:01:40 +0800 Organization: gko.net Message-ID: References: <83zimginxd.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1475862250 5407 195.159.176.226 (7 Oct 2016 17:44:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2016 17:44:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (cygwin) Hamster/2.0.0.1 To: 24634@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 19:44:04 2016 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 1bsZBd-0008AW-6a for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2016 19:43:57 +0200 Original-Received: from localhost ([::1]:37577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsZBb-0000ar-KM for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2016 13:43:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsYby-0002rK-Tb for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 13:07:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsYbu-0006jf-I6 for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 13:07:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsYbu-0006jb-E4 for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 13:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bsYbu-0001nj-9g for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 13:07:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Georges Ko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Oct 2016 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24634 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14758599906883 (code B ref -1); Fri, 07 Oct 2016 17:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Oct 2016 17:06:30 +0000 Original-Received: from localhost ([127.0.0.1]:48019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsYbN-0001mw-Mi for submit@debbugs.gnu.org; Fri, 07 Oct 2016 13:06:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsYbL-0001mk-HY for submit@debbugs.gnu.org; Fri, 07 Oct 2016 13:06:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsYbE-000639-6t for submit@debbugs.gnu.org; Fri, 07 Oct 2016 13:06:22 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsYbE-00061o-3T for submit@debbugs.gnu.org; Fri, 07 Oct 2016 13:06:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsYbB-00027w-1J for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 13:06:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsYb7-0005wQ-Ir for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 13:06:16 -0400 Original-Received: from [195.159.176.226] (port=42859 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsYb7-0005sn-81 for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 13:06:13 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bsYax-0008OZ-PS for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 19:06:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 289 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:UeQtYzHBA3HT5gsbaClO7czv44g= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:124167 Archived-At: Eli Zaretskii writes: >> ﹏ >> >> >> >> ⌇ > > What font(s) is/are used on your system to display these characters? I did some tests with "runemacs -Q", with the following results as an org-mode buffer. I can mitigate the problem by using language environment "English" and font "MingLiu-SIZE" (2nd step), the worst case being language environment "UTF-8" and font "Courier NEw-SIZE" (3rd step). * Summary |---------+----------+-------+------+------+---------------------------------------------------------| | Step | current- | frame | WAVY | WAVY | Font of set-frame-font, WAVY LINE and WAVY LOW LINE | | | language | font | LINE | LOW | O=outline NNN=normal-normal-normal | | | environ | | | LINE | | |---------+----------+-------+------+------+---------------------------------------------------------| | Initial | English | CN-10 | | | -O-Courier New-NNN-mono-13-*-*-*-c-*-iso8859-1 (#x1E) | | | | | OK | | -O-Symbola-NNN-serif-13-*-*-*-p-*-iso8859-1 (#x640) | | | | | | NOK | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso10646-1 (#x7096) | |---------+----------+-------+------+------+---------------------------------------------------------| | (s-f-f | English | ML-10 | | | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso8859-1 (#x29) | | ML-10) | | | OK | | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso8859-1 (#x286) | | | | | | OK | -O-MingLiU-NNN-mono-13-*-*-*-c-*-gb2312.1980-0 (#x7096) | |---------+----------+-------+------+------+---------------------------------------------------------| | s-l-e | UTF-8 | ML-10 | | | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso8859-1 (#x55) | | UTF-8 | | | OK | | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso8859-1 (#x286) | | | | | | NOK | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso10646-1 (#x7096) | |---------+----------+-------+------+------+---------------------------------------------------------| | (s-f-f | UTF-8 | CN-10 | | | -O-Courier New-NNN-mono-13-*-*-*-c-*-iso8859-1 (#x03) | | CN-10) | | | NOK | | -O-Symbola-NNN-serif-13-*-*-*-p-*-iso8859-1 (#x640) | | | | | | NOK | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso10646-1 (#x7096) | |---------+----------+-------+------+------+---------------------------------------------------------| - WAVY LINE : script: symbol, category: .:Base - WAVY LOW LINE: script: han, category: .:Base, c:Chinese * Details ** Environment - C:\emacs-25.1-x86_64-w64-mingw32\bin\runemacs.exe -Q - current-language-environment -> "English" - w32-ansi-code-page -> 1252 - Character info (C-u C-x =) of some ASCII character in *scratch*: #+BEGIN_SRC fundamental position: 1 of 145 (0%), column: 0 character: ; (displayed as ;) (codepoint 59, #o73, #x3b) preferred charset: ascii (ASCII (ISO646 IRV)) code point in charset: 0x3B script: latin syntax: < which means: comment category: .:Base, a:ASCII, l:Latin, r:Roman to input: type "C-x 8 RET 3b" or "C-x 8 RET SEMICOLON" buffer code: #x3B file code: #x3B (encoded by coding system iso-latin-1-dos) display: by this font (glyph code) uniscribe:-outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x1E) Character code properties: customize what to show name: SEMICOLON general-category: Po (Punctuation, Other) decomposition: (59) (';') There are text properties here: face font-lock-comment-delimiter-face fontified nil #+END_SRC ** Initial setup - Insert "WAVY LINE": (insert-char 8967 1 t) - OK: no high CPU load - Character info of wavy line: #+BEGIN_SRC fundamental position: 184 of 189 (97%), column: 0 character: ⌇ (displayed as ⌇) (codepoint 8967, #o21407, #x2307) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0x2307 script: symbol syntax: . which means: punctuation category: .:Base to input: type "C-x 8 RET 2307" or "C-x 8 RET WAVY LINE" buffer code: #xE2 #x8C #x87 file code: not encodable by coding system iso-latin-1-dos display: by this font (glyph code) uniscribe:-outline-Symbola-normal-normal-normal-serif-13-*-*-*-p-*-iso8859-1 (#x640) Character code properties: customize what to show name: WAVY LINE general-category: So (Symbol, Other) decomposition: (8967) ('⌇') There are text properties here: fontified t #+END_SRC - Insert "WAVY LOW LINE": (insert-char 65103 1 t) - NOK: high CPU load - Character info of wavy low line: #+BEGIN_SRC fundamental position: 187 of 194 (96%), column: 0 character: ﹏ (displayed as ﹏) (codepoint 65103, #o177117, #xfe4f) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0xFE4F script: han syntax: w which means: word category: .:Base, c:Chinese to input: type "C-x 8 RET fe4f" or "C-x 8 RET WAVY LOW LINE" buffer code: #xEF #xB9 #x8F file code: not encodable by coding system iso-latin-1-dos display: by this font (glyph code) uniscribe:-outline-MingLiU-normal-normal-normal-mono-13-*-*-*-c-*-iso10646-1 (#x7096) Character code properties: customize what to show name: WAVY LOW LINE old-name: SPACING WAVY UNDERSCORE general-category: Pc (Punctuation, Connector) decomposition: (compat 95) (compat '_') There are text properties here: fontified t #+END_SRC - At this moment, Emacs is very jerky due to the presence of wavy low line character. ** (set-frame-font "MingLiu-10") - Right after switching to this font, everything is smooth again! - Check "WAVY LINE": - OK: no high CPU load - Character info of wavy line: #+BEGIN_SRC fundamental position: 184 of 194 (94%), column: 0 character: ⌇ (displayed as ⌇) (codepoint 8967, #o21407, #x2307) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0x2307 script: symbol syntax: . which means: punctuation category: .:Base to input: type "C-x 8 RET 2307" or "C-x 8 RET WAVY LINE" buffer code: #xE2 #x8C #x87 file code: not encodable by coding system iso-latin-1-dos display: by this font (glyph code) uniscribe:-outline-MingLiU-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x286) Character code properties: customize what to show name: WAVY LINE general-category: So (Symbol, Other) decomposition: (8967) ('⌇') There are text properties here: fontified t #+END_SRC - check "WAVY LOW LINE": - OK: no high CPU load - Character info of wavy low line: #+BEGIN_SRC fundamental position: 187 of 194 (96%), column: 0 character: ﹏ (displayed as ﹏) (codepoint 65103, #o177117, #xfe4f) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0xFE4F script: han syntax: w which means: word category: .:Base, c:Chinese to input: type "C-x 8 RET fe4f" or "C-x 8 RET WAVY LOW LINE" buffer code: #xEF #xB9 #x8F file code: not encodable by coding system iso-latin-1-dos display: by this font (glyph code) uniscribe:-outline-MingLiU-normal-normal-normal-mono-13-*-*-*-c-*-gb2312.1980-0 (#x7096) Character code properties: customize what to show name: WAVY LOW LINE old-name: SPACING WAVY UNDERSCORE general-category: Pc (Punctuation, Connector) decomposition: (compat 95) (compat '_') There are text properties here: fontified t #+END_SRC ** (set-language-environment) to UTF-8: - Check "WAVY LINE": - OK: no high CPU load - Character info of wavy line: #+BEGIN_SRC fundamental position: 184 of 196 (93%), column: 0 character: ⌇ (displayed as ⌇) (codepoint 8967, #o21407, #x2307) preferred charset: unicode-bmp (Unicode Basic Multilingual Plane (U+0000..U+FFFF)) code point in charset: 0x2307 script: symbol syntax: . which means: punctuation category: .:Base to input: type "C-x 8 RET 2307" or "C-x 8 RET WAVY LINE" buffer code: #xE2 #x8C #x87 file code: #xE2 #x8C #x87 (encoded by coding system utf-8-dos) display: by this font (glyph code) uniscribe:-outline-MingLiU-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x286) Character code properties: customize what to show name: WAVY LINE general-category: So (Symbol, Other) decomposition: (8967) ('⌇') There are text properties here: fontified t #+END_SRC - Check "WAVY LOW LINE": - NOK: high CPU load - Character info of wavy low line: #+BEGIN_SRC fundamental position: 189 of 196 (96%), column: 0 character: ﹏ (displayed as ﹏) (codepoint 65103, #o177117, #xfe4f) preferred charset: unicode-bmp (Unicode Basic Multilingual Plane (U+0000..U+FFFF)) code point in charset: 0xFE4F script: han syntax: w which means: word category: .:Base, c:Chinese to input: type "C-x 8 RET fe4f" or "C-x 8 RET WAVY LOW LINE" buffer code: #xEF #xB9 #x8F file code: #xEF #xB9 #x8F (encoded by coding system utf-8-dos) display: by this font (glyph code) uniscribe:-outline-MingLiU-normal-normal-normal-mono-13-*-*-*-c-*-iso10646-1 (#x7096) Character code properties: customize what to show name: WAVY LOW LINE old-name: SPACING WAVY UNDERSCORE general-category: Pc (Punctuation, Connector) decomposition: (compat 95) (compat '_') There are text properties here: fontified t #+END_SRC ** (set-frame-font "Courier New-10") - Check "WAVY LINE": - NOK: high CPU load - Character info of wavy line: #+BEGIN_SRC fundamental position: 184 of 196 (93%), column: 0 character: ⌇ (displayed as ⌇) (codepoint 8967, #o21407, #x2307) preferred charset: unicode-bmp (Unicode Basic Multilingual Plane (U+0000..U+FFFF)) code point in charset: 0x2307 script: symbol syntax: . which means: punctuation category: .:Base to input: type "C-x 8 RET 2307" or "C-x 8 RET WAVY LINE" buffer code: #xE2 #x8C #x87 file code: #xE2 #x8C #x87 (encoded by coding system utf-8-dos) display: by this font (glyph code) uniscribe:-outline-Symbola-normal-normal-normal-serif-13-*-*-*-p-*-iso8859-1 (#x640) Character code properties: customize what to show name: WAVY LINE general-category: So (Symbol, Other) decomposition: (8967) ('⌇') There are text properties here: fontified t #+END_SRC - Check "WAVY LOW LINE": - NOK: high CPU load - Character info of wavy low line: #+BEGIN_SRC fundamental position: 189 of 196 (96%), column: 0 character: ﹏ (displayed as ﹏) (codepoint 65103, #o177117, #xfe4f) preferred charset: unicode-bmp (Unicode Basic Multilingual Plane (U+0000..U+FFFF)) code point in charset: 0xFE4F script: han syntax: w which means: word category: .:Base, c:Chinese to input: type "C-x 8 RET fe4f" or "C-x 8 RET WAVY LOW LINE" buffer code: #xEF #xB9 #x8F file code: #xEF #xB9 #x8F (encoded by coding system utf-8-dos) display: by this font (glyph code) uniscribe:-outline-MingLiU-normal-normal-normal-mono-13-*-*-*-c-*-iso10646-1 (#x7096) Character code properties: customize what to show name: WAVY LOW LINE old-name: SPACING WAVY UNDERSCORE general-category: Pc (Punctuation, Connector) decomposition: (compat 95) (compat '_') There are text properties here: fontified t #+END_SRC -- Georges Ko gko@gko.net 2016-10-08