aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-01-02 06:28:29 +0000
committerRichard M. Stallman1995-01-02 06:28:29 +0000
commit908b0ae5e0f13828b9be8c6874e61a5af184a513 (patch)
tree137c2c815d12306ef8ef30eabd62c790488778f5 /src
parentad9cdce411a4fd164a754626d9286cc45be8a807 (diff)
downloademacs-908b0ae5e0f13828b9be8c6874e61a5af184a513.tar.gz
emacs-908b0ae5e0f13828b9be8c6874e61a5af184a513.zip
(print): Don't drop thru to error for markers and overlays.
(print): Make buffer case a branch of the Lisp_Vectorlike case.
Diffstat (limited to 'src')
-rw-r--r--src/print.c29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/print.c b/src/print.c
index cb0b6c9fb70..8c341aabfc5 100644
--- a/src/print.c
+++ b/src/print.c
@@ -923,6 +923,19 @@ print (obj, printcharfun, escapeflag)
923 } 923 }
924 PRINTCHAR ('>'); 924 PRINTCHAR ('>');
925 } 925 }
926 else if (BUFFERP (obj))
927 {
928 if (NILP (XBUFFER (obj)->name))
929 strout ("#<killed buffer>", -1, printcharfun);
930 else if (escapeflag)
931 {
932 strout ("#<buffer ", -1, printcharfun);
933 print_string (XBUFFER (obj)->name, printcharfun);
934 PRINTCHAR ('>');
935 }
936 else
937 print_string (XBUFFER (obj)->name, printcharfun);
938 }
926 else if (WINDOW_CONFIGURATIONP (obj)) 939 else if (WINDOW_CONFIGURATIONP (obj))
927 { 940 {
928 strout ("#<window-configuration>", -1, printcharfun); 941 strout ("#<window-configuration>", -1, printcharfun);
@@ -965,19 +978,6 @@ print (obj, printcharfun, escapeflag)
965 break; 978 break;
966 979
967#ifndef standalone 980#ifndef standalone
968 case Lisp_Buffer:
969 if (NILP (XBUFFER (obj)->name))
970 strout ("#<killed buffer>", -1, printcharfun);
971 else if (escapeflag)
972 {
973 strout ("#<buffer ", -1, printcharfun);
974 print_string (XBUFFER (obj)->name, printcharfun);
975 PRINTCHAR ('>');
976 }
977 else
978 print_string (XBUFFER (obj)->name, printcharfun);
979 break;
980
981 case Lisp_Misc: 981 case Lisp_Misc:
982 if (MARKERP (obj)) 982 if (MARKERP (obj))
983 { 983 {
@@ -992,6 +992,7 @@ print (obj, printcharfun, escapeflag)
992 print_string (XMARKER (obj)->buffer->name, printcharfun); 992 print_string (XMARKER (obj)->buffer->name, printcharfun);
993 } 993 }
994 PRINTCHAR ('>'); 994 PRINTCHAR ('>');
995 break;
995 } 996 }
996 else if (OVERLAYP (obj)) 997 else if (OVERLAYP (obj))
997 { 998 {
@@ -1008,7 +1009,9 @@ print (obj, printcharfun, escapeflag)
1008 printcharfun); 1009 printcharfun);
1009 } 1010 }
1010 PRINTCHAR ('>'); 1011 PRINTCHAR ('>');
1012 break;
1011 } 1013 }
1014 /* Other cases fall through to get an error. */
1012#endif /* standalone */ 1015#endif /* standalone */
1013 1016
1014 default: 1017 default: