unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How to remove the "read-only" property...
@ 2022-08-28  7:27 Davin Pearson
  2022-08-28  7:39 ` Emanuel Berg
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Davin Pearson @ 2022-08-28  7:27 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

I have written some code that makes the first line read-only:

(save-excursion
  (goto-char (point-min))
  (set-text-properties (point-at-bol) (point-at-eol) '(read-only t))
  )

When I try to remove all text-properties:

(condition-case err
    (save-excursion
      (set-text-properties (point-min) (point-max) nil))
  (error
   (message "dmp-error:err=%s" err)))

It barfs with the following error message:

dmp-error:err=(text-read-only)

How do I go about removing the read-only property of the text?

TIA,

Davin

[-- Attachment #2: Type: text/html, Size: 686 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-08-29 17:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-28  7:27 How to remove the "read-only" property Davin Pearson
2022-08-28  7:39 ` Emanuel Berg
2022-08-28  7:47   ` Davin Pearson
2022-08-28  7:55   ` Davin Pearson
2022-08-28  8:18     ` Eli Zaretskii
2022-08-28  9:04     ` Basil L. Contovounesios
2022-08-29  5:05   ` Davin Pearson
2022-08-29 12:46     ` Stefan Monnier
2022-08-29 17:32       ` Stefan Kangas
2022-08-28  7:42 ` Visuwesh
2022-08-28  8:16 ` Eli Zaretskii
2022-08-28 15:11 ` Stefan Monnier
2022-08-28 15:34 ` Stefan Monnier

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).