From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6922: 23.1; Setting read-only property in an overlay has no effect Date: Thu, 18 Feb 2016 18:52:43 +0200 Message-ID: <83y4ait0ys.fsf@gnu.org> References: <1282834016.22363.1391876553@webmail.messagingengine.com> <87wpr67ezy.fsf@mbork.pl> <837fj49lni.fsf@gnu.org> <87h9h6zjn9.fsf@mbork.pl> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1455814466 12403 80.91.229.3 (18 Feb 2016 16:54:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2016 16:54:26 +0000 (UTC) Cc: johnw@gnu.org, mt_void@warpmail.net, rms@gnu.org, 6922@debbugs.gnu.org To: Marcin Borkowski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 18 17:54:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aWRqH-00020v-9L for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Feb 2016 17:54:13 +0100 Original-Received: from localhost ([::1]:43080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWRqG-0006kk-OV for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Feb 2016 11:54:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWRpA-0004nI-0M for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2016 11:53:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWRp8-0008IZ-AF for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2016 11:53:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWRp8-0008IL-63 for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2016 11:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aWRp8-0006EA-0h for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2016 11:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Feb 2016 16:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6922 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6922-submit@debbugs.gnu.org id=B6922.145581437523926 (code B ref 6922); Thu, 18 Feb 2016 16:53:01 +0000 Original-Received: (at 6922) by debbugs.gnu.org; 18 Feb 2016 16:52:55 +0000 Original-Received: from localhost ([127.0.0.1]:33142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aWRp0-0006Dq-Nx for submit@debbugs.gnu.org; Thu, 18 Feb 2016 11:52:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42363) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aWRoz-0006De-1C for 6922@debbugs.gnu.org; Thu, 18 Feb 2016 11:52:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWRos-00084F-Ex for 6922@debbugs.gnu.org; Thu, 18 Feb 2016 11:52:47 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWRok-0007yg-8q; Thu, 18 Feb 2016 11:52:38 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1848 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aWRoY-0000oj-Ug; Thu, 18 Feb 2016 11:52:27 -0500 In-reply-to: <87h9h6zjn9.fsf@mbork.pl> (message from Marcin Borkowski on Thu, 18 Feb 2016 06:12:42 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113247 Archived-At: > From: Marcin Borkowski > Cc: Eli Zaretskii , Richard Stallman , > 6922@debbugs.gnu.org, mt_void@warpmail.net, > Org-Mode mailing list , emacs-devel > Date: Thu, 18 Feb 2016 06:12:42 +0100 > > I just realized that this idea could be /extremely/ useful. Here's the > case: I start a clock in Org-mode (C-c C-x C-i), and an entry with the > starting time is added in the :LOGBOOK: drawer (and btw, it is > invisible). While working on the file, I hit C-/ (undo) once too many, > and the entry disappears (and this fact is still invisible to me!). > Then, after some more work, I stop the clock only to see "org-clock-out: > Clock start time is gone", and my clock is still going on (!). > > While the last thing (about the clock still going on) is probably an > Org-mode bug (I'll propbably report it later "officially", I'm now > Cc-ing this message to the Org-mode ML), the whole experience (and yes, > it happened to me) is /very/ confusing. > > When read-only properties and masking are here, Org could just mark the > half-done entry as read-only. I suspect that trying to undo it would > perhaps trigger some error, which could be confusing, but it would be > still better than silently removing a vital information. If you are arguing for having a feature that marks some portion of buffer text read-only, then we already have that: the 'read-only' text property. The issue in this discussion is whether we should _also_ have a similar overlay property. (Please don't cross-post to the bug tracker and to emacs-devel.)