diff options
| author | Stefan Monnier | 2007-10-16 15:49:43 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-10-16 15:49:43 +0000 |
| commit | d3f41ff55563551d241407ef640c9984156f87b8 (patch) | |
| tree | 0956b01c2269a755d64e6bbfabd26b9122dced82 /src | |
| parent | 67ee9f6e9121a43a5bad61145b55d785d88bfabf (diff) | |
| download | emacs-d3f41ff55563551d241407ef640c9984156f87b8.tar.gz emacs-d3f41ff55563551d241407ef640c9984156f87b8.zip | |
(Fpurecopy): Set the pvec tag on pseudo vectors.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/alloc.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3c275302f9f..6f96f7da7ac 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors. | ||
| 4 | |||
| 3 | * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value. | 5 | * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value. |
| 4 | (XMISCANY): New macro. | 6 | (XMISCANY): New macro. |
| 5 | (XMISCTYPE): Use it. | 7 | (XMISCTYPE): Use it. |
diff --git a/src/alloc.c b/src/alloc.c index 48857ecff14..c42c27f0333 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -4966,7 +4966,10 @@ Does not copy symbols. Copies strings without text properties. */) | |||
| 4966 | for (i = 0; i < size; i++) | 4966 | for (i = 0; i < size; i++) |
| 4967 | vec->contents[i] = Fpurecopy (XVECTOR (obj)->contents[i]); | 4967 | vec->contents[i] = Fpurecopy (XVECTOR (obj)->contents[i]); |
| 4968 | if (COMPILEDP (obj)) | 4968 | if (COMPILEDP (obj)) |
| 4969 | XSETCOMPILED (obj, vec); | 4969 | { |
| 4970 | XSETPVECTYPE (vec, PVEC_COMPILED); | ||
| 4971 | XSETCOMPILED (obj, vec); | ||
| 4972 | } | ||
| 4970 | else | 4973 | else |
| 4971 | XSETVECTOR (obj, vec); | 4974 | XSETVECTOR (obj, vec); |
| 4972 | return obj; | 4975 | return obj; |