GNU bug report logs - #13743
24.2.93; Segmentation fault when trying to [s]teal a file opened elsewhere

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Mon, 18 Feb 2013 07:14:01 UTC

Severity: important

Found in version 24.2.93

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


Message #53 received at 13743 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 13743 <at> debbugs.gnu.org
Subject: Re: bug#13743: 24.2.93;
	Segmentation fault when trying to [s]teal a file opened elsewhere
Date: Mon, 25 Feb 2013 10:25:15 -0500
>> The manifestation of the problem will be that modify_region will be
>> called in this case, although we don't actually modify anything.  You
>> will probably see the "modified" indicator on the mode line, something
>> that shouldn't have happened.
> That is indeed what happens.
> OTOH, the existing behavior in this area is rather messy anyway:

Not only that, but it's not clear why "that shouldn't have happened".
It's good to optimize away the whole add-text-properties when it ends up
doing nothing, but it's just an optimization.

And I don't think it's an important one here, since (as Dmitry points
out) the likely most common case (of having `start' be right at the
beginning of an interval object) didn't work anyway, and furthermore
most calls to add-text-properties are likely to be protected by
inhibit-modification-hooks.


        Stefan




This bug report was last modified 12 years and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.