From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#16828: 24.3.50; eval-expression, character representation of integer results time-consuming Date: Fri, 21 Feb 2014 11:01:36 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044404921e0f4204f2e7b51d X-Trace: ger.gmane.org 1392976923 15583 80.91.229.3 (21 Feb 2014 10:02:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Feb 2014 10:02:03 +0000 (UTC) To: 16828@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 21 11:02:11 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WGmvq-0006QJ-DH for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Feb 2014 11:02:10 +0100 Original-Received: from localhost ([::1]:43395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGmvq-0003Hx-05 for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Feb 2014 05:02:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGmvl-0003EP-0C for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 05:02:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGmvj-00084u-Bu for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 05:02:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGmvj-00084q-8y for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 05:02:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WGmvi-0005Gy-IA for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 05:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Feb 2014 10:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16828 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.139297691220245 (code B ref -1); Fri, 21 Feb 2014 10:02:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Feb 2014 10:01:52 +0000 Original-Received: from localhost ([127.0.0.1]:34281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGmvX-0005GS-0g for submit@debbugs.gnu.org; Fri, 21 Feb 2014 05:01:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36938) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGmvU-0005GA-6U for submit@debbugs.gnu.org; Fri, 21 Feb 2014 05:01:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGmvN-0007yv-FB for submit@debbugs.gnu.org; Fri, 21 Feb 2014 05:01:42 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGmvN-0007yr-CC for submit@debbugs.gnu.org; Fri, 21 Feb 2014 05:01:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGmvM-0002qC-06 for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 05:01:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGmvK-0007yc-Pp for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 05:01:39 -0500 Original-Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:39909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGmvK-0007yW-FA for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 05:01:38 -0500 Original-Received: by mail-wi0-f180.google.com with SMTP id hm4so626332wib.7 for ; Fri, 21 Feb 2014 02:01:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=jSYaIuZUv4qtYwg+my6gSaxMwCNpyedhsh/kj8s2QYU=; b=OkwEV5/UXEIHrokhZ4EQjdi14eel4Ds7H0SOdQfPwZYlJMtB6KfHn0a4ieuysTWchm ZLYOJLhe4Z2TFnonmxXjwtw8l7+yV5ispBY07D2LYlWxSSkE82wMz1b0DB+47np2OyWZ ncg5S6XYPokzJcbr74Zj0uFjucuOzCY+nXapsDbXT5Pjf0x7yQ7g/H1LofCNsNZ0Nvyl t2Os7RDV9gNyrgsZgRLcVURJETYmrF3SkO6sbswb8peKTpPUaSFZm1UgUGlBO9sUyUTP NXtCtBDvQ29wanYkRq27gHSLiw078lbhmv7cMgCpYXjxt2tPibq8DaU1E83CaasbgrBC okGg== X-Received: by 10.180.84.73 with SMTP id w9mr2345139wiy.58.1392976896854; Fri, 21 Feb 2014 02:01:36 -0800 (PST) Original-Received: by 10.217.110.131 with HTTP; Fri, 21 Feb 2014 02:01:36 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85966 Archived-At: --f46d044404921e0f4204f2e7b51d Content-Type: text/plain; charset=ISO-8859-1 The command `eval-expression' prints integer results both as decimal, hex, octal, and (sometimes) as a character. Some integers take a very long time to print, probably due to the fact that it takes a long time to find a suitable font to render the character variant in. The slow-down typically only occur once. Steps to repeat: M-: 3200 RET Here, it takes 22.5 seconds for Emacs to respond: 3200 (#o6200, #xc80) Under 24.3 this was fast (well under a second). This is on OS X 10.9 -- I haven't got access to any other system to test this on. In addition, sometimes it looks like the echo area splits the text into two parts, effective only showing the second part. Unfortunately, I haven't figured out when and how this occurs. Anyway, when it does, the *Messages* buffer look like: 3200 (#o6200, #xc80) 3200 (#o6200, #xc80) [2 times] A simple solution would be to suppress printing of characters outside the 0-255 range (or at least give the user an option to do so). Sincerely, Anders Lindgren In GNU Emacs 24.3.50.2 (x86_64-apple-darwin13.0.0, NS apple-appkit-1265.00) of 2014-02-16 on macpro.lan Repository revision: 116451 jan.h.d@swipnet.se-20140216095141-cop794qd0bf30tmt Windowing system distributor `Apple', version 10.3.1265 Configured using: `configure --with-ns' Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-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 Recent input: : 3 2 0 0 x r e p o s r t - t r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. 3200 (#o6200, #xc80) is undefined [2 times] s-b is undefined Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils mule-util time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process cocoa ns multi-tty emacs) --f46d044404921e0f4204f2e7b51d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The command `eval-expression' prints integer resu= lts both as decimal, hex, octal, and (sometimes) as a character.
=
Some integers take a very long time to print, probably due t= o the fact that it takes a long time to find a suitable font to render the = character variant in. The slow-down typically only occur once.

