diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/alloc.c b/src/alloc.c index 9ac3ad84131..91b4c6e1515 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -3765,7 +3765,7 @@ queue_doomed_finalizers (struct Lisp_Finalizer *dest, | |||
| 3765 | static Lisp_Object | 3765 | static Lisp_Object |
| 3766 | run_finalizer_handler (Lisp_Object args) | 3766 | run_finalizer_handler (Lisp_Object args) |
| 3767 | { | 3767 | { |
| 3768 | add_to_log ("finalizer failed: %S", args, Qnil); | 3768 | add_to_log ("finalizer failed: %S", args); |
| 3769 | return Qnil; | 3769 | return Qnil; |
| 3770 | } | 3770 | } |
| 3771 | 3771 | ||
| @@ -5339,6 +5339,10 @@ purecopy (Lisp_Object obj) | |||
| 5339 | if (PURE_POINTER_P (XPNTR (obj)) || INTEGERP (obj) || SUBRP (obj)) | 5339 | if (PURE_POINTER_P (XPNTR (obj)) || INTEGERP (obj) || SUBRP (obj)) |
| 5340 | return obj; /* Already pure. */ | 5340 | return obj; /* Already pure. */ |
| 5341 | 5341 | ||
| 5342 | if (STRINGP (obj) && XSTRING (obj)->intervals) | ||
| 5343 | message_with_string ("Dropping text-properties while making string `%s' pure", | ||
| 5344 | obj, true); | ||
| 5345 | |||
| 5342 | if (HASH_TABLE_P (Vpurify_flag)) /* Hash consing. */ | 5346 | if (HASH_TABLE_P (Vpurify_flag)) /* Hash consing. */ |
| 5343 | { | 5347 | { |
| 5344 | Lisp_Object tmp = Fgethash (obj, Vpurify_flag, Qnil); | 5348 | Lisp_Object tmp = Fgethash (obj, Vpurify_flag, Qnil); |
| @@ -5351,13 +5355,9 @@ purecopy (Lisp_Object obj) | |||
| 5351 | else if (FLOATP (obj)) | 5355 | else if (FLOATP (obj)) |
| 5352 | obj = make_pure_float (XFLOAT_DATA (obj)); | 5356 | obj = make_pure_float (XFLOAT_DATA (obj)); |
| 5353 | else if (STRINGP (obj)) | 5357 | else if (STRINGP (obj)) |
| 5354 | { | 5358 | obj = make_pure_string (SSDATA (obj), SCHARS (obj), |
| 5355 | if (XSTRING (obj)->intervals) | 5359 | SBYTES (obj), |
| 5356 | message ("Dropping text-properties when making string pure"); | 5360 | STRING_MULTIBYTE (obj)); |
| 5357 | obj = make_pure_string (SSDATA (obj), SCHARS (obj), | ||
| 5358 | SBYTES (obj), | ||
| 5359 | STRING_MULTIBYTE (obj)); | ||
| 5360 | } | ||
| 5361 | else if (COMPILEDP (obj) || VECTORP (obj) || HASH_TABLE_P (obj)) | 5361 | else if (COMPILEDP (obj) || VECTORP (obj) || HASH_TABLE_P (obj)) |
| 5362 | { | 5362 | { |
| 5363 | struct Lisp_Vector *objp = XVECTOR (obj); | 5363 | struct Lisp_Vector *objp = XVECTOR (obj); |