emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: transpose-regions


From: Andreas Schwab
Subject: Re: transpose-regions
Date: Fri, 23 Mar 2007 11:55:48 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux)

Chong Yidong <address@hidden> writes:

> The problem seems to be that a cons cell that has already been
> garbage-collected is being passed to Fcopy_sequence during
> copy_properties(), in intervals.c:106.  Where did this cons cell come
> from?
>
>   target->plist = Fcopy_sequence (source->plist);
>
> Is the garbage collector somehow failing to account for cons cells
> assigned to interval plists?

Unlikely, what would be a too obvious bug to remain unnoticed until now
(and mark_interval indeed does mark the plist).  More likely that the
whole interval is not being marked in the first place.  The function uses
the local variables tmp_interval[12] that are copies of the buffer
intervals, perhaps they need to be protected from GC?

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]