all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gareth Rees <gdr@garethrees.org>
To: 19023@debbugs.gnu.org
Subject: bug#19023: 24.4; Long pause when evaluating numeric expression
Date: Tue, 11 Nov 2014 21:41:57 +0000	[thread overview]
Message-ID: <25A71202-3D8C-43CB-AF1F-DCC33E0FFD36@garethrees.org> (raw)
In-Reply-To: <83y4rhla89.fsf@gnu.org>

> But Emacs doesn't (and cannot) know what you want.

Surely Emacs should know that I don’t want to wait 10 seconds to see the result of evaluating a numeric expression? Or if this is really in doubt, Emacs could provide a user option by which I could tell it how long I’m prepared to wait. Or Emacs could show me the numeric result *while* it is searching the fonts, allowing me to hit C-g to cancel the search if I am happy with just the number.

For reference, the commit that introduced this problem appears to have been 3223d013c2f94e6a0dd37879cf5faec8c0b2261d

For the moment, I am working around the problem by advising eval-expression-print-format, like this:

(defun old-format (orig-fun value)
  (and (integerp value) (eq standard-output t)
       (format " (#o%o, #x%x)" value value)))

(advice-add 'eval-expression-print-format :around #'old-format)




  reply	other threads:[~2014-11-11 21:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-11 20:01 bug#19023: 24.4; Long pause when evaluating numeric expression Gareth Rees
2014-11-11 20:36 ` Eli Zaretskii
2014-11-11 20:51   ` Gareth Rees
2014-11-11 21:04     ` Eli Zaretskii
2014-11-11 21:41       ` Gareth Rees [this message]
2014-11-12  1:52         ` Stefan Monnier
2014-11-11 22:25       ` Lars Magne Ingebrigtsen
2014-11-12  1:56         ` Stefan Monnier
2014-11-12  2:04           ` Lars Magne Ingebrigtsen
2014-11-12  2:06           ` Lars Magne Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=25A71202-3D8C-43CB-AF1F-DCC33E0FFD36@garethrees.org \
    --to=gdr@garethrees.org \
    --cc=19023@debbugs.gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.