unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Gareth Rees <gdr@garethrees.org>
Cc: 19023@debbugs.gnu.org
Subject: bug#19023: 24.4; Long pause when evaluating numeric expression
Date: Tue, 11 Nov 2014 20:52:22 -0500	[thread overview]
Message-ID: <jwvvbml9of9.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <25A71202-3D8C-43CB-AF1F-DCC33E0FFD36@garethrees.org> (Gareth Rees's message of "Tue, 11 Nov 2014 21:41:57 +0000")

[ Side comment.  ]

> (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)

If you don't use `orig-fun', you might as well use :override rather
than :around.


        Stefan





  reply	other threads:[~2014-11-12  1:52 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
2014-11-12  1:52         ` Stefan Monnier [this message]
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

  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=jwvvbml9of9.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=19023@debbugs.gnu.org \
    --cc=gdr@garethrees.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 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).