GNU bug report logs - #6922
23.1; Setting read-only property in an overlay has no effect

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "MT" <mt_void@HIDDEN>; dated Thu, 26 Aug 2010 14:51:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 6922 <at> debbugs.gnu.org:


Received: (at 6922) by debbugs.gnu.org; 8 Feb 2016 18:26:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 08 13:26:38 2016
Received: from localhost ([127.0.0.1]:60410 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aSqWE-000144-6p
	for submit <at> debbugs.gnu.org; Mon, 08 Feb 2016 13:26:38 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43544)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eliz@HIDDEN>) id 1aSqIK-0000b7-4x
 for 6922 <at> debbugs.gnu.org; Mon, 08 Feb 2016 13:12:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aSq2Z-0003br-5V
 for 6922 <at> debbugs.gnu.org; Mon, 08 Feb 2016 12:56:02 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33843)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aSq2J-0003a5-Mp; Mon, 08 Feb 2016 12:55:43 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1532
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1aSq2C-0006MD-7O; Mon, 08 Feb 2016 12:55:36 -0500
Date: Mon, 08 Feb 2016 19:55:19 +0200
Message-Id: <834mdjqe7s.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: "John Wiegley" <johnw@HIDDEN>
In-reply-to: <m2oabrqjd5.fsf@HIDDEN> (message from John Wiegley on
 Mon, 08 Feb 2016 11:04:06 -0500)
Subject: Re: bug#6922: 23.1;
 Setting read-only property in an overlay has no effect
References: <1282834016.22363.1391876553@HIDDEN>
 <87wpr67ezy.fsf@HIDDEN> <837fj49lni.fsf@HIDDEN>
 <m2oabrqjd5.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.3 (-----)
X-Debbugs-Envelope-To: 6922
Cc: mt_void@HIDDEN, mbork@HIDDEN, rms@HIDDEN, 6922 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.3 (-----)

> From: John Wiegley <jwiegley@HIDDEN>
> Cc: Marcin Borkowski <mbork@HIDDEN>,  Richard Stallman <rms@HIDDEN>,  6922 <at> debbugs.gnu.org,  mt_void@HIDDEN
> Date: Mon, 08 Feb 2016 11:04:06 -0500
> 
> >>>>> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > What is the current consensus? should we adjust the documentation or fix the
> > code? John? Richard?
> 
> Eli, can you fix to code to allows read-only overlays? Once you do, I'd like
> to write a mask.el module for GNU ELPA to support masked editing.

I'll take a look.  Of course, if someone wants to beat me to it, feel
free.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6922; Package emacs. Full text available.

Message received at 6922 <at> debbugs.gnu.org:


Received: (at 6922) by debbugs.gnu.org; 7 Feb 2016 22:30:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 07 17:30:49 2016
Received: from localhost ([127.0.0.1]:37674 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aSXqz-0005GG-6L
	for submit <at> debbugs.gnu.org; Sun, 07 Feb 2016 17:30:49 -0500
Received: from mail.mojserwer.eu ([195.110.48.8]:53436)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <mbork@HIDDEN>) id 1aSXqy-0005G9-4j
 for 6922 <at> debbugs.gnu.org; Sun, 07 Feb 2016 17:30:48 -0500
Received: from localhost (localhost [127.0.0.1])
 by mail.mojserwer.eu (Postfix) with ESMTP id A87C59D2002;
 Sun,  7 Feb 2016 23:30:46 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu
Received: from mail.mojserwer.eu ([127.0.0.1])
 by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id a6R4heB9tZGO; Sun,  7 Feb 2016 23:30:42 +0100 (CET)
Received: from localhost (unknown [109.232.24.28])
 by mail.mojserwer.eu (Postfix) with ESMTPSA id C8CFF9D2001;
 Sun,  7 Feb 2016 23:30:42 +0100 (CET)
References: <1282834016.22363.1391876553@HIDDEN>
 <87wpr67ezy.fsf@HIDDEN> <837fj49lni.fsf@HIDDEN>
 <m28u2wupk5.fsf@HIDDEN>
User-agent: mu4e 0.9.13; emacs 25.1.50.1
From: Marcin Borkowski <mbork@HIDDEN>
To: John Wiegley <johnw@HIDDEN>
Subject: Re: bug#6922: 23.1;
 Setting read-only property in an overlay has no effect
In-reply-to: <m28u2wupk5.fsf@HIDDEN>
Date: Sun, 07 Feb 2016 23:30:42 +0100
Message-ID: <87twlkb1bh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 6922
Cc: Eli Zaretskii <eliz@HIDDEN>, mt_void@HIDDEN,
 Richard Stallman <rms@HIDDEN>, 6922 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)


On 2016-02-07, at 23:24, John Wiegley <jwiegley@HIDDEN> wrote:

