From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Anders Lindgren <andlind@gmail.com>
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: <CABr8ebbLKP8As7ud-u3wmJ4cuua1NhKX8_yGpfSd7-1p1ez+bA@mail.gmail.com>
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: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	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 <Debian-debbugs@debbugs.gnu.org>) 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 <Debian-debbugs@debbugs.gnu.org>) 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 <Debian-debbugs@debbugs.gnu.org>) 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 <Debian-debbugs@debbugs.gnu.org>) 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 <andlind@gmail.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Fri, 21 Feb 2014 10:02:02 +0000
Resent-Message-ID: <handler.16828.B.139297691220245@debbugs.gnu.org>
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 <debbugs-submit-bounces@debbugs.gnu.org>)
	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 <andlind@gmail.com>) 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 <andlind@gmail.com>) 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 <andlind@gmail.com>) 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 <andlind@gmail.com>) 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 <andlind@gmail.com>) 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 <andlind@gmail.com>) 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 <bug-gnu-emacs@gnu.org>; 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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=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: <http://permalink.gmane.org/gmane.emacs.bugs/85966>

--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:
<escape> : 3 2 0 0 <return> <escape> x r e p o s r
t - <backspace> <backspace> <backspace> t <backspace>
<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 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

<div dir=3D"ltr"><div>The command `eval-expression&#39; prints integer resu=
lts both as decimal, hex, octal, and (sometimes) as a character.</div><div>=
<br></div><div>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.</div>
<div><br></div><div>Steps to repeat:</div><div><br></div><div>=A0 =A0 M-: 3=
200 RET</div><div><br></div><div>Here, it takes 22.5 seconds for Emacs to r=
espond: 3200 (#o6200, #xc80)</div><div><br></div><div>Under 24.3 this was f=
ast (well under a second).</div>
<div><br></div><div>This is on OS X 10.9 -- I haven&#39;t got access to any=
 other system to test this on.</div><div><br></div><div><br></div><div>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&#39;t fi=
gured out when and how this occurs. Anyway, when it does, the *Messages* bu=
ffer look like:</div>
<div>=A0<br></div><div><br></div><div><div>3200</div><div>=A0(#o6200, #xc80=
)</div><div>3200 (#o6200, #xc80) [2 times]</div></div><div><br></div><div>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).</div>
<div><br></div><div>Sincerely,</div><div>=A0 =A0 Anders Lindgren</div><div>=
<br></div><div>In GNU Emacs 24.3.50.2 (x86_64-apple-darwin13.0.0, NS apple-=
appkit-1265.00)</div><div>=A0of 2014-02-16 on macpro.lan</div><div>Reposito=
ry revision: 116451 jan.h.d@swipnet.se-20140216095141-cop794qd0bf30tmt</div=
>
<div>Windowing system distributor `Apple&#39;, version 10.3.1265</div><div>=
Configured using:</div><div>=A0`configure --with-ns&#39;</div><div><br></di=
v><div>Important settings:</div><div>=A0 value of $LC_CTYPE: UTF-8</div><di=
v>
=A0 locale-coding-system: utf-8-unix</div><div><br></div><div>Major mode: L=
isp Interaction</div><div><br></div><div>Minor modes in effect:</div><div>=
=A0 tooltip-mode: t</div><div>=A0 electric-indent-mode: t</div><div>=A0 mou=
se-wheel-mode: t</div>
<div>=A0 tool-bar-mode: t</div><div>=A0 menu-bar-mode: t</div><div>=A0 file=
-name-shadow-mode: t</div><div>=A0 global-font-lock-mode: t</div><div>=A0 f=
ont-lock-mode: t</div><div>=A0 blink-cursor-mode: t</div><div>=A0 auto-comp=
osition-mode: t</div>
<div>=A0 auto-encryption-mode: t</div><div>=A0 auto-compression-mode: t</di=
v><div>=A0 line-number-mode: t</div><div>=A0 transient-mark-mode: t</div><d=
iv><br></div><div>Recent input:</div><div>&lt;escape&gt; : 3 2 0 0 &lt;retu=
rn&gt; &lt;escape&gt; x r e p o s r=A0</div>
<div>t - &lt;backspace&gt; &lt;backspace&gt; &lt;backspace&gt; t &lt;backsp=
ace&gt;=A0</div><div>&lt;backspace&gt; r t - e m &lt;tab&gt; &lt;return&gt;=
</div><div><br></div><div>Recent messages:</div><div>For information about =
GNU Emacs and the GNU system, type C-h C-a.</div>
<div>3200 (#o6200, #xc80)</div><div>&lt;s-backspace&gt; is undefined [2 tim=
es]</div><div>s-b is undefined</div><div><br></div><div>Load-path shadows:<=
/div><div>None found.</div><div><br></div><div>Features:</div><div>(shadow =
sort gnus-util mail-extr emacsbug message format-spec rfc822 mml</div>
<div>easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231</div=
><div>mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums</=
div><div>mm-util help-fns mail-prsvr mail-utils mule-util time-date tooltip=
</div>
<div>electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win</d=
iv><div>tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomm=
ent</div><div>lisp-mode prog-mode register page menu-bar rfn-eshadow timer =
select</div>
<div>scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame ch=
am</div><div>georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet=
 lao</div><div>korean japanese hebrew greek romanian slovak czech european =
ethiopic</div>
<div>indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple<=
/div><div>abbrev minibuffer nadvice loaddefs button faces cus-face macroexp=
 files</div><div>text-properties overlay sha1 md5 base64 format env code-pa=
ges mule</div>
<div>custom widget hashtable-print-readable backquote make-network-process<=
/div><div>cocoa ns multi-tty emacs)</div><div><br></div><div><br></div></di=
v>

--f46d044404921e0f4204f2e7b51d--