From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to remove the "read-only" property... Date: Sun, 28 Aug 2022 11:16:54 +0300 Message-ID: <83y1v8ye89.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40774"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Davin Pearson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 28 10:17:56 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 1oSDUR-000AQt-Rd for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Aug 2022 10:17:56 +0200 Original-Received: from localhost ([::1]:60474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSDUQ-0002tH-NO for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Aug 2022 04:17:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSDTD-0001RQ-Ks for emacs-devel@gnu.org; Sun, 28 Aug 2022 04:16:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50116) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSDTD-0008N5-9D; Sun, 28 Aug 2022 04:16:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=onRFkWvReFvkg2QoPP+Zhn5TyOIQ51TI/B0Kn44A1Rc=; b=aDNw1fQCZVPt aBgemXNCjRWTKhq4R7v2fQDIBb/Xpf8nO7B/7coQHdQk/aqvIuFOc+eRae85CT4qFKEcajAcE9eT4 knF9Oz7ZKwMiu52/XMc7aP2mQdoX6vlCogRK2Zu15Xrbx89OBSxJ+GENyry2kbcxXEdqN2pWMqSix jiervbuqqpbpsxrlbO16sPyApBM9i0pLiPRexHW6oWXG9sm2fNKrk8jSAewv1cbGfxUjEgTE4L8hb NSOdTY0eAxQmidvCX8QbZylAQM7ADE5nOOwRcOZx28rmRz/w+9O+flcu8arkBTaJ4YZPpeChAxenz 3iOmby0brHI/5/8s+0CF8A==; Original-Received: from [87.69.77.57] (port=4990 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSDTA-00033b-KN; Sun, 28 Aug 2022 04:16:39 -0400 In-Reply-To: (message from Davin Pearson on Sun, 28 Aug 2022 19:27:07 +1200) 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:294222 Archived-At: > From: Davin Pearson > 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.