>>>>>> Eli Zaretskii <eliz@HIDDEN> writes:
>
>> What is the current consensus? should we adjust the documentation or fix the
>> code? John? Richard?
>
> I think read-only overlays could be very useful. For example:
>
>  1. Create a command called `mask-regexp'. It creates read-only overlays for
>     matching text throughout the buffer.
>  2. There should also be a way to add manual masks, using `mask-region'.
>  3. Now use `replace-string' or any other command to bulk transform text.
>     However, masked text is not changed.
>  4. Then execute unmask-all, and the mask disappears.
>
> This method of editing is key to video editing workflows. I think the only
> reason I never thought to use it in Emacs is because it's never been there
> (and so never occurred to me until now).

That's a fantastic idea!  I envision "LaTeX-mask-environment", and bam!
query-replace does not touch verbatim, for instance.  That could be very
useful!  I did something similar with texmathp and math mode, but I like
your approach with "masking".

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6922; Package emacs. Full text available.

Message received at 6922 <at> debbugs.gnu.org:


Received: (at 6922) by debbugs.gnu.org; 7 Feb 2016 22:24:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 07 17:24:41 2016
Received: from localhost ([127.0.0.1]:37666 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aSXl3-00056R-6H
	for submit <at> debbugs.gnu.org; Sun, 07 Feb 2016 17:24:41 -0500
Received: from mail-ig0-f177.google.com ([209.85.213.177]:37860)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <jwiegley@HIDDEN>) id 1aSXl2-00056F-Ie
 for 6922 <at> debbugs.gnu.org; Sun, 07 Feb 2016 17:24:40 -0500
Received: by mail-ig0-f177.google.com with SMTP id 5so47395024igt.0
 for <6922 <at> debbugs.gnu.org>; Sun, 07 Feb 2016 14:24:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:in-reply-to:date:message-id:references
 :user-agent:reply-to:mime-version:content-type;
 bh=IK1tbOajrPJZZc6x/Ej0C05cyjy9UsmfDOjsiTtCzBg=;
 b=gXuFXJcSiob7LbDwwP5P3ZgbK/DkINJBlQn5RTi3oAiLmtOZVrFwTihvBJXXTg4Psc
 8vsutqoFprI0794shXVyjlhH4UdiQDSIoIPfTbMEIHG1ueZrzZnVvMealXEDll3OBugZ
 hCbPYniNW7FBmE41FRCqH0EFHJikBFSkDGkGDMMoQrPaw7zyek1qoIWG6Gg91wpZYl4B
 nuW+Tn5DlnlVwGb+UHmgfqjlZk0JKvzsAK65ZBKXbivkeB6+YEI01pQ/2ipP7b7gGwtu
 ZcGzxP4A9G8u17Y1woblzkU5gO3pLrb6MoDzOlSrVclHxoxKmmNIOBHV9neVTM46mj6A
 IAAA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id
 :references:user-agent:reply-to:mime-version:content-type;
 bh=IK1tbOajrPJZZc6x/Ej0C05cyjy9UsmfDOjsiTtCzBg=;
 b=cMOTq4bviCB4LR4o6URAVnVV8VuHX+7xncrYZmKAbtAFB/l3CMJZogcFvWajHqEYyc
 FAjtU4aNWm+qoVyooIVrIvzXVkrVH67BKTFD5CDdud9OsFnsKC7amq+ManMpzcBxrqdT
 0HypUvkUasJ16lkZ7+XS5KUfgVos28ReRiia2CALQGeKy/1Jvtw0Z1WMTKtTnNKbTKZY
 JlxPNwk3H7EQf88wKYSp6o6JOlqY9BvZncsJar4jbVdeQDrhnZgjsybBpHVi6WZxYZq8
 ZtsHx2/JIYr7uDy/um1oRHpyLR0/5WWpEBUeVXleaBLI3QENnrbnhnBngHotpqrMhw3W
 hqdQ==
X-Gm-Message-State: AG10YOQwokEkgoaAk25E412KSi/pfO/3dkgiaCKnXKjpLvn/PGDyCo7MkP32xqpnANr8Hg==
X-Received: by 10.50.142.73 with SMTP id ru9mr21319640igb.92.1454883875081;
 Sun, 07 Feb 2016 14:24:35 -0800 (PST)
Received: from Hermes.local (mail.johnwiegley.com. [208.82.103.192])
 by smtp.gmail.com with ESMTPSA id ie16sm4070501igb.11.2016.02.07.14.24.34
 (version=TLS1 cipher=AES128-SHA bits=128/128);
 Sun, 07 Feb 2016 14:24:34 -0800 (PST)
From: John Wiegley <jwiegley@HIDDEN>
X-Google-Original-From: John Wiegley <johnw@HIDDEN>
Received: by Hermes.local (Postfix, from userid 501)
 id 18B0D4DD604E; Sun,  7 Feb 2016 17:24:33 -0500 (EST)
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#6922: 23.1;
 Setting read-only property in an overlay has no effect
In-Reply-To: <837fj49lni.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 20 Jan
 2016 20:00:01 +0200")
Date: Sun, 07 Feb 2016 17:24:26 -0500
Message-ID: <m28u2wupk5.fsf@HIDDEN>
References: <1282834016.22363.1391876553@HIDDEN>
 <87wpr67ezy.fsf@HIDDEN> <837fj49lni.fsf@HIDDEN>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 6922
Cc: mt_void@HIDDEN, Marcin Borkowski <mbork@HIDDEN>,
 Richard Stallman <rms@HIDDEN>, 6922 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: John Wiegley <johnw@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

>>>>> Eli Zaretskii <eliz@HIDDEN> writes:

> What is the current consensus? should we adjust the documentation or fix the
> code? John? Richard?

I think read-only overlays could be very useful. For example:

 1. Create a command called `mask-regexp'. It creates read-only overlays for
    matching text throughout the buffer.
 2. There should also be a way to add manual masks, using `mask-region'.
 3. Now use `replace-string' or any other command to bulk transform text.
    However, masked text is not changed.
 4. Then execute unmask-all, and the mask disappears.