Steps to repeat:

=A0 =A0 M-: 3= 200 RET

Here, it takes 22.5 seconds for Emacs to r= espond: 3200 (#o6200, #xc80)

Under 24.3 this was f= ast (well under a second).

This is on OS X 10.9 -- I haven't got access to any= other system to test this on.


In a= ddition, sometimes it looks like the echo area splits the text into two par= ts, effective only showing the second part. Unfortunately, I haven't fi= gured out when and how this occurs. Anyway, when it does, the *Messages* bu= ffer look like:
=A0

3200
=A0(#o6200, #xc80= )
3200 (#o6200, #xc80) [2 times]

A= simple solution would be to suppress printing of characters outside the 0-= 255 range (or at least give the user an option to do so).

Sincerely,
=A0 =A0 Anders Lindgren
=
In GNU Emacs 24.3.50.2 (x86_64-apple-darwin13.0.0, NS apple-= appkit-1265.00)
=A0of 2014-02-16 on macpro.lan
Reposito= ry revision: 116451 jan.h.d@swipnet.se-20140216095141-cop794qd0bf30tmt
Windowing system distributor `Apple', version 10.3.1265
= Configured using:
=A0`configure --with-ns'

Important settings:
=A0 value of $LC_CTYPE: UTF-8
=A0 locale-coding-system: utf-8-unix

Major mode: L= isp Interaction

Minor modes in effect:
= =A0 tooltip-mode: t
=A0 electric-indent-mode: t
=A0 mou= se-wheel-mode: t
=A0 tool-bar-mode: t
=A0 menu-bar-mode: t
=A0 file= -name-shadow-mode: t
=A0 global-font-lock-mode: t
=A0 f= ont-lock-mode: t
=A0 blink-cursor-mode: t
=A0 auto-comp= osition-mode: t
=A0 auto-encryption-mode: t
=A0 auto-compression-mode: t
=A0 line-number-mode: t
=A0 transient-mark-mode: t

Recent input:
<escape> : 3 2 0 0 <retu= rn> <escape> x r e p o s r=A0
t - <backspace> <backspace> <backspace> t <backsp= ace>=A0
<backspace> r t - e m <tab> <return>=

Recent messages:
For information about = GNU Emacs and the GNU system, type C-h C-a.
3200 (#o6200, #xc80)
<s-backspace> is undefined [2 tim= es]
s-b is undefined

Load-path shadows:<= /div>
None found.

Features:
(shadow = sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils mule-util time-date tooltip=
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomm= ent
lisp-mode prog-mode register page menu-bar rfn-eshadow timer = select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame ch= am
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet= lao
korean japanese hebrew greek romanian slovak czech european = ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple<= /div>
abbrev minibuffer nadvice loaddefs button faces cus-face macroexp= files
text-properties overlay sha1 md5 base64 format env code-pa= ges mule
custom widget hashtable-print-readable backquote make-network-process<= /div>
cocoa ns multi-tty emacs)


--f46d044404921e0f4204f2e7b51d--