From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.devel Subject: Re: Inhibiting read-only Date: Wed, 19 Jun 2013 23:14:29 +0530 Message-ID: <87ip1a6lmq.fsf@gmail.com> References: <87ehby84p1.fsf@gmail.com> <87a9mm83x7.fsf@gmail.com> <878v2682sj.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371663816 8875 80.91.229.3 (19 Jun 2013 17:43:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Jun 2013 17:43:36 +0000 (UTC) Cc: Juanma Barranquero , Emacs developers To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 19 19:43:37 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UpMPw-00056t-M0 for ged-emacs-devel@m.gmane.org; Wed, 19 Jun 2013 19:43:36 +0200 Original-Received: from localhost ([::1]:38540 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpMPw-0003d7-Bb for ged-emacs-devel@m.gmane.org; Wed, 19 Jun 2013 13:43:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpMPs-0003ca-TI for emacs-devel@gnu.org; Wed, 19 Jun 2013 13:43:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpMPo-0004Ke-CW for emacs-devel@gnu.org; Wed, 19 Jun 2013 13:43:32 -0400 Original-Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:44829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpMPo-0004KY-57 for emacs-devel@gnu.org; Wed, 19 Jun 2013 13:43:28 -0400 Original-Received: by mail-pa0-f45.google.com with SMTP id bi5so5408157pad.18 for ; Wed, 19 Jun 2013 10:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=zfODby8J9kOMMT3s5eRHIe0zm3Ih/XB5r0XUQvCaz1o=; b=y/TwV4mm794Oa4PDddzMXZ7bH6Ww+29tjpGGNg8aFlfLNcACoJ18WZ4qznSOMAlir7 8OmpAMrcf3PXCfiXNA1qRnns420dyl7pdztrhA8Y2hV8SANShc8OYDu0om5CXhtvBP8G ii/2CXlrZFltR8aMztU46TU6qgzZnnS2V8M+5goUZ2bb9kPMbDrfeiVvTQWYprm+tAD9 Xa1GWuBSqrC749ULEpP8Vy3laDUyOzOYauZsS9QscIXyetHfLYxj03TpyP1s33TReigt zebu8s0ueWyKw42beVA9G2ay4NXZaedUZ0o7OsHLuBdcblwSwQ9cg2mLIwunTNbCeewW G1Ig== X-Received: by 10.66.171.231 with SMTP id ax7mr7986420pac.32.1371663807364; Wed, 19 Jun 2013 10:43:27 -0700 (PDT) Original-Received: from debian-6.05 ([115.242.219.48]) by mx.google.com with ESMTPSA id ix3sm23955155pbc.37.2013.06.19.10.43.23 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 19 Jun 2013 10:43:26 -0700 (PDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 19 Jun 2013 19:11:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160693 Archived-At: Lars Magne Ingebrigtsen writes: > Jambunathan K 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.