This method of editing is key to video editing workflows. I think the only
reason I never thought to use it in Emacs is because it's never been there
(and so never occurred to me until now).

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6922; Package emacs. Full text available.

Message received at 6922 <at> debbugs.gnu.org:


Received: (at 6922) by debbugs.gnu.org; 22 Jan 2016 12:58:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 22 07:58:24 2016
Received: from localhost ([127.0.0.1]:57118 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aMbID-0008Uj-1I
	for submit <at> debbugs.gnu.org; Fri, 22 Jan 2016 07:58:24 -0500
Received: from mail.mojserwer.eu ([195.110.48.8]:58312)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <mbork@HIDDEN>) id 1aMbI7-0008UW-KE
 for 6922 <at> debbugs.gnu.org; Fri, 22 Jan 2016 07:58:19 -0500
Received: from localhost (localhost [127.0.0.1])
 by mail.mojserwer.eu (Postfix) with ESMTP id 8AE1D8913B5;
 Fri, 22 Jan 2016 13:58:13 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu
Received: from mail.mojserwer.eu ([127.0.0.1])
 by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 0pWsojP9bXkd; Fri, 22 Jan 2016 13:58:09 +0100 (CET)
Received: from localhost (unknown [109.232.24.28])
 by mail.mojserwer.eu (Postfix) with ESMTPSA id 8583D8F2020;
 Fri, 22 Jan 2016 13:58:09 +0100 (CET)
References: <1282834016.22363.1391876553@HIDDEN>
 <87wpr67ezy.fsf@HIDDEN> <837fj49lni.fsf@HIDDEN>
 <E1aM5Vr-0006bp-D2@HIDDEN> <83oace96rp.fsf@HIDDEN>
 <E1aMSKz-0006ZL-TJ@HIDDEN> <83oace6p4r.fsf@HIDDEN>
 <m3a8nxdglv.fsf@HIDDEN>
User-agent: mu4e 0.9.13; emacs 25.1.50.1
From: Marcin Borkowski <mbork@HIDDEN>
To: Lars Magne Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#6922: 23.1;
 Setting read-only property in an overlay has no effect
In-reply-to: <m3a8nxdglv.fsf@HIDDEN>
Date: Fri, 22 Jan 2016 13:58:08 +0100
Message-ID: <87bn8d93fj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 6922
Cc: Eli Zaretskii <eliz@HIDDEN>, johnw@HIDDEN, mt_void@HIDDEN,
 rms@HIDDEN, 6922 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)


On 2016-01-22, at 11:59, Lars Magne Ingebrigtsen <larsi@HIDDEN> wrote:

> Eli Zaretskii <eliz@HIDDEN> writes:
>
>> What do others think?
>
> I think read-only overlays sound kinda nonsensical, too.

Not necessarily.  This is not the same, of course, but compare Dired to
Wdired: the same text is sometimes read-only and sometimes not, and it
does make a lot of sense.

Another possible use-case: a feature like narrowing, but not making some
text invisible, but read-only instead.  (This might actually be useful,
e.g. in Org-mode.)

Of course, you could do this with text properties and not overlays, but
what I'm saying is that the assumption "it [is] strange to make certain
text read-only temporarily.  If it isn't supposed to change, it should
never change, right?" is false in general, even in current stock Emacs.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6922; Package emacs. Full text available.

Message received at 6922 <at> debbugs.gnu.org:


Received: (at 6922) by debbugs.gnu.org; 22 Jan 2016 11:00:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 22 06:00:29 2016
Received: from localhost ([127.0.0.1]:57014 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aMZS9-00041Y-Ic
	for submit <at> debbugs.gnu.org; Fri, 22 Jan 2016 06:00:29 -0500
Received: from hermes.netfonds.no ([80.91.224.195]:40020)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <larsi@HIDDEN>) id 1aMZS5-00041L-Kl
 for 6922 <at> debbugs.gnu.org; Fri, 22 Jan 2016 06:00:27 -0500
Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories)
 by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.72) (envelope-from <larsi@HIDDEN>)
 id 1aMZRc-0004Tm-Mk; Fri, 22 Jan 2016 11:59:56 +0100
From: Lars Magne Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#6922: 23.1;
 Setting read-only property in an overlay has no effect
