case Lisp_Misc_Buffer_Objfwd:
offset = XBUFFER_OBJFWD (valcontents)->offset;
- return BUFFER_LOCAL_VALUE (current_buffer, offset);
+ return PER_BUFFER_VALUE (current_buffer, offset);
case Lisp_Misc_Kboard_Objfwd:
offset = XKBOARD_OBJFWD (valcontents)->offset;
int offset = XBUFFER_OBJFWD (valcontents)->offset;
Lisp_Object type;
- type = BUFFER_LOCAL_TYPE (offset);
+ type = PER_BUFFER_TYPE (offset);
if (XINT (type) == -1)
error ("Variable %s is read-only", XSYMBOL (symbol)->name->data);
&& XTYPE (newval) != XINT (type))
buffer_slot_type_mismatch (offset);
- BUFFER_LOCAL_VALUE (current_buffer, offset) = newval;
+ PER_BUFFER_VALUE (current_buffer, offset) = newval;
}
break;
return *XOBJFWD (valcontents)->objvar;
case Lisp_Misc_Buffer_Objfwd:
- return BUFFER_LOCAL_VALUE (current_buffer,
+ return PER_BUFFER_VALUE (current_buffer,
XBUFFER_OBJFWD (valcontents)->offset);
case Lisp_Misc_Kboard_Objfwd:
if (BUFFER_OBJFWDP (valcontents))
{
int offset = XBUFFER_OBJFWD (valcontents)->offset;
- int idx = BUFFER_LOCAL_IDX (offset);
+ int idx = PER_BUFFER_IDX (offset);
if (idx > 0
&& !bindflag
&& !let_shadows_buffer_binding_p (symbol))
- SET_BUFFER_HAS_LOCAL_VALUE_P (buf, idx, 1);
+ SET_PER_BUFFER_VALUE_P (buf, idx, 1);
}
else if (BUFFER_LOCAL_VALUEP (valcontents)
if (BUFFER_OBJFWDP (valcontents))
{
int offset = XBUFFER_OBJFWD (valcontents)->offset;
- if (BUFFER_LOCAL_IDX (offset) != 0)
- return BUFFER_LOCAL_DEFAULT_VALUE (offset);
+ if (PER_BUFFER_IDX (offset) != 0)
+ return PER_BUFFER_DEFAULT (offset);
}
/* Handle user-created local variables. */
if (BUFFER_OBJFWDP (valcontents))
{
int offset = XBUFFER_OBJFWD (valcontents)->offset;
- int idx = BUFFER_LOCAL_IDX (offset);
+ int idx = PER_BUFFER_IDX (offset);
- BUFFER_LOCAL_DEFAULT_VALUE (offset) = value;
+ PER_BUFFER_DEFAULT (offset) = value;
/* If this variable is not always local in all buffers,
set it in the buffers that don't nominally have a local value. */
struct buffer *b;
for (b = all_buffers; b; b = b->next)
- if (!BUFFER_HAS_LOCAL_VALUE_P (b, idx))
- BUFFER_LOCAL_VALUE (b, offset) = value;
+ if (!PER_BUFFER_VALUE_P (b, idx))
+ PER_BUFFER_VALUE (b, offset) = value;
}
return value;
}
if (BUFFER_OBJFWDP (valcontents))
{
int offset = XBUFFER_OBJFWD (valcontents)->offset;
- int idx = BUFFER_LOCAL_IDX (offset);
+ int idx = PER_BUFFER_IDX (offset);
if (idx > 0)
{
- SET_BUFFER_HAS_LOCAL_VALUE_P (current_buffer, idx, 0);
- BUFFER_LOCAL_VALUE (current_buffer, offset)
- = BUFFER_LOCAL_DEFAULT_VALUE (offset);
+ SET_PER_BUFFER_VALUE_P (current_buffer, idx, 0);
+ PER_BUFFER_VALUE (current_buffer, offset)
+ = PER_BUFFER_DEFAULT (offset);
}
return variable;
}
if (BUFFER_OBJFWDP (valcontents))
{
int offset = XBUFFER_OBJFWD (valcontents)->offset;
- int idx = BUFFER_LOCAL_IDX (offset);
- if (idx == -1 || BUFFER_HAS_LOCAL_VALUE_P (buf, idx))
+ int idx = PER_BUFFER_IDX (offset);
+ if (idx == -1 || PER_BUFFER_VALUE_P (buf, idx))
return Qt;
}
return Qnil;