unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* entry separator for printing hashtables
@ 2011-04-06 10:59 Ted Zlatanov
  2011-04-21 23:17 ` list-print-separator (was: entry separator for printing hashtables) Ted Zlatanov
  0 siblings, 1 reply; 19+ messages in thread
From: Ted Zlatanov @ 2011-04-06 10:59 UTC (permalink / raw)
  To: emacs-devel

Since hashtables can get pretty big, it would be nice to have a
separator between entries when they are printed.  Could that be provided
at the top level, e.g.

(let ((hash-table-print-separator "\\\n"))
   (format "%S" my-hash-table))

or in some other way?  It would make large hashtable dumps like the ones
from the new registry.el and gnus-registry.el much easier to read and
debug.  In the old gnus-registry.el I had special code to break up
alists like that but it was slow so I'd rather ask Emacs to do it for
me at the C level.

Thanks
Ted




^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2011-04-26 15:23 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-06 10:59 entry separator for printing hashtables Ted Zlatanov
2011-04-21 23:17 ` list-print-separator (was: entry separator for printing hashtables) Ted Zlatanov
2011-04-24  4:47   ` list-print-separator Stefan Monnier
2011-04-25  1:38     ` list-print-separator Ted Zlatanov
2011-04-25 12:41       ` list-print-separator Stefan Monnier
2011-04-25 12:54         ` list-print-separator Ted Zlatanov
2011-04-25 14:51           ` list-print-separator Stefan Monnier
2011-04-25 15:01             ` list-print-separator Ted Zlatanov
2011-04-25 15:37               ` list-print-separator Stefan Monnier
2011-04-25 15:59                 ` list-print-separator Ted Zlatanov
2011-04-25 16:55                   ` list-print-separator Thierry Volpiatto
2011-04-25 17:28                     ` list-print-separator Stefan Monnier
2011-04-25 17:55                       ` list-print-separator Eli Zaretskii
2011-04-25 18:35                         ` list-print-separator Stefan Monnier
2011-04-25 21:05             ` list-print-separator Andy Moreton
2011-04-25 22:45               ` list-print-separator Ted Zlatanov
2011-04-26 12:52                 ` list-print-separator Andy Moreton
2011-04-26 12:55                 ` list-print-separator Stefan Monnier
2011-04-26 15:23                   ` list-print-separator Ted Zlatanov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).