emacs-devel
[Top][All Lists]
Advanced

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

Re: Inhibiting read-only


From: Jambunathan K
Subject: Re: Inhibiting read-only
Date: Wed, 19 Jun 2013 23:14:29 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> writes:

> Jambunathan K <address@hidden> writes:
>
>>   (add-text-properties (point) (point-max) '(read-only t))
>
> I do not want to put the `read-only' text property on the rest of the
> text, because that makes copying/yanking the text really annoying.

So `read-only' is discarded while yanking. (See `yank-excluded-properties') .

But when you are yanking a (... 'read-only 'read-only) text in the
middle of an (... 'read-only 'editable) field, I see that the 'read-only
property is removed altogether on the newly yanked portion.  (I am
wondering) Shouldn't the yanked text should inherit the read-only
property of the surrounding text and thus get the ('read-only 'editable)
value.



reply via email to

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