Web lists-archives.com

Re: text editors

Ben Finney [2019-03-26 13:28:56+11] wrote:

> If by “protect” you mean “prevent editing these lines but not others”,
> no I think that's not a feature of any editor I know.

Emacs has that feature. See the "read-only" text property in the
following manual (info) page:

    (elisp) Special Properties


In my other message in this thread I showed quick example functions for
(1) making a buffer area read only and (2) removing read only
properties. If someone wants to the functions could be made fancier, for
example with a button that removes the read only status.

/// Teemu Likonen   - .-..   <https://keybase.io/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///

Attachment: signature.asc
Description: PGP signature