GNU bug report logs -
#19023
24.4; Long pause when evaluating numeric expression
Previous Next
Reported by: Gareth Rees <gdr <at> garethrees.org>
Date: Tue, 11 Nov 2014 20:19:02 UTC
Severity: minor
Tags: fixed, patch
Merged with 16828,
21131,
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.
Full log
View this message in rfc822 format
> 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)
This bug report was last modified 8 years and 56 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.