GNU bug report logs -
#21131
printing character representation of numbers can be slow
Previous Next
Reported by: Chris Stacy <cstacy <at> dtpq.com>
Date: Sat, 25 Jul 2015 02:23:02 UTC
Severity: minor
Tags: fixed, patch
Merged with 16828,
19023,
23930
Found in versions 24.3.50, 24.4, 25.0.95
Fixed in version 26.1
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21131 in the body.
You can then email your comments to 21131 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21131
; Package
emacs
.
(Sat, 25 Jul 2015 02:23:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Chris Stacy <cstacy <at> dtpq.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 25 Jul 2015 02:23:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
In Aquamacs 3.2 GNU Emacs 24.4.51.2
(x86_64-apple-darwin14.0.0, NS apple-appkit-1343.14)
of 2014-11-07 (Aquamacs-3.2) on watson.local
Operating System: OS X Version 10.10.4 (Build 14E46)
Configured using:
`configure --with-ns --without-x 'CFLAGS=-arch x86_64 -O3 -g
-mtune=corei7 -mmacosx-version-min=10.6' 'LDFLAGS=-arch x86_64 -O3 -g
-mtune=corei7 -mmacosx-version-min=10.6''
Important settings:
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
savehist-mode: t
smart-frame-positioning-mode: t
aquamacs-autoface-mode: t
recentf-mode: t
show-paren-mode: t
tooltip-mode: t
electric-indent-mode: t
mouse-wheel-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
column-number-mode: t
line-number-mode: t
I think this still happens in vanilla 24.5 and doesn't have anything to do with Aquamacs.
Can’t remember when it first appeared but it’s not a very new bug.
When I eval something in the scratch buffer, I get the answer immediately:
(+ 1997 120 400)
2517
But doing the same thing in the minibuffer (eval-expression)
incurs a huge delay after I hit ENTER and before seeing the answer.
For example, the above expression took over 7 seconds before I saw:
2117 (#o4105, #x845)
I can't tell if it is just arithmetic because the delays seem to random.
Sometimes there doesn't seem to be a delay.
This always comes back right away:
(length '(a b c d e))
5 (#o5, #x5, ?\C-e)
Sometimes this has a 2 second delay and sometimes not:
(cons 'a 'b)
(a . b)
Sometimes the delay goes away for a while in some cases.
Although never for any addition where one of the operands
is more than 4 digits. This always has a 7 second delay:
(+ 1299 120)
Mysterious!
Makes it impossible to use the minibuffer as the always-available
quick desk calculator on the system, which I (used to) do constantly.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21131
; Package
emacs
.
(Sat, 25 Jul 2015 06:45:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 21131 <at> debbugs.gnu.org (full text, mbox):
Chris Stacy <cstacy <at> dtpq.com> writes:
> But doing the same thing in the minibuffer (eval-expression)
> incurs a huge delay after I hit ENTER and before seeing the answer.
> For example, the above expression took over 7 seconds before I saw:
>
> 2117 (#o4105, #x845)
>
> I can't tell if it is just arithmetic because the delays seem to random.
It comes from trying to render the number as a character, and it can
take some time to find a font that contains this character, if any.
> Sometimes there doesn't seem to be a delay.
> This always comes back right away:
>
> (length '(a b c d e))
> 5 (#o5, #x5, ?\C-e)
5 isn't a printable character, so it is rendered as ?\C-e.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21131
; Package
emacs
.
(Sat, 25 Jul 2015 16:48:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 21131 <at> debbugs.gnu.org (full text, mbox):
> On Jul 25, 2015, at 2:44 AM, Andreas Schwab <schwab <at> linux-m68k.org> wrote:
>
> Chris Stacy <cstacy <at> dtpq.com> writes:
>
>> But doing the same thing in the minibuffer (eval-expression)
>> incurs a huge delay after I hit ENTER and before seeing the answer.
>> For example, the above expression took over 7 seconds before I saw:
>>
>> 2117 (#o4105, #x845)
>>
>> I can't tell if it is just arithmetic because the delays seem to random.
>
> It comes from trying to render the number as a character, and it can
> take some time to find a font that contains this character, if any.
Is there some setting that would prevent it from doing that?
Maybe I should just write my own command; maybe there is something I can bind?
i just want a straight PRINT, like I get in *scratch*
Thank you!
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21131
; Package
emacs
.
(Sat, 25 Jul 2015 18:29:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 21131 <at> debbugs.gnu.org (full text, mbox):
Andreas Schwab wrote:
>> I can't tell if it is just arithmetic because the delays seem to random.
>
> It comes from trying to render the number as a character, and it can
> take some time to find a font that contains this character, if any.
I really think this behaviour should be optional, and off by default, or
on a separate command. I've seen it cause this same problem over and
over again. (I'm pretty sure there is at least one open bug report with
the same root cause.)
Personally I have never wanted/needed the character representation of
numbers printed in this way.
Changed bug title to 'printing character representation of numbers can be slow' from 'minibuffer repl delay'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 25 Jul 2015 18:40:02 GMT)
Full text and
rfc822 format available.
Severity set to 'minor' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 25 Jul 2015 18:40:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21131
; Package
emacs
.
(Sat, 25 Jul 2015 18:49:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 21131 <at> debbugs.gnu.org (full text, mbox):
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Sat, 25 Jul 2015 14:28:19 -0400
> Cc: 21131 <at> debbugs.gnu.org, Chris Stacy <cstacy <at> dtpq.com>
>
> I really think this behaviour should be optional, and off by default, or
> on a separate command.
Separate command or an optional behavior triggered by an argument,
would be fine, I think.
> Personally I have never wanted/needed the character representation of
> numbers printed in this way.
I have. One frequent (for me) use case is when I see a codepoint in
hex and want to know which character that is.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21131
; Package
emacs
.
(Sat, 09 Jul 2016 22:14:01 GMT)
Full text and
rfc822 format available.
Message #24 received at 21131 <at> debbugs.gnu.org (full text, mbox):
merge 23930 21131
thanks
Noam Postavsky wrote:
> Maybe a dup of http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21131
Looks like it! Thanks, merging.
Merged 21131 23930.
Request was from
Richard Copley <rcopley <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sat, 09 Jul 2016 22:19:01 GMT)
Full text and
rfc822 format available.
Added tag(s) patch.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Sun, 26 Mar 2017 03:45:02 GMT)
Full text and
rfc822 format available.
Added tag(s) fixed.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Fri, 19 May 2017 22:28:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 26.1, send any further explanations to
16828 <at> debbugs.gnu.org and Anders Lindgren <andlind <at> gmail.com>
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Fri, 19 May 2017 22:28:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 17 Jun 2017 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 5 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.