GNU bug report logs - #41002
Undo breaks inhibit-read-only text property

Previous Next

Package: emacs;

Reported by: Serhii Mozghovyi <egnartsms <at> gmail.com>

Date: Fri, 1 May 2020 15:42:02 UTC

Severity: normal

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Filipp Gunbin <fgunbin <at> fastmail.fm>
Cc: 41002 <at> debbugs.gnu.org, egnartsms <at> gmail.com, larsi <at> gnus.org
Subject: Re: bug#41002: Undo breaks inhibit-read-only text property
Date: Sat, 09 May 2020 16:49:28 +0300
> From: Filipp Gunbin <fgunbin <at> fastmail.fm>
> Cc: egnartsms <at> gmail.com,  41002 <at> debbugs.gnu.org,  larsi <at> gnus.org
> Date: Sat, 09 May 2020 16:34:43 +0300
> 
> > I think you are right: we need to augment this with something that
> > pays attention to the inhibit-read-only property.  Would you like to
> > suggest a patch?
> 
> That property is checked in INTERVAL_WRITABLE_P just above, it looks
> fine.

That tests if the interval is _not_ writable.  But the problem is not
triggered by the interval, it is triggered by characters after the
interval, is it not?

> The problem is I don't know what the "if" I cited is for.

Hopefully, Lars will answer that.

> > Btw, how is this related to undo?
> 
> Before undo, we seem to have one interval spanning all the text.  After
> undo, there appears a short interval on which "i->position + LENGTH (i)
> < end" triggers.

Right, thanks.  So this situation could be recreated without any undo
in the recipe, right?




This bug report was last modified 5 years and 33 days ago.

Previous Next


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