[slime-devel] Re: Inspector bug: inspecting very big integers
Ariel Badichi
abadichi at bezeqint.net
Thu Jan 11 08:53:12 UTC 2007
Ariel Badichi <abadichi at bezeqint.net> writes:
>
> The SLIME Inspector uses ~E when viewing integers, and fails to
> consider this scenario.
>
By the way, here is a quick fix:
(defmethod inspect-for-emacs ((i integer) inspector)
(declare (ignore inspector))
(values "A number."
(append
`(,(format nil "Value: ~D = #x~8,'0X = #o~O = #b~,,' ,8:B~@[ = ~E~]"
i i i i (ignore-errors (coerce i 'single-float)))
(:newline))
(when (< -1 i char-code-limit)
(label-value-line "Code-char" (code-char i)))
(label-value-line "Integer-length" (integer-length i))
(ignore-errors
(label-value-line "Universal-time" (format-iso8601-time i t))))))
More information about the slime-devel
mailing list