unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Chris Stacy <cstacy@dtpq.com>
Cc: 21131@debbugs.gnu.org
Subject: bug#21131: minibuffer repl delay
Date: Sat, 25 Jul 2015 08:44:43 +0200	[thread overview]
Message-ID: <m2zj2kzqg4.fsf@linux-m68k.org> (raw)
In-Reply-To: <FFF03935-2868-4BF8-8DCB-10A2E27BD620@dtpq.com> (Chris Stacy's message of "Fri, 24 Jul 2015 21:40:23 -0400")

Chris Stacy <cstacy@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@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





  reply	other threads:[~2015-07-25  6:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-25  1:40 bug#21131: minibuffer repl delay Chris Stacy
2015-07-25  6:44 ` Andreas Schwab [this message]
2015-07-25  8:20   ` Chris Stacy
2015-07-25 18:28   ` Glenn Morris
2015-07-25 18:48     ` Eli Zaretskii
2016-07-09 22:13 ` bug#21131: bug#23930: 25.0.95; "M-: 3072 RET" very slow to echo "3072 Richard Copley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2zj2kzqg4.fsf@linux-m68k.org \
    --to=schwab@linux-m68k.org \
    --cc=21131@debbugs.gnu.org \
    --cc=cstacy@dtpq.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).