unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: John Wiegley <johnw@gnu.org>
Cc: mt_void@warpmail.net, Richard Stallman <rms@gnu.org>,
	6922@debbugs.gnu.org
Subject: bug#6922: 23.1; Setting read-only property in an overlay has no effect
Date: Sun, 07 Feb 2016 23:30:42 +0100	[thread overview]
Message-ID: <87twlkb1bh.fsf@mbork.pl> (raw)
In-Reply-To: <m28u2wupk5.fsf@newartisans.com>


On 2016-02-07, at 23:24, John Wiegley <jwiegley@gmail.com> wrote:

>>>>>> Eli Zaretskii <eliz@gnu.org> 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).

That's a fantastic idea!  I envision "LaTeX-mask-environment", and bam!
query-replace does not touch verbatim, for instance.  That could be very
useful!  I did something similar with texmathp and math mode, but I like
your approach with "masking".

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University





  reply	other threads:[~2016-02-07 22:30 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-26 14:46 bug#6922: 23.1; Setting read-only property in an overlay has no effect MT
2011-12-10 12:09 ` Johan Bockgård
2016-01-18 21:29 ` Marcin Borkowski
2016-01-20 18:00   ` Eli Zaretskii
2016-01-21  3:02     ` Richard Stallman
2016-01-21 17:33       ` Eli Zaretskii
2016-01-22  3:24         ` Richard Stallman
2016-01-22  7:37           ` Eli Zaretskii
2016-01-22 10:59             ` Lars Magne Ingebrigtsen
2016-01-22 12:58               ` Marcin Borkowski
2016-02-07 22:24     ` John Wiegley
2016-02-07 22:30       ` Marcin Borkowski [this message]
2016-02-18  5:12       ` Marcin Borkowski
2016-02-18 16:52         ` Eli Zaretskii
2016-02-18 18:53           ` John Wiegley
2016-02-08 16:04     ` John Wiegley
2016-02-08 17:55       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87twlkb1bh.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=6922@debbugs.gnu.org \
    --cc=johnw@gnu.org \
    --cc=mt_void@warpmail.net \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).