References: <1282834016.22363.1391876553@HIDDEN>
 <87wpr67ezy.fsf@HIDDEN> <837fj49lni.fsf@HIDDEN>
 <E1aM5Vr-0006bp-D2@HIDDEN> <83oace96rp.fsf@HIDDEN>
 <E1aMSKz-0006ZL-TJ@HIDDEN> <83oace6p4r.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEW0sq28u7eloZ1DP0mH
 foGyr6uvq6Z47UPVAAACTElEQVQ4jV2UwXLjIAyG5bTkDLtJzg1xOLfBs/dixWfiWfmcMgvv/wgr
 YbtNq/HEoE+/JGQmMNrFAn4zgI99sbaw2UdrwTo1lZILFeceCThXMsVJEWWRpZWCZJloNvYXVxK7
 S6qAMhFLaGIgxdyYEjgBdAfKU57KaqkwoAgKQFFkUPsohTuFIgAgUopcfiiz6rAC5QhtPhOuuSYG
 E4Nnf70gjmM/8Ikyt6mAT0EAT4RX7NtTGPLcuYDMJZ6xG/DUns6BN6SkKvcaG9h02f4Lf7f9H/FV
 4/7kFRT3q7jv2juAXttVijPAo8kIBchZfoA8eyj+ACUvKba1BjSzXBRU/Y8CWbqoHovemnXl5uKr
 qbhKeOyyWgL1gr8ptDwaTKOlRQh39RUpQqObmgvP9AW0hBtTd4j2/FnaGPNZTq6jfalZGtNIdGM+
 AVbA4dqI6Zq5gh0GvmTEkr1ZSlTw3vuOnwPitn9bRAKGkw/e48euvxx6fzSaM+4FWF+ta5nyS8K1
 YfDSe3988v7VcLrjL38xWsU7dGEn4b1IGCBr3sxkE3ScSHYcKBHvRn4ObQvDb+/vsusy1/Cvk2jN
 cwem1vWrdXV5MQgbbus4tojBJT5lY2bbSbsh5hzV6uI5SnAF5Ux3zTd28cMmDC1Ih621dOOPw6No
 jI5QXEBgv21tooY/0lTD3XYTWgQvM7E23yRc8XhHpRLyOTz2nGuYGAA1RxnUaBH7qggY0s3sI3/9
 veO7yi7PQKoHd2sM5TTB/WzGCuY/oWANS4pN9rq9Mej9f2dVwUSEmVYpAAAAAElFTkSuQmCC
Date: Fri, 22 Jan 2016 11:59:56 +0100
In-Reply-To: <83oace6p4r.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 22 Jan
 2016 09:37:40 +0200")
Message-ID: <m3a8nxdglv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-MailScanner-ID: 1aMZRc-0004Tm-Mk
X-Netfonds-MailScanner: Found to be clean
X-Netfonds-MailScanner-From: larsi@HIDDEN
MailScanner-NULL-Check: 1454065196.85589@CKfr7NoFBYPDDKudBrvz+A
X-Spam-Status: No
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 6922
Cc: mt_void@HIDDEN, johnw@HIDDEN, mbork@HIDDEN, rms@HIDDEN,
 6922 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

Eli Zaretskii <eliz@HIDDEN> writes:

> What do others think?

I think read-only overlays sound kinda nonsensical, too.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6922; Package emacs. Full text available.

Message received at 6922 <at> debbugs.gnu.org:


Received: (at 6922) by debbugs.gnu.org; 22 Jan 2016 07:37:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 22 02:37:46 2016
Received: from localhost ([127.0.0.1]:56922 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aMWHy-0007Gn-9v
	for submit <at> debbugs.gnu.org; Fri, 22 Jan 2016 02:37:46 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53756)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eliz@HIDDEN>) id 1aMWHw-0007Gb-MU
 for 6922 <at> debbugs.gnu.org; Fri, 22 Jan 2016 02:37:44 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aMWHq-0005iq-Ne
 for 6922 <at> debbugs.gnu.org; Fri, 22 Jan 2016 02:37:39 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33392)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aMWHj-0005iF-BS; Fri, 22 Jan 2016 02:37:31 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4840
 helo=HOME-C4E4A596F7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1aMWHc-00082Y-5N; Fri, 22 Jan 2016 02:37:24 -0500
Date: Fri, 22 Jan 2016 09:37:40 +0200
Message-Id: <83oace6p4r.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: rms@HIDDEN
In-reply-to: <E1aMSKz-0006ZL-TJ@HIDDEN> (message from Richard
 Stallman on Thu, 21 Jan 2016 22:24:37 -0500)
Subject: Re: bug#6922: 23.1;
 Setting read-only property in an overlay has no effect
References: <1282834016.22363.1391876553@HIDDEN>
 <87wpr67ezy.fsf@HIDDEN> <837fj49lni.fsf@HIDDEN>
 <E1aM5Vr-0006bp-D2@HIDDEN> <83oace96rp.fsf@HIDDEN>
 <E1aMSKz-0006ZL-TJ@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 6922
Cc: mt_void@HIDDEN, johnw@HIDDEN, mbork@HIDDEN, 6922 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Richard Stallman <rms@HIDDEN>
> CC: mbork@HIDDEN, johnw@HIDDEN, 6922 <at> debbugs.gnu.org,
> 	mt_void@HIDDEN
> Date: Thu, 21 Jan 2016 22:24:37 -0500
> 
>     > I am not sure that a read-only property on an overlay makes much sense.
>     > It is a strange thing to do.  So I will fix the documentation.
> 
> I don't remember why I wrote that.  It was 6 years ago.  My guess is
> that I considered it strange to make certain text read-only
> temporarily.  If it isn't supposed to change, it should never change,
> right?

I see your point, thanks.

What do others think?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6922; Package emacs. Full text available.

Message received at 6922 <at> debbugs.gnu.org:


