aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-10-11 07:46:50 +0000
committerKarl Heuer1994-10-11 07:46:50 +0000
commit777aaffcb8c82e5b8be598aaec258cff488f3610 (patch)
tree2599a5727076531a737d2ca138f8adecf2793723 /src
parent7f064f5c1a48bd7cb445c72f57ccafa3d2a2a6c9 (diff)
downloademacs-777aaffcb8c82e5b8be598aaec258cff488f3610.tar.gz
emacs-777aaffcb8c82e5b8be598aaec258cff488f3610.zip
(print): Check the substructure.
Diffstat (limited to 'src')
-rw-r--r--src/print.c28
1 files changed, 18 insertions, 10 deletions
diff --git a/src/print.c b/src/print.c
index edac49aca97..989ad9f2546 100644
--- a/src/print.c
+++ b/src/print.c
@@ -980,18 +980,26 @@ print (obj, printcharfun, escapeflag)
980 break; 980 break;
981#endif /* MULTI_FRAME */ 981#endif /* MULTI_FRAME */
982 982
983 case Lisp_Marker: 983 case Lisp_Misc:
984 strout ("#<marker ", -1, printcharfun); 984 switch (XMISC (obj)->type)
985 if (!(XMARKER (obj)->buffer))
986 strout ("in no buffer", -1, printcharfun);
987 else
988 { 985 {
989 sprintf (buf, "at %d", marker_position (obj)); 986 case Lisp_Misc_Marker:
990 strout (buf, -1, printcharfun); 987 strout ("#<marker ", -1, printcharfun);
991 strout (" in ", -1, printcharfun); 988 if (!(XMARKER (obj)->buffer))
992 print_string (XMARKER (obj)->buffer->name, printcharfun); 989 strout ("in no buffer", -1, printcharfun);
990 else
991 {
992 sprintf (buf, "at %d", marker_position (obj));
993 strout (buf, -1, printcharfun);
994 strout (" in ", -1, printcharfun);
995 print_string (XMARKER (obj)->buffer->name, printcharfun);
996 }
997 PRINTCHAR ('>');
998 break;
999
1000 default:
1001 abort ();
993 } 1002 }
994 PRINTCHAR ('>');
995 break; 1003 break;
996 1004
997 case Lisp_Overlay: 1005 case Lisp_Overlay: