From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Inhibiting read-only Date: Wed, 19 Jun 2013 16:25:38 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371673552 10991 80.91.229.3 (19 Jun 2013 20:25:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Jun 2013 20:25:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: James Cloos Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 19 22:25:52 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UpOwx-0001ze-MY for ged-emacs-devel@m.gmane.org; Wed, 19 Jun 2013 22:25:51 +0200 Original-Received: from localhost ([::1]:40030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpOwx-00047h-8G for ged-emacs-devel@m.gmane.org; Wed, 19 Jun 2013 16:25:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpOwm-00044G-Mq for emacs-devel@gnu.org; Wed, 19 Jun 2013 16:25:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpOwl-00088I-MH for emacs-devel@gnu.org; Wed, 19 Jun 2013 16:25:40 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:41045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpOwl-000889-I0 for emacs-devel@gnu.org; Wed, 19 Jun 2013 16:25:39 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r5JKPcOr015016; Wed, 19 Jun 2013 16:25:39 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id CCEAAB4178; Wed, 19 Jun 2013 16:25:38 -0400 (EDT) In-Reply-To: (James Cloos's message of "Wed, 19 Jun 2013 15:50:43 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4614=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4614> : streams <985147> : uri <1452769> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160703 Archived-At: LMI> I'd like to make the eww buffers read-only, but leave text input LMI> fields editable. (And then do processing of the alterations with LMI> `insert-behind-hooks' or `after-change-functions'.) > That sounds like how the Customize buffers work, yes? Exactly, they set buffer-read-only to nil but then use a before-change-function to signal an error when trying to modify a non-text-widget area. Stefan