(Fpurecopy): Set the pvec tag on pseudo vectors.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 16 Oct 2007 15:49:43 +0000 (15:49 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 16 Oct 2007 15:49:43 +0000 (15:49 +0000)
src/ChangeLog
src/alloc.c

index 3c27530..6f96f7d 100644 (file)
@@ -1,5 +1,7 @@
 2007-10-16  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
+
        * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
        (XMISCANY): New macro.
        (XMISCTYPE): Use it.
index 48857ec..c42c27f 100644 (file)
@@ -4966,7 +4966,10 @@ Does not copy symbols.  Copies strings without text properties.  */)
       for (i = 0; i < size; i++)
        vec->contents[i] = Fpurecopy (XVECTOR (obj)->contents[i]);
       if (COMPILEDP (obj))
-       XSETCOMPILED (obj, vec);
+       {
+         XSETPVECTYPE (vec, PVEC_COMPILED);
+         XSETCOMPILED (obj, vec);
+       }
       else
        XSETVECTOR (obj, vec);
       return obj;