Received: (at 6922) by debbugs.gnu.org; 22 Jan 2016 03:25:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 21 22:25:03 2016
Received: from localhost ([127.0.0.1]:56872 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aMSLP-00083a-8Y
	for submit <at> debbugs.gnu.org; Thu, 21 Jan 2016 22:25:03 -0500
Received: from eggs.gnu.org ([208.118.235.92]:54670)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <rms@HIDDEN>) id 1aMSLN-000833-KS
 for 6922 <at> debbugs.gnu.org; Thu, 21 Jan 2016 22:25:01 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rms@HIDDEN>) id 1aMSLD-0004Xl-IR
 for 6922 <at> debbugs.gnu.org; Thu, 21 Jan 2016 22:24:56 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57901)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
 id 1aMSL0-0004S6-Kd; Thu, 21 Jan 2016 22:24:38 -0500
Received: from rms by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rms@HIDDEN>)
 id 1aMSKz-0006ZL-TJ; Thu, 21 Jan 2016 22:24:37 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <83oace96rp.fsf@HIDDEN> (message from Eli Zaretskii on Thu, 21
 Jan 2016 19:33:46 +0200)
Subject: Re: bug#6922: 23.1;
 Setting read-only property in an overlay has no effect
References: <1282834016.22363.1391876553@HIDDEN>
 <87wpr67ezy.fsf@HIDDEN> <837fj49lni.fsf@HIDDEN>
 <E1aM5Vr-0006bp-D2@HIDDEN> <83oace96rp.fsf@HIDDEN>
Message-Id: <E1aMSKz-0006ZL-TJ@HIDDEN>
Date: Thu, 21 Jan 2016 22:24:37 -0500
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 6922
Cc: mt_void@HIDDEN, johnw@HIDDEN, mbork@HIDDEN, 6922 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

    > I am not sure that a read-only property on an overlay makes much sense.
    > It is a strange thing to do.  So I will fix the documentation.

I don't remember why I wrote that.  It was 6 years ago.  My guess is
that I considered it strange to make certain text read-only
temporarily.  If it isn't supposed to change, it should never change,
right?

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6922; Package emacs. Full text available.

Message received at 6922 <at> debbugs.gnu.org:


Received: (at 6922) by debbugs.gnu.org; 21 Jan 2016 17:33:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 21 12:33:56 2016
Received: from localhost ([127.0.0.1]:56664 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aMJ7M-0002SF-FF
	for submit <at> debbugs.gnu.org; Thu, 21 Jan 2016 12:33:56 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35732)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eliz@HIDDEN>) id 1aMJ7L-0002S4-Pv
 for 6922 <at> debbugs.gnu.org; Thu, 21 Jan 2016 12:33:56 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aMJ7C-0001UY-5O
 for 6922 <at> debbugs.gnu.org; Thu, 21 Jan 2016 12:33:50 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49080)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aMJ74-0001TR-Os; Thu, 21 Jan 2016 12:33:38 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4440
 helo=HOME-C4E4A596F7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1aMJ6x-0000lA-MJ; Thu, 21 Jan 2016 12:33:32 -0500
Date: Thu, 21 Jan 2016 19:33:46 +0200
Message-Id: <83oace96rp.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: rms@HIDDEN
In-reply-to: <E1aM5Vr-0006bp-D2@HIDDEN> (message from Richard
 Stallman on Wed, 20 Jan 2016 22:02:19 -0500)
Subject: Re: bug#6922: 23.1;
 Setting read-only property in an overlay has no effect
References: <1282834016.22363.1391876553@HIDDEN>
 <87wpr67ezy.fsf@HIDDEN> <837fj49lni.fsf@HIDDEN>
 <E1aM5Vr-0006bp-D2@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 6922
Cc: mt_void@HIDDEN, johnw@HIDDEN, mbork@HIDDEN, 6922 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Richard Stallman <rms@HIDDEN>
> CC: mbork@HIDDEN, johnw@HIDDEN, 6922 <at> debbugs.gnu.org,
> 	mt_void@HIDDEN
> Date: Wed, 20 Jan 2016 22:02:19 -0500
> 
> I have not been looking at this issue.  Do I need to?

There was an old discussion of this

  http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg01598.html

In that discussion, you said:

  It is no accident that read-only works only as a text property.
  It is tested for in textprop.c only as a text property.

  I am not sure that a read-only property on an overlay makes much sense.
  It is a strange thing to do.  So I will fix the documentation.

I'm asking if you still think the same.  If so, perhaps you could try
explaining why you do (in that old discussion, you said it was hard
for you to put this into words).

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6922; Package emacs. Full text available.

Message received at 6922 <at> debbugs.gnu.org:


Received: (at 6922) by debbugs.gnu.org; 21 Jan 2016 03:02:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 20 22:02:38 2016
Received: from localhost ([127.0.0.1]:55697 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aM5WA-0004LD-5b
	for submit <at> debbugs.gnu.org; Wed, 20 Jan 2016 22:02:38 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43159)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <rms@HIDDEN>) id 1aM5W9-0004L0-2T
 for 6922 <at> debbugs.gnu.org; Wed, 20 Jan 2016 22:02:37 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rms@HIDDEN>) id 1aM5W3-0006em-72
 for 6922 <at> debbugs.gnu.org; Wed, 20 Jan 2016 22:02:31 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36204)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
 id 1aM5Vs-0006Ut-Cc; Wed, 20 Jan 2016 22:02:20 -0500
