diff options
| author | Eli Zaretskii | 2015-08-13 17:36:38 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2015-08-13 17:36:38 +0300 |
| commit | 9c13a81a9e1aa74901cd958d7adb3ca71966dbef (patch) | |
| tree | 2a367688efeead3d71a79fe84ea5be4170f274e2 /src/alloc.c | |
| parent | e4de91d8dd2a06125140fb42772ec84a2f7ab290 (diff) | |
| download | emacs-9c13a81a9e1aa74901cd958d7adb3ca71966dbef.tar.gz emacs-9c13a81a9e1aa74901cd958d7adb3ca71966dbef.zip | |
Improve warning about purecopy of strings with properties
* src/alloc.c (purecopy): Show the offending string with the
warning about removing its text properties.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 9ac3ad84131..050097c905a 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -5353,7 +5353,8 @@ purecopy (Lisp_Object obj) | |||
| 5353 | else if (STRINGP (obj)) | 5353 | else if (STRINGP (obj)) |
| 5354 | { | 5354 | { |
| 5355 | if (XSTRING (obj)->intervals) | 5355 | if (XSTRING (obj)->intervals) |
| 5356 | message ("Dropping text-properties when making string pure"); | 5356 | message_with_string ("Dropping text-properties while making string `%s' pure", |
| 5357 | obj, true); | ||
| 5357 | obj = make_pure_string (SSDATA (obj), SCHARS (obj), | 5358 | obj = make_pure_string (SSDATA (obj), SCHARS (obj), |
| 5358 | SBYTES (obj), | 5359 | SBYTES (obj), |
| 5359 | STRING_MULTIBYTE (obj)); | 5360 | STRING_MULTIBYTE (obj)); |