From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.bugs Subject: bug#6922: 23.1; Setting read-only property in an overlay has no effect Date: Sun, 07 Feb 2016 17:24:26 -0500 Message-ID: References: <1282834016.22363.1391876553@webmail.messagingengine.com> <87wpr67ezy.fsf@mbork.pl> <837fj49lni.fsf@gnu.org> Reply-To: John Wiegley NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454883927 31268 80.91.229.3 (7 Feb 2016 22:25:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2016 22:25:27 +0000 (UTC) Cc: Marcin Borkowski , mt_void@warpmail.net, Richard Stallman , 6922@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 07 23:25:16 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 1aSXla-0006VL-MF for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Feb 2016 23:25:14 +0100 Original-Received: from localhost ([::1]:38748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSXlZ-0002wR-SA for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Feb 2016 17:25:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSXlT-0002qD-V4 for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 17:25:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSXlO-0000Ln-OK for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 17:25:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSXlO-0000Lj-KR for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 17:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aSXlO-00057P-FM for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 17:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: John Wiegley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2016 22:25: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.145488388119623 (code B ref 6922); Sun, 07 Feb 2016 22:25:02 +0000 Original-Received: (at 6922) by debbugs.gnu.org; 7 Feb 2016 22:24:41 +0000 Original-Received: from localhost ([127.0.0.1]:37666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSXl3-00056R-6H for submit@debbugs.gnu.org; Sun, 07 Feb 2016 17:24:41 -0500 Original-Received: from mail-ig0-f177.google.com ([209.85.213.177]:37860) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSXl2-00056F-Ie for 6922@debbugs.gnu.org; Sun, 07 Feb 2016 17:24:40 -0500 Original-Received: by mail-ig0-f177.google.com with SMTP id 5so47395024igt.0 for <6922@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) Original-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) X-Google-Original-From: John Wiegley Original-Received: by Hermes.local (Postfix, from userid 501) id 18B0D4DD604E; Sun, 7 Feb 2016 17:24:33 -0500 (EST) In-Reply-To: <837fj49lni.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 20 Jan 2016 20:00:01 +0200") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) 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:112668 Archived-At: >>>>> 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). -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2