Received: from rms by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rms@HIDDEN>)
 id 1aM5Vr-0006bp-D2; Wed, 20 Jan 2016 22:02:19 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <837fj49lni.fsf@HIDDEN> (message from Eli Zaretskii on Wed, 20
 Jan 2016 20:00:01 +0200)
Subject: Re: bug#6922: 23.1;
 Setting read-only property in an overlay has no effect
References: <1282834016.22363.1391876553@HIDDEN>
 <87wpr67ezy.fsf@HIDDEN> <837fj49lni.fsf@HIDDEN>
Message-Id: <E1aM5Vr-0006bp-D2@HIDDEN>
Date: Wed, 20 Jan 2016 22:02:19 -0500
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 6922
Cc: mt_void@HIDDEN, johnw@HIDDEN, mbork@HIDDEN, 6922 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

I have not been looking at this issue.  Do I need to?

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6922; Package emacs. Full text available.

Message received at 6922 <at> debbugs.gnu.org:


Received: (at 6922) by debbugs.gnu.org; 20 Jan 2016 18:00:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 20 13:00:11 2016
Received: from localhost ([127.0.0.1]:55501 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aLx3D-00059x-N2
	for submit <at> debbugs.gnu.org; Wed, 20 Jan 2016 13:00:11 -0500
Received: from eggs.gnu.org ([208.118.235.92]:33823)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eliz@HIDDEN>) id 1aLx3B-00059h-SA
 for 6922 <at> debbugs.gnu.org; Wed, 20 Jan 2016 13:00:10 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aLx35-00047k-RI
 for 6922 <at> debbugs.gnu.org; Wed, 20 Jan 2016 13:00:04 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56962)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aLx2z-0003zE-UD; Wed, 20 Jan 2016 12:59:57 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3787
 helo=HOME-C4E4A596F7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1aLx2s-0000JF-HH; Wed, 20 Jan 2016 12:59:51 -0500
Date: Wed, 20 Jan 2016 20:00:01 +0200
Message-Id: <837fj49lni.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Marcin Borkowski <mbork@HIDDEN>, John Wiegley <johnw@HIDDEN>,
 Richard Stallman <rms@HIDDEN>
In-reply-to: <87wpr67ezy.fsf@HIDDEN> (message from Marcin Borkowski on Mon, 
 18 Jan 2016 22:29:53 +0100)
Subject: Re: bug#6922: 23.1;
 Setting read-only property in an overlay has no effect
References: <1282834016.22363.1391876553@HIDDEN>
 <87wpr67ezy.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 6922
Cc: mt_void@HIDDEN, 6922 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Marcin Borkowski <mbork@HIDDEN>
> Date: Mon, 18 Jan 2016 22:29:53 +0100
> Cc: MT <mt_void@HIDDEN>
> 
> For the record, the problem persists in GNU Emacs 25.1.50.1.  Neither
> seems there to be any change in the manual (as RMS suggested in the
> discussion at
> http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg01598.html).

What is the current consensus? should we adjust the documentation or
fix the code?  John?  Richard?

Which other overlay properties don't cause exactly the same effect as
the corresponding text properties?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6922; Package emacs. Full text available.

Message received at 6922 <at> debbugs.gnu.org:


Received: (at 6922) by debbugs.gnu.org; 18 Jan 2016 21:30:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 18 16:30:10 2016
Received: from localhost ([127.0.0.1]:53228 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aLHNJ-0001b9-Q2
	for submit <at> debbugs.gnu.org; Mon, 18 Jan 2016 16:30:10 -0500
Received: from mail.mojserwer.eu ([195.110.48.8]:44131)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <mbork@HIDDEN>) id 1aLHNH-0001az-Q1
 for 6922 <at> debbugs.gnu.org; Mon, 18 Jan 2016 16:30:08 -0500
Received: from localhost (localhost [127.0.0.1])
 by mail.mojserwer.eu (Postfix) with ESMTP id CA5718F2023;
 Mon, 18 Jan 2016 22:30:05 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu
Received: from mail.mojserwer.eu ([127.0.0.1])
 by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 55DAmu-o9Dsu; Mon, 18 Jan 2016 22:29:57 +0100 (CET)
Received: from localhost (unknown [109.232.24.28])
 by mail.mojserwer.eu (Postfix) with ESMTPSA id E14578F2020;
 Mon, 18 Jan 2016 22:29:56 +0100 (CET)
From: Marcin Borkowski <mbork@HIDDEN>
To: 6922 <at> debbugs.gnu.org
Subject: Re: bug#6922: 23.1;
 Setting read-only property in an overlay has no effect
References: <1282834016.22363.1391876553@HIDDEN>
Date: Mon, 18 Jan 2016 22:29:53 +0100
In-Reply-To: <1282834016.22363.1391876553@HIDDEN> (MT's
 message of "Thu, 26 Aug 2010 16:46:56 +0200")
Message-ID: <87wpr67ezy.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 6922
Cc: MT <mt_void@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

