Mercurial > hg > xemacs-beta
comparison src/keymap.c @ 4846:a98ca4640147
clean up object print methods
casetab.c, console.c, data.c, database.c, device-msw.c, device.c, eval.c, file-coding.c, frame.c, glyphs.c, gui.c, keymap.c, lisp.h, mule-charset.c, objects.c, print.c, process.c, tooltalk.c, ui-gtk.c, window.c:
New function printing_unreadable_lcrecord(). Automatically
prints the type name and pointer value of the object. Use it
instead of printing_unreadable_object(); make that latter
function local to print.c.
window.c: During creation, window may have Qt as its buffer. Don't
crash if trying to print such a window.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Wed, 13 Jan 2010 05:49:13 -0600 |
parents | 2fd201d73a92 |
children | 6ef8256a020a 19a72041c5ed |
comparison
equal
deleted
inserted
replaced
4845:a3c673c0720b | 4846:a98ca4640147 |
---|---|
287 int UNUSED (escapeflag)) | 287 int UNUSED (escapeflag)) |
288 { | 288 { |
289 /* This function can GC */ | 289 /* This function can GC */ |
290 Lisp_Keymap *keymap = XKEYMAP (obj); | 290 Lisp_Keymap *keymap = XKEYMAP (obj); |
291 if (print_readably) | 291 if (print_readably) |
292 printing_unreadable_object ("#<keymap 0x%x>", keymap->header.uid); | 292 printing_unreadable_lcrecord (obj, 0); |
293 write_c_string (printcharfun, "#<keymap "); | 293 write_c_string (printcharfun, "#<keymap "); |
294 if (!NILP (keymap->name)) | 294 if (!NILP (keymap->name)) |
295 { | 295 { |
296 write_fmt_string_lisp (printcharfun, "%S ", 1, keymap->name); | 296 write_fmt_string_lisp (printcharfun, "%S ", 1, keymap->name); |
297 } | 297 } |