changeset 11919:31cb053405f2

(Fframe_or_buffer_changed_p): Record frame names as well as the frame objects.
author Karl Heuer <kwzh@gnu.org>
date Thu, 25 May 1995 17:06:34 +0000
parents da016ba65a6c
children d7c32bcc6cc5
files src/dispnew.c
diffstat 1 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Thu May 25 16:01:12 1995 +0000
+++ b/src/dispnew.c	Thu May 25 17:06:34 1995 +0000
@@ -1920,10 +1920,15 @@
   Lisp_Object tail, frame, buf;
   Lisp_Object *vecp;
   int n;
+
   vecp = XVECTOR (frame_and_buffer_state)->contents;
   FOR_EACH_FRAME (tail, frame)
-    if (!EQ (*vecp++, frame))
-      goto changed;
+    {
+      if (!EQ (*vecp++, frame))
+	goto changed;
+      if (!EQ (*vecp++, XFRAME (frame)->name))
+	goto changed;
+    }
   /* Check that the buffer info matches.
      No need to test for the end of the vector
      because the last element of the vector is lambda
@@ -1957,7 +1962,10 @@
     frame_and_buffer_state = Fmake_vector (make_number (n), Qlambda);
   vecp = XVECTOR (frame_and_buffer_state)->contents;
   FOR_EACH_FRAME (tail, frame)
-    *vecp++ = frame;
+    {
+      *vecp++ = frame;
+      *vecp++ = XFRAME (frame)->name;
+    }
   for (tail = Vbuffer_alist; CONSP (tail); tail = XCONS (tail)->cdr)
     {
       buf = XCONS (XCONS (tail)->car)->cdr;