From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#25279: 26.0.50; Slowdown/crash on certain characters Date: Mon, 26 Dec 2016 20:18:39 +0000 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1482783625 340 195.159.176.226 (26 Dec 2016 20:20:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Dec 2016 20:20:25 +0000 (UTC) To: 25279@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 26 21:20:18 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 1cLbkk-0007Bu-G4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Dec 2016 21:20:14 +0100 Original-Received: from localhost ([::1]:51586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLbkp-0000g8-6I for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Dec 2016 15:20:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLbki-0000fp-2R for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2016 15:20:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLbkd-00070K-UE for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2016 15:20:11 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40604) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cLbkd-0006zz-Qv for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2016 15:20:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cLbkY-000754-CJ for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2016 15:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Dec 2016 20:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25279 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25279-submit@debbugs.gnu.org id=B25279.148278355727146 (code B ref 25279); Mon, 26 Dec 2016 20:20:02 +0000 Original-Received: (at 25279) by debbugs.gnu.org; 26 Dec 2016 20:19:17 +0000 Original-Received: from localhost ([127.0.0.1]:56003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLbjp-00073m-Df for submit@debbugs.gnu.org; Mon, 26 Dec 2016 15:19:17 -0500 Original-Received: from mail-vk0-f50.google.com ([209.85.213.50]:33287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLbjn-00073Y-RM for 25279@debbugs.gnu.org; Mon, 26 Dec 2016 15:19:16 -0500 Original-Received: by mail-vk0-f50.google.com with SMTP id 137so203614226vkl.0 for <25279@debbugs.gnu.org>; Mon, 26 Dec 2016 12:19:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=sYD+mnWH6ylgLe3PfBr3/PJVJdmSruVRgJ7KG1tJQjA=; b=oylMWpQKuIAEF2krQKI6rs9rq5zbAG4eymJ9oFnukfOqaxfxglvRQruW8FyiVqlzD/ FNPcWXOJfuJ0nVBG3LaUqa23FY0dk15tO/lE14C1oVxQJc8i3YGmiH6gJtxx+bQKdhOH hsI87IlAiInJE7YauaZBtAHpsybiNd36GeiuVUv0YQrppxTv3IGQKsNsZAvFBMmVsVd5 GyJJO43nvkNHyb1jxO1IhrHOs1M3iuAkCIHcCyIgDnlXRW5UuCP1uVWQMxmBNBQZ+WGo ZkeR8Q2IJPWZiSFhr11e5NSMglIparREeQQGYeDPc0O2hN1uHqBKrLTh/0gd3TXzX+2F 67+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=sYD+mnWH6ylgLe3PfBr3/PJVJdmSruVRgJ7KG1tJQjA=; b=UJtd/jFkLhA14f5aRPfvQo0I+NqVbu9vGtCiT9QP3n8zsrjU7NXxNrYYDsExdUUxZU G5RkMk3HB5Ro4Q9ZTfT318VrEn3miJfKac2ZksJaLr2Xhl8pkZD+XWPri0y5OzuafUyM iyDsqrUy8Ij71nKEQpNDVWP3xRQaDTzn1cWFitOSoKWSVBGvBoXYjPhuOV0DKk2Ihye8 WcQ6zj18jMfbCgInQIVALWJZoK9gJ0/SBQNl5cVAZERpEQORkOLU7wwQ1sVRhuuZ1xYk ag0Quvz6bsvqZ2Tzz+FL844VibNksYlKjgbX26UWk9VSB5gyCBW2NDIUYF6vKaUJxh/r RHUQ== X-Gm-Message-State: AIkVDXIf3XtZ4Mc1F9IXz70mP1Nlw1u6ljBNdD6EALmjnWGD0fnHSI5T5BFvnU9lJeOOX5yjUMiqxv9Eicgk6Q== X-Received: by 10.31.152.67 with SMTP id a64mr9978580vke.79.1482783550068; Mon, 26 Dec 2016 12:19:10 -0800 (PST) Original-Received: by 10.176.71.29 with HTTP; Mon, 26 Dec 2016 12:18:39 -0800 (PST) In-Reply-To: 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:127464 Archived-At: Two corrections inline below. On 26 December 2016 at 20:09, Richard Copley wrote: > From emacs -Q: > Insert MUSIC FLAT SIGN or RIGHTWARDS DOUBLE ARROW in a buffer. > Move point around in the buffer or edit the buffer text. > Emacs gets very slow, consuming a lot of CPU. > Sometimes it completely grinds to a halt. > > MUSIC FLAT SIGN and RIGHTWARDS DOUBLE ARROW are examples > that cause this problem for me. MUSIC SHARP SIGN and > RIGHTWARDS ARROW are examples that do not cause a problem. > > Below are the contents of the describe-char buffer for these > characters (with the character itself asterisked out in each > case so as not to crash my Emacs while I edit this mail). > > Note the categories. They seem illogical. Are they supposed > to be like that? Why? > > Note the fonts. Could there be a bug in "Malgun Gothic"? > As far as I know it's a Korean font installed by default with Windows. > Could there be a bug in "Consolas"? Why does Emacs find the MUSIC > SHARP SIGN glyph but not the MUSIC FLAT SIGN glyph from Consolas? Oops: "Consolas" doesn't have either character. "MS Gothic" has a glyph for MUSIC SHARP SIGN but not for MUSIC FLAT SIGN. That goes some way towards explaining why it takes longer to find a glyph for MUSIC FLAT SIGN. (But I still don't know what to do about it.) > I asked about this on IRC and there exist Windows Emacs users who > don't have the issue, so it may be influenced by environmental > factors. > > Is there anything I can do to avoid it? > Install better fonts? (Any suggestions?) > Uninstall bad fonts? > Configure Emacs to search fonts in a different order? > > ** RIGHTWARDS DOUBLE ARROW (bad!): Oops: I previously gave the describe-char buffer for RIGHTWARDS ARROW. Here's the text for RIGHTWARDS DOUBLE ARROW: position: 148 of 150 (98%), column: 0 character: * (displayed as *) (codepoint 8658, #o20722, #x21d2) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0x21D2 script: symbol syntax: . which means: punctuation category: .:Base, h:Korean, j:Japanese to input: type "C-x 8 RET 21d2" or "C-x 8 RET RIGHTWARDS DOUBLE ARROW" buffer code: #xE2 #x87 #x92 file code: not encodable by coding system iso-latin-1-dos display: by this font (glyph code) uniscribe:-outline-Malgun Gothic-normal-normal-normal-sans-11-*-*-*-p-*-ksc5601.1987-0 (#x22D) Character code properties: customize what to show name: RIGHTWARDS DOUBLE ARROW old-name: RIGHT DOUBLE ARROW general-category: Sm (Symbol, Math) decomposition: (8658) ('*') > ** MUSIC FLAT SIGN (bad!): > > position: 146 of 148 (98%), column: 0 > character: * (displayed as *) (codepoint 9837, #o23155, #x266d) > preferred charset: unicode (Unicode (ISO10646)) > code point in charset: 0x266D > script: symbol > syntax: _ which means: symbol > category: .:Base, h:Korean, j:Japanese > to input: type "C-x 8 RET 266d" or "C-x 8 RET MUSIC FLAT SIGN" > buffer code: #xE2 #x99 #xAD > file code: not encodable by coding system iso-latin-1-dos > display: by this font (glyph code) > uniscribe:-outline-Malgun > Gothic-normal-normal-normal-sans-11-*-*-*-p-*-ksc5601.1987-0 (#xCF2) > > Character code properties: customize what to show > name: MUSIC FLAT SIGN > old-name: FLAT > general-category: So (Symbol, Other) > decomposition: (9837) ('*') > > ** MUSIC SHARP SIGN (ok!): > > position: 148 of 152 (97%), column: 0 > character: * (displayed as *) (codepoint 9839, #o23157, #x266f) > preferred charset: unicode (Unicode (ISO10646)) > code point in charset: 0x266F > script: symbol > syntax: _ which means: symbol > category: .:Base, j:Japanese > to input: type "C-x 8 RET 266f" or "C-x 8 RET MUSIC SHARP SIGN" > buffer code: #xE2 #x99 #xAF > file code: not encodable by coding system iso-latin-1-dos > display: by this font (glyph code) > uniscribe:-outline-MS > Gothic-normal-normal-normal-mono-11-*-*-*-c-*-gb2312.1980*-* (#x761) > > Character code properties: customize what to show > name: MUSIC SHARP SIGN > old-name: SHARP > general-category: Sm (Symbol, Math) > decomposition: (9839) ('*') > > RIGHTWARDS ARROW (ok!): > > position: 148 of 150 (98%), column: 0 > character: * (displayed as *) (codepoint 8594, #o20622, #x2192) > preferred charset: unicode (Unicode (ISO10646)) > code point in charset: 0x2192 > script: symbol > syntax: . which means: punctuation > category: .:Base, c:Chinese, h:Korean, j:Japanese > to input: type "C-x 8 RET 2192" or "C-x 8 RET RIGHTWARDS ARROW" > buffer code: #xE2 #x86 #x92 > file code: not encodable by coding system iso-latin-1-dos > display: by this font (glyph code) > uniscribe:-outline-Consolas-normal-normal-normal-mono-11-*-*-*-c-*-iso8859-1 > (#x365) > > Character code properties: customize what to show > name: RIGHTWARDS ARROW > old-name: RIGHT ARROW > general-category: Sm (Symbol, Math) > decomposition: (8594) ('*') > > In GNU Emacs 26.0.50.10 (x86_64-w64-mingw32) > of 2016-12-26 built on MACHINE > Repository revision: a8a24b5be7f8cb6741f28000ae34c5b39ad9644e > Windowing system distributor 'Microsoft Corp.', version 10.0.14393 > Recent messages: > Making completion list... [3 times] > Quit [2 times] > Mark saved where search started [2 times] > delete-backward-char: Text is read-only > Making completion list... [6 times] > uncompressing eintr.info.gz...done > C-c f is undefined > Making completion list... > Quit [7 times] > nil > Quit > Configured using: > 'configure --prefix=/mingw64 --with-modules --without-imagemagick > --enable-locallisppath=/site-lisp > PKG_CONFIG_PATH=/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig' > > Configured features: > XPM JPEG TIFF GIF PNG RSVG SOUND DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB > TOOLKIT_SCROLL_BARS MODULES > > Important settings: > value of $LANG: en_GB.UTF-8 > locale-coding-system: cp1252 > > Major mode: Lisp Interaction > > Minor modes in effect: > tooltip-mode: t > global-eldoc-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > > Load-path shadows: > None found. > > Features: > (shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv > bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib > dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa > derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode > mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader > sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils > jka-compr misearch multi-isearch info easymenu time-date mule-util > tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type > mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars > term/common-win tool-bar dnd fontset image regexp-opt fringe > tabulated-list replace newcomment text-mode elisp-mode lisp-mode > prog-mode register page menu-bar rfn-eshadow isearch timer select > scroll-bar mouse jit-lock font-lock syntax facemenu font-core > term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang > vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 > hebrew greek romanian slovak czech european ethiopic indian cyrillic > chinese composite charscript case-table epa-hook jka-cmpr-hook help > simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button > faces cus-face macroexp files text-properties overlay sha1 md5 base64 > format env code-pages mule custom widget hashtable-print-readable > backquote w32notify dbusbind w32 multi-tty make-network-process emacs) > > Memory information: > ((conses 16 105644 8301) > (symbols 56 20593 0) > (miscs 48 44 180) > (strings 32 22316 4034) > (string-bytes 1 651472) > (vectors 16 14275) > (vector-slots 8 449241 5484) > (floats 8 184 173) > (intervals 56 414 1299) > (buffers 976 12))