From bd9e3e75435e9a609051fab3eb8f1863143d4503 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 25 May 1995 17:06:34 +0000 Subject: [PATCH] (Fframe_or_buffer_changed_p): Record frame names as well as the frame objects. --- src/dispnew.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/dispnew.c b/src/dispnew.c index fa78c95d50c..a1240cb7c6b 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -1920,10 +1920,15 @@ the current state.\n") 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 @@ the current state.\n") 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; -- 2.39.2