From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.bugs,gmane.emacs.devel,gmane.emacs.orgmode Subject: bug#6922: 23.1; Setting read-only property in an overlay has no effect Date: Thu, 18 Feb 2016 06:12:42 +0100 Message-ID: <87h9h6zjn9.fsf@mbork.pl> References: <1282834016.22363.1391876553@webmail.messagingengine.com> <87wpr67ezy.fsf@mbork.pl> <837fj49lni.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455772405 7236 80.91.229.3 (18 Feb 2016 05:13:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2016 05:13:25 +0000 (UTC) Cc: Richard Stallman , 6922@debbugs.gnu.org, emacs-devel , Org-Mode mailing list , mt_void@warpmail.net To: John Wiegley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 18 06:13: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 1aWGtt-00055Z-KK for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Feb 2016 06:13:13 +0100 Original-Received: from localhost ([::1]:37007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWGts-0005Gy-Sb for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Feb 2016 00:13:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWGtl-0005CS-NF for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2016 00:13:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWGti-0001yD-HC for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2016 00:13:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWGti-0001y9-EO for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2016 00:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aWGti-00015M-69 for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2016 00:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Marcin Borkowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Feb 2016 05:13:02 +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.14557723794160 (code B ref 6922); Thu, 18 Feb 2016 05:13:02 +0000 Original-Received: (at 6922) by debbugs.gnu.org; 18 Feb 2016 05:12:59 +0000 Original-Received: from localhost ([127.0.0.1]:60141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aWGte-000152-N2 for submit@debbugs.gnu.org; Thu, 18 Feb 2016 00:12:58 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:56224) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aWGtc-00014u-Uq for 6922@debbugs.gnu.org; Thu, 18 Feb 2016 00:12:57 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id EAFFF9D2004; Thu, 18 Feb 2016 06:12:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-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 wfPGzqGwuqej; Thu, 18 Feb 2016 06:12:47 +0100 (CET) Original-Received: from localhost (unknown [109.232.24.28]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 01CDE9D2003; Thu, 18 Feb 2016 06:12:46 +0100 (CET) User-agent: mu4e 0.9.13; emacs 25.1.50.2 In-reply-to: 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:113227 gmane.emacs.devel:200116 gmane.emacs.orgmode:105154 Archived-At: On 2016-02-07, at 23:24, John Wiegley wrote: >>>>>> Eli Zaretskii 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). Hi, 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. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University