diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index bafcb020e8d..04786dcfa86 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -496,12 +496,16 @@ clone_per_buffer_values (from, to) | |||
| 496 | 496 | ||
| 497 | /* buffer-local Lisp variables start at `undo_list', | 497 | /* buffer-local Lisp variables start at `undo_list', |
| 498 | tho only the ones from `name' on are GC'd normally. */ | 498 | tho only the ones from `name' on are GC'd normally. */ |
| 499 | for (offset = PER_BUFFER_VAR_OFFSET (undo_list) + sizeof (Lisp_Object); | 499 | for (offset = PER_BUFFER_VAR_OFFSET (undo_list); |
| 500 | offset < sizeof *to; | 500 | offset < sizeof *to; |
| 501 | offset += sizeof (Lisp_Object)) | 501 | offset += sizeof (Lisp_Object)) |
| 502 | { | 502 | { |
| 503 | Lisp_Object obj; | 503 | Lisp_Object obj; |
| 504 | 504 | ||
| 505 | /* Don't touch the `name' which should be unique for every buffer. */ | ||
| 506 | if (offset == PER_BUFFER_VAR_OFFSET (name)) | ||
| 507 | continue; | ||
| 508 | |||
| 505 | obj = PER_BUFFER_VALUE (from, offset); | 509 | obj = PER_BUFFER_VALUE (from, offset); |
| 506 | if (MARKERP (obj)) | 510 | if (MARKERP (obj)) |
| 507 | { | 511 | { |