(create_root_interval): Check to see if PARENT is in
pure memory. If so, we cannot write it.
#include "lisp.h"
#include "intervals.h"
#include "buffer.h"
+#include "puresize.h"
/* The rest of the file is within this conditional. */
#ifdef USE_TEXT_PROPERTIES
create_root_interval (parent)
Lisp_Object parent;
{
- INTERVAL new = make_interval ();
+ INTERVAL new;
+
+ CHECK_IMPURE (parent);
+
+ new = make_interval ();
if (XTYPE (parent) == Lisp_Buffer)
{