changeset 104215:eec5a3966960

* subr.el: Provide hashtable-print-readable.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 09 Aug 2009 02:57:45 +0000
parents 0cec7dac5f50
children bf65b05e8cf1
files lisp/ChangeLog lisp/subr.el
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun Aug 09 02:43:50 2009 +0000
+++ b/lisp/ChangeLog	Sun Aug 09 02:57:45 2009 +0000
@@ -1,5 +1,7 @@
 2009-08-09  Chong Yidong  <cyd@stupidchicken.com>
 
+	* subr.el: Provide hashtable-print-readable.
+
 	* progmodes/hideshow.el (hs-special-modes-alist): Don't use
 	hs-c-like-adjust-block-beginning.
 	(hs-hide-block-at-point): Stop hiding at the beginning of
--- a/lisp/subr.el	Sun Aug 09 02:43:50 2009 +0000
+++ b/lisp/subr.el	Sun Aug 09 02:57:45 2009 +0000
@@ -3647,5 +3647,14 @@
 \"1alpha\"."
   (version-list-= (version-to-list v1) (version-to-list v2)))
 
+
+;;; Misc.
+
+;; The following statement ought to be in print.c, but `provide' can't
+;; be used there.
+(when (hash-table-p (car (read-from-string
+			  (prin1-to-string (make-hash-table)))))
+  (provide 'hashtable-print-readable))
+
 ;; arch-tag: f7e0e6e5-70aa-4897-ae72-7a3511ec40bc
 ;;; subr.el ends here