From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.devel Subject: How to remove the "read-only" property... Date: Sun, 28 Aug 2022 19:27:07 +1200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bd97b805e7481306" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13062"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 28 09:28:25 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oSCiX-0003Ft-0b for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Aug 2022 09:28:25 +0200 Original-Received: from localhost ([::1]:34690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSCiV-0002PU-Ks for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Aug 2022 03:28:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSChV-0001ig-Mh for emacs-devel@gnu.org; Sun, 28 Aug 2022 03:27:22 -0400 Original-Received: from mail-yw1-x112e.google.com ([2607:f8b0:4864:20::112e]:45701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSChT-0001Kj-Vf for emacs-devel@gnu.org; Sun, 28 Aug 2022 03:27:21 -0400 Original-Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-33dba2693d0so128655427b3.12 for ; Sun, 28 Aug 2022 00:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=ZH3TUTqpOzICPfCgT8HjnxyKiRZg9wZEPx7BWnKjHow=; b=cNXmlCVJzvM24Dw0PPEBfVo2+sb5NYdB4hQ2xBo5sRTcM5eod04v7iZqKjlSRBKzCN O850XDutRIBcrafNqYro5uMo50TqRc2fixUeV+rAFZ4x+3O8fG7wUDwdajQJ9Xon+wbh /YiPU5Y7Vh4Be7SVUFU/ZYmcQoWgEoFi3/oL6uXrvyW9zvqt2r/RJsaqlYlMqYQH870K M7VKTlHa9OMN3b5hWhg6RqkqULaBX1G+7rUQOS0Pn6+CVZ853qJiibHtVWnHShwZCeOO h04mj+3Ht9RD0C98wYoK/ui1lSuLRq4xU4kT+yp3B89cOaEMZIxtzcjMcgNgAVOsXNgn ARqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=ZH3TUTqpOzICPfCgT8HjnxyKiRZg9wZEPx7BWnKjHow=; b=e+wnL7BEvH6Njy9nmuM0CM/T30vffMWOr8wnGJy9/MUVtOTaUsfMXHXTYtvgn6pMaV J+OvXphhhe2Pc1bwL0e4bZRj6BS2GNzssYgfc5toXTnMLHEoLsv1LCqaQNeKIkos/KZr ApZebgwDUvsSierZaFLMcXcQhG/fXkSdxlG1EFlSEBcXCbXC3Zl5dflW5m/DpTXKxnBA VUDFUEIeLEExYmh8lGL4hecMUxYXxoiBkhl8dQqMDMFWmlh1U1Zvq5oxomf2ZZgl4RzQ Eq8EZwdzwSg9L5KL+Sn6LgH+51ABB+FZvEGNcitUT3Wc4F9ZnzCQpbt9RmbGXS0bKHF4 gSUw== X-Gm-Message-State: ACgBeo3klr09rNk0NkM/4/wBEBiCdTW9hnV7sUdv8d4Z4XP5dJy7WrLv OPIHz25fHLTwJ+TggOtbhIDK3YSxT3iwNddbVSICQJ7NaOg= X-Google-Smtp-Source: AA6agR5HFZhTot0vcBLADZVLmn//+S1eBXSA2EfWTty7vznAMo503MMaulr+DrJX3/+2EqJvWij8pH0GPxpavFobJK0= X-Received: by 2002:a0d:f204:0:b0:333:c23f:d793 with SMTP id b4-20020a0df204000000b00333c23fd793mr6207487ywf.71.1661671638405; Sun, 28 Aug 2022 00:27:18 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::112e; envelope-from=davin.pearson@gmail.com; helo=mail-yw1-x112e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:294215 Archived-At: --000000000000bd97b805e7481306 Content-Type: text/plain; charset="UTF-8" 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 --000000000000bd97b805e7481306 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have written some code that makes the first line read-on= ly:

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

When I try to remove all text-properties:

(condition-ca= se err
=C2=A0 =C2=A0 (save-excursion
=C2=A0 =C2=A0 =C2=A0 (set-text-p= roperties (point-min) (point-max) nil))
=C2=A0 (error
=C2=A0 =C2=A0(m= essage "dmp-error:err=3D%s" err)))

It barfs with the follo= wing error message:

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

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

<= /div>
TIA,

Davin
--000000000000bd97b805e7481306--