From 7eb0330213eae25cac6204a2c97a737e7c501bf8 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 21 Jul 1999 21:43:52 +0000 Subject: [PATCH] (print): Add hash table handling. (printchar): Set echo_area_message to nil. (strout): Ditto. --- src/print.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/print.c b/src/print.c index 69a3d68f428..d3a7efc12c9 100644 --- a/src/print.c +++ b/src/print.c @@ -399,6 +399,7 @@ printchar (ch, fun) { message_log_maybe_newline (); echo_area_glyphs = FRAME_MESSAGE_BUF (mini_frame); + echo_area_message = Qnil; printbufidx = 0; echo_area_glyphs_length = 0; message_buf_print = 1; @@ -527,6 +528,7 @@ strout (ptr, size, size_byte, printcharfun, multibyte) { message_log_maybe_newline (); echo_area_glyphs = FRAME_MESSAGE_BUF (mini_frame); + echo_area_message = Qnil; printbufidx = 0; echo_area_glyphs_length = 0; message_buf_print = 1; @@ -1616,6 +1618,26 @@ print (obj, printcharfun, escapeflag) } PRINTCHAR ('>'); } + else if (HASH_TABLE_P (obj)) + { + struct Lisp_Hash_Table *h = XHASH_TABLE (obj); + strout ("#test)) + { + PRINTCHAR (' '); + PRINTCHAR ('\''); + strout (XSYMBOL (h->test)->name->data, -1, -1, printcharfun, 0); + PRINTCHAR (' '); + strout (XSYMBOL (h->weak)->name->data, -1, -1, printcharfun, 0); + PRINTCHAR (' '); + sprintf (buf, "%d/%d", XFASTINT (h->count), + XVECTOR (h->next)->size); + strout (buf, -1, -1, printcharfun, 0); + } + sprintf (buf, " 0x%lx", (unsigned long) h); + strout (buf, -1, -1, printcharfun, 0); + PRINTCHAR ('>'); + } else if (BUFFERP (obj)) { if (NILP (XBUFFER (obj)->name)) -- 2.39.5