summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/cl-print.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/cl-print.el b/lisp/emacs-lisp/cl-print.el
index fec5e868d63..eb50d756879 100644
--- a/lisp/emacs-lisp/cl-print.el
+++ b/lisp/emacs-lisp/cl-print.el
@@ -78,6 +78,16 @@ call other entry points instead, such as `cl-prin1'."
(cl-print-object (aref object i) stream))
(princ "]" stream))
+(cl-defmethod cl-print-object ((object hash-table) stream)
+ (princ "#<hash-table " stream)
+ (princ (hash-table-test object) stream)
+ (princ " " stream)
+ (princ (hash-table-count object) stream)
+ (princ "/" stream)
+ (princ (hash-table-size object) stream)
+ (princ (format " 0x%x" (sxhash object)) stream)
+ (princ ">" stream))
+
(define-button-type 'help-byte-code
'follow-link t
'action (lambda (button)