Function: purecopy

purecopy is a function defined in alloc.c.

Signature

(purecopy OBJ)

Documentation

Make a copy of object OBJ in pure storage.

Recursively copies contents of vectors and cons cells. Does not copy symbols. Copies strings without text properties.

View in manual

Source Code

// Defined in /usr/src/emacs/src/alloc.c
{
  if (NILP (Vpurify_flag))
    return obj;
  else if (MARKERP (obj) || OVERLAYP (obj) || SYMBOLP (obj))
    /* Can't purify those.  */
    return obj;
  else
    return purecopy (obj);
}