changeset 10645:4eeb2d49d841

(do_symval_forwarding): Use current_perdisplay, not get_perdisplay. (store_symval_forwarding, find_symbol_value): Likewise.
author Karl Heuer <kwzh@gnu.org>
date Fri, 03 Feb 1995 21:04:33 +0000
parents ce2d2fe2fa79
children 2b9e924dbe00
files src/data.c
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/data.c	Fri Feb 03 20:56:33 1995 +0000
+++ b/src/data.c	Fri Feb 03 21:04:33 1995 +0000
@@ -644,9 +644,10 @@
 	return *(Lisp_Object *)(offset + (char *)current_buffer);
 
       case Lisp_Misc_Display_Objfwd:
+	if (!current_perdisplay)
+	  abort ();
 	offset = XDISPLAY_OBJFWD (valcontents)->offset;
-	return *(Lisp_Object *)(offset
-				+ (char *)get_perdisplay (selected_frame));
+	return *(Lisp_Object *)(offset + (char *)current_perdisplay);
       }
   return valcontents;
 }
@@ -694,7 +695,9 @@
 	  break;
 
 	case Lisp_Misc_Display_Objfwd:
-	  (*(Lisp_Object *)((char *)get_perdisplay (selected_frame)
+	  if (!current_perdisplay)
+	    abort ();
+	  (*(Lisp_Object *)((char *)current_perdisplay
 			    + XDISPLAY_OBJFWD (valcontents)->offset))
 	    = newval;
 	  break;
@@ -798,8 +801,10 @@
 				  + (char *)current_buffer);
 
 	case Lisp_Misc_Display_Objfwd:
+	  if (!current_perdisplay)
+	    abort ();
 	  return *(Lisp_Object *)(XDISPLAY_OBJFWD (valcontents)->offset
-				  + (char *)get_perdisplay (selected_frame));
+				  + (char *)current_perdisplay);
 	}
     }