tem1 = XBUFFER_LOCAL_VALUE (valcontents)->buffer;
if (NILP (tem1) || current_buffer != XBUFFER (tem1)
- || selected_frame != XFRAME (XBUFFER_LOCAL_VALUE (valcontents)->frame))
+ || !EQ (selected_frame, XBUFFER_LOCAL_VALUE (valcontents)->frame))
{
tem1 = XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->car;
Fsetcdr (tem1,
if (NILP (tem1))
{
if (XBUFFER_LOCAL_VALUE (valcontents)->check_frame)
- tem1 = assq_no_quit (symbol, selected_frame->param_alist);
+ tem1 = assq_no_quit (symbol, XFRAME (selected_frame)->param_alist);
if (! NILP (tem1))
XBUFFER_LOCAL_VALUE (valcontents)->found_for_frame = 1;
else
XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->car = tem1;
XSETBUFFER (XBUFFER_LOCAL_VALUE (valcontents)->buffer, current_buffer);
- XSETFRAME (XBUFFER_LOCAL_VALUE (valcontents)->frame, selected_frame);
+ XBUFFER_LOCAL_VALUE (valcontents)->frame = selected_frame;
store_symval_forwarding (symbol,
XBUFFER_LOCAL_VALUE (valcontents)->realvalue,
Fcdr (tem1));
we're looking at the default value, the cache is invalid; we
need to write it out, and find the new CURRENT-ALIST-ELEMENT. */
if (current_buffer != XBUFFER (XBUFFER_LOCAL_VALUE (valcontents)->buffer)
- ||
- selected_frame != XFRAME (XBUFFER_LOCAL_VALUE (valcontents)->frame)
+ || !EQ (selected_frame, XBUFFER_LOCAL_VALUE (valcontents)->frame)
|| (BUFFER_LOCAL_VALUEP (valcontents)
&& EQ (XCONS (current_alist_element)->car,
current_alist_element)))
XBUFFER_LOCAL_VALUE (valcontents)->found_for_buffer = 0;
if (XBUFFER_LOCAL_VALUE (valcontents)->check_frame)
- tem1 = Fassq (symbol, selected_frame->param_alist);
+ tem1 = Fassq (symbol,
+ XFRAME (selected_frame)->param_alist);
if (! NILP (tem1))
XBUFFER_LOCAL_VALUE (valcontents)->found_for_frame = 1;
/* Set BUFFER and FRAME for binding now loaded. */
XSETBUFFER (XBUFFER_LOCAL_VALUE (valcontents)->buffer,
current_buffer);
- XSETFRAME (XBUFFER_LOCAL_VALUE (valcontents)->frame,
- selected_frame);
+ XBUFFER_LOCAL_VALUE (valcontents)->frame = selected_frame;
}
valcontents = XBUFFER_LOCAL_VALUE (valcontents)->realvalue;
}