GNU bug report logs - #10222
intangible property and sentence movement

Previous Next

Package: emacs;

Reported by: Tassilo Horn <tassilo <at> member.fsf.org>

Date: Mon, 5 Dec 2011 12:30:01 UTC

Severity: minor

Tags: moreinfo

Found in version 24.0.92

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tassilo Horn <tassilo <at> member.fsf.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 10222 <at> debbugs.gnu.org
Subject: bug#10222: 24.0.92; Sentence movement commands make emacs hang
Date: Mon, 05 Dec 2011 16:41:30 +0100
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:

>>       (overlay-put ol 'invisible t)
>>       (overlay-put ol 'intangible t))))
>
> While we probably can and maybe should make your test case work
> better, the use of `intangible' is strongly discouraged,

Then it would be good if the docs stated that.

> specifically because it's pretty much impossible to make all other
> commands work "right" in the presence of intangible properties.

Yes, probably.  I've experimented a bit more, and it gets even worse
with line-editing commands like kill-line, especially if the intangible
overlay starts or ends in the middle of a line...

But it seems that there's no sense in making an invisible overlay
intangible, anyway, at least I can't find any difference in behavior
between invisible and invisible + intangible (except that the problem
doesn't appear).

The mode that creates those overlays (iedit-mode) seems to do that in
order to protect the invisible regions, but you can still accidentally
kill an intangible & invisible region as a whole.  `read-only' would be
the right property to use here, but it seems it's not supported for
overlays...

Bye,
Tassilo




This bug report was last modified 3 years and 116 days ago.

Previous Next


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