summaryrefslogtreecommitdiff
path: root/lisp/progmodes/hideif.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-07-23 00:57:06 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-07-23 01:10:07 -0700
commit57c4bc146b7e17b6f662604047cb5d10982f962c (patch)
tree7dd14e74987d90030468e71ca7ca5929dfd06a8c /lisp/progmodes/hideif.el
parent109cb1520c690038d387aa290bb03261f7c5a1f6 (diff)
downloademacs-57c4bc146b7e17b6f662604047cb5d10982f962c.tar.gz
0x%x → %#x in elisp formats
* lisp/emacs-lisp/cl-print.el (cl-print-object): * lisp/profiler.el (profiler-format-entry): * lisp/progmodes/hideif.el (hif-evaluate-macro): Prefer %#x to 0x%x in elisp formats when formatting arbitrary integers, as it’ll produce more-readable output with negative args should we change how negative values are printed with %x.
Diffstat (limited to 'lisp/progmodes/hideif.el')
-rw-r--r--lisp/progmodes/hideif.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el
index ce7127a3d77..24ad2ff6c75 100644
--- a/lisp/progmodes/hideif.el
+++ b/lisp/progmodes/hideif.el
@@ -1625,7 +1625,7 @@ not be expanded."
((integerp result)
(if (or (= 0 result) (= 1 result))
(message "%S <= `%s'" result exprstring)
- (message "%S (0x%x) <= `%s'" result result exprstring)))
+ (message "%S (%#x) <= `%s'" result result exprstring)))
((null result) (message "%S <= `%s'" 'false exprstring))
((eq t result) (message "%S <= `%s'" 'true exprstring))
(t (message "%S <= `%s'" result exprstring)))