emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to remove the "read-only" property...


From: Eli Zaretskii
Subject: Re: How to remove the "read-only" property...
Date: Sun, 28 Aug 2022 11:16:54 +0300

> From: Davin Pearson <davin.pearson@gmail.com>
> Date: Sun, 28 Aug 2022 19:27:07 +1200
> 
> 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?

Bind inhibit-read-only to a non-nil value.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]