For the record, the problem persists in GNU Emacs 25.1.50.1.  Neither
seems there to be any change in the manual (as RMS suggested in the
discussion at
http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg01598.html).

Regards,
Marcin Borkowski


On 2010-08-26, at 17:46, "MT" <mt_void@HIDDEN> wrote:

> If I create an overlay in a buffer and set the 'read-only' property to
> t, it seems to make no difference, and I can still make changes to the
> text in the region where the overlay is active. Setting other overlay
> properties does have an effect. Setting the read-only property as a text
> property however works as expected.
>
> To demonstrate:
> 1. Type some text in an empty buffer.
> 2. (setq overlay (make-overlay 1 10)) ; Creates an overlay in this
> buffer between positions 1-10 named 'overlay'
> 3. (overlay-put overlay 'read-only t) ; Applies the read-only property
> to this overlay.
> 4. Type some characters at the beginning of the buffer. Emacs doesn't
> complain that the text is read-only, and text is edited as normal.
>
> I do this instead:
>    (put-text-property 1 10 'read-only t) ; Apply the read-only property
>    as a text property rather than an overlay
> Now if I try typing text in the same region as before, Emacs prevents me
> from doing so and says 'Text is read-only'.
>
>
>
> In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
>  of 2010-03-29 on rothera, modified by Debian
> Windowing system distributor `The X.Org Foundation', version
> 11.0.10706000
> configured using `configure  '--build=i486-linux-gnu'
> '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
> '--libexecdir=/usr/lib' '--localstatedir=/var/lib'
> '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes'
> '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim'
> '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
> 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu'
> 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''
>
> Important settings:
>   value of $LC_ALL: nil
>   value of $LC_COLLATE: nil
>   value of $LC_CTYPE: nil
>   value of $LC_MESSAGES: nil
>   value of $LC_MONETARY: nil
>   value of $LC_NUMERIC: C
>   value of $LC_TIME: en_DK.UTF-8
>   value of $LANG: en_IN.UTF-8
>   value of $XMODIFIERS: nil
>   locale-coding-system: utf-8-unix
>   default-enable-multibyte-characters: t
>
> Major mode: Fundamental
>
> Minor modes in effect:
>   tooltip-mode: t
>   tool-bar-mode: t
>   mouse-wheel-mode: t
>   menu-bar-mode: t
>   file-name-shadow-mode: t
>   global-font-lock-mode: t
>   blink-cursor-mode: t
>   global-auto-composition-mode: t
>   auto-encryption-mode: t
>   auto-compression-mode: t
>   line-number-mode: t
>   transient-mark-mode: t
>
> Recent input:
> M-x r e p o r t - e m a c s - b u g <return>
>
> Recent messages:
> Setting up ede...
> Loading `eieio': old-style backquotes detected!
> Setting up ede...done
> Setting up eieio...done
> Setting up semantic...done
> Setting up speedbar...done
> Setting up cedet-contrib...done
> Loading /etc/emacs/site-start.d/55ecb.el (source)...done
> For information about GNU Emacs and the GNU system, type C-h C-a.
> /usr/bin/mail is not an executable.  Setting mail-interactive to t.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6922; Package emacs. Full text available.

Message received at 6922 <at> debbugs.gnu.org:


Received: (at 6922) by debbugs.gnu.org; 10 Dec 2011 12:11:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 10 07:11:01 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RZLlc-0003Ru-R1
	for submit <at> debbugs.gnu.org; Sat, 10 Dec 2011 07:11:01 -0500
Received: from smtprelay-b21.telenor.se ([195.54.99.212])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <bojohan@HIDDEN>) id 1RZLlZ-0003Rd-GG
	for 6922 <at> debbugs.gnu.org; Sat, 10 Dec 2011 07:10:58 -0500
Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166])
	by smtprelay-b21.telenor.se (Postfix) with ESMTP id 16752D1D0
	for <6922 <at> debbugs.gnu.org>; Sat, 10 Dec 2011 13:09:55 +0100 (CET)
X-SMTPAUTH-B2: [bocjoh]
X-SENDER-IP: [85.228.192.166]
X-LISTENER: [smtp.bredband.net]
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvHIALRL405V5MCmPGdsb2JhbABDjEOWNIZdgScZAQEBATcygXIBAQEBAwECUzMLISUPAQQUBAEMCog3BrUliFODGgSSTJRN
X-IronPort-AV: E=Sophos;i="4.71,331,1320620400"; d="scan'208";a="13754812"
Received: from c-a6c0e455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO
	muon.localdomain) ([85.228.192.166])
	by ipb3.telenor.se with ESMTP; 10 Dec 2011 13:09:46 +0100
Received: by muon.localdomain (Postfix, from userid 1000)
	id 1FEB648445A; Sat, 10 Dec 2011 13:09:45 +0100 (CET)
From: =?utf-8?Q?Johan_Bockg=C3=A5rd?= <bojohan@HIDDEN>
To: 6922 <at> debbugs.gnu.org
Subject: Re: bug#6922: 23.1;
	Setting read-only property in an overlay has no effect
References: <1282834016.22363.1391876553@HIDDEN>
Mail-Copies-To: never
Date: Sat, 10 Dec 2011 13:09:44 +0100
In-Reply-To: <1282834016.22363.1391876553@HIDDEN> (MT's
	message of "Thu, 26 Aug 2010 16:46:56 +0200")
Message-ID: <87aa70fx13.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.4 (--)
X-Debbugs-Envelope-To: 6922
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.4 (--)


Cf. the discussion on emacs-devel

http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg01498.html




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6922; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Aug 2010 14:50:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 26 10:50:49 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Oodmy-0002Zf-RI
	for submit <at> debbugs.gnu.org; Thu, 26 Aug 2010 10:50:49 -0400
Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <mt_void@HIDDEN>) id 1Oodhw-0002XV-1d
	for submit <at> debbugs.gnu.org; Thu, 26 Aug 2010 10:45:37 -0400
Received: from lists.gnu.org ([199.232.76.165]:34030)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <mt_void@HIDDEN>) id 1OodjJ-0003Bc-Cv
	for submit <at> debbugs.gnu.org; Thu, 26 Aug 2010 10:47:01 -0400
Received: from [140.186.70.92] (port=59394 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OodjH-0000f9-W5
	for bug-gnu-emacs@HIDDEN; Thu, 26 Aug 2010 10:47:01 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <mt_void@HIDDEN>) id 1OodjG-00010v-K3
	for bug-gnu-emacs@HIDDEN; Thu, 26 Aug 2010 10:46:59 -0400
Received: from out1.smtp.messagingengine.com ([66.111.4.25]:49281)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <mt_void@HIDDEN>) id 1OodjG-00010J-Gl
	for bug-gnu-emacs@HIDDEN; Thu, 26 Aug 2010 10:46:58 -0400
Received: from compute1.internal (compute1.internal [10.202.2.41])
	by gateway1.messagingengine.com (Postfix) with ESMTP id 601CA4CD
	for <bug-gnu-emacs@HIDDEN>; Thu, 26 Aug 2010 10:46:56 -0400 (EDT)
Received: from web3.messagingengine.com ([10.202.2.213])
	by compute1.internal (MEProxy); Thu, 26 Aug 2010 10:46:56 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com;
	h=message-id:from:to:mime-version:content-transfer-encoding:content-type:subject:date;
	s=smtpout; bh=Ne5C6Cu+wNbJunmYNJ1zkw0nZZU=;
	b=ZzJdQjDV/LluPB0yjtRBjQS3l2aJFw+NALCnZ3j6H6/YOgaKBdgFaMsq2OHm+00YAQQM8Ay32YzvYFapWas6lhR3tNboZcC0prrk0cp+4TmSy4kmiV8tTXCCO79kpJaEcY5VD3regtRW0b3zW406ibqyG/8p2qTKtUVBeoVHZ24=
Received: by web3.messagingengine.com (Postfix, from userid 99)
	id 3E555AA09D8; Thu, 26 Aug 2010 10:46:56 -0400 (EDT)
Message-Id: <1282834016.22363.1391876553@HIDDEN>
X-Sasl-Enc: HsOzXMTnL2rNAf9Rhs5nbKjGYKJIu13a5AvlVtHs1J4J 1282834016
From: "MT" <mt_void@HIDDEN>
To: bug-gnu-emacs@HIDDEN
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"
X-Mailer: MessagingEngine.com Webmail Interface
Subject: 23.1; Setting read-only property in an overlay has no effect
Date: Thu, 26 Aug 2010 16:46:56 +0200
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
	seldom 2.4 (older, 4)
X-Spam-Score: -5.9 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 26 Aug 2010 10:50:48 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.9 (-----)


If I create an overlay in a buffer and set the 'read-only' property to
t, it seems to make no difference, and I can still make changes to the
text in the region where the overlay is active. Setting other overlay
properties does have an effect. Setting the read-only property as a text
property however works as expected.

To demonstrate:
1. Type some text in an empty buffer.
2. (setq overlay (make-overlay 1 10)) ; Creates an overlay in this
buffer between positions 1-10 named 'overlay'
3. (overlay-put overlay 'read-only t) ; Applies the read-only property
to this overlay.
4. Type some characters at the beginning of the buffer. Emacs doesn't
complain that the text is read-only, and text is edited as normal.

I do this instead:
   (put-text-property 1 10 'read-only t) ; Apply the read-only property
   as a text property rather than an overlay
Now if I try typing text in the same region as before, Emacs prevents me
from doing so and says 'Text is read-only'.



In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-03-29 on rothera, modified by Debian
Windowing system distributor `The X.Org Foundation', version
11.0.10706000
configured using `configure  '--build=i486-linux-gnu'
'--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--localstatedir=/var/lib'
'--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim'
'--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu'
'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: C
  value of $LC_TIME: en_DK.UTF-8
  value of $LANG: en_IN.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r e p o r t - e m a c s - b u g <return>

Recent messages:
Setting up ede...
Loading `eieio': old-style backquotes detected!
Setting up ede...done
Setting up eieio...done
Setting up semantic...done
Setting up speedbar...done
Setting up cedet-contrib...done
Loading /etc/emacs/site-start.d/55ecb.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
/usr/bin/mail is not an executable.  Setting mail-interactive to t.

-- 
http://www.fastmail.fm - Or how I learned to stop worrying and
                          love email again





Acknowledgement sent to "MT" <mt_void@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#6922; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 8 Feb 2016 18:30:01 UTC

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