changeset 10651:47e4c51a0e43

(print): Use current_perdisplay, not get_perdisplay.
author Karl Heuer <kwzh@gnu.org>
date Fri, 03 Feb 1995 23:40:57 +0000
parents 050a2d62d186
children f6a41cb94a75
files src/print.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/print.c	Fri Feb 03 23:27:14 1995 +0000
+++ b/src/print.c	Fri Feb 03 23:40:57 1995 +0000
@@ -1051,9 +1051,12 @@
 
 	case Lisp_Misc_Display_Objfwd:
 	  strout (buf, "#<display_objfwd to ", -1, printcharfun);
-	  print (*(Lisp_Object *)((char *) get_perdisplay (selected_frame)
-				  + XDISPLAY_OBJFWD (obj)->offset),
-		 printcharfun, escapeflag);
+	  if (!current_perdisplay)
+	    strout ("no-current-perdisplay");
+	  else
+	    print (*(Lisp_Object *)((char *) current_perdisplay
+				    + XDISPLAY_OBJFWD (obj)->offset),
+		   printcharfun, escapeflag);
 	  PRINTCHAR ('>');
 	  break;