From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: occur-hook changing the current buffer Date: Mon, 27 Jun 2005 07:46:35 +0200 Message-ID: References: <871x6ucqat.fsf@jurta.org> <87y88zqtpa.fsf@jurta.org> Reply-To: Juanma Barranquero NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1119852391 27511 80.91.229.2 (27 Jun 2005 06:06:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2005 06:06:31 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 27 08:06:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dmml6-00082R-Lk for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2005 08:06:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dmmsg-0007RB-6k for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2005 02:14:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dmmga-0003d0-Iu for emacs-devel@gnu.org; Mon, 27 Jun 2005 02:01:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DmmgW-0003ZB-34 for emacs-devel@gnu.org; Mon, 27 Jun 2005 02:01:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DmmgU-0003R7-ES for emacs-devel@gnu.org; Mon, 27 Jun 2005 02:01:30 -0400 Original-Received: from [64.233.182.198] (helo=nproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DmmdA-00041R-Vx for emacs-devel@gnu.org; Mon, 27 Jun 2005 01:58:05 -0400 Original-Received: by nproxy.gmail.com with SMTP id i2so147085nfe for ; Sun, 26 Jun 2005 22:53:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sP0/HnpcUNMp9HqM1CXvVRAtMjUOYExIKaA47mN54tXzNVTA9M1c3H7LuyTesgc0MP2zTqU5Z88pXeiJFxFKYH5jcJHuC+P5to1PrIWPrLTnIpskx+3zApTVzReP20XmpKMGjs73uA5Zy363CVYQQByseaggpAhPHuj6y4/iQQs= Original-Received: by 10.48.240.16 with SMTP id n16mr77017nfh; Sun, 26 Jun 2005 22:46:35 -0700 (PDT) Original-Received: by 10.48.250.5 with HTTP; Sun, 26 Jun 2005 22:46:35 -0700 (PDT) Original-To: Juri Linkov In-Reply-To: <87y88zqtpa.fsf@jurta.org> Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:39611 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39611 > Perhaps this change should be documented in the `Incompatible > Lisp Changes in Emacs 22.1' in etc/NEWS. When users have hooks > that modify the contents of the *Occur* buffer then these hooks > will fail after the read-only flag was set on the *Occur* buffer. On one hand, `occur-hook' didn't even exist in 21.4. On the other hand, `occur-hook' runs inside a (let ((inhibit-read-only t)).= ..) And finally, I think previously the hook ran after setting the buffer read-only, till Eli's modification of a while back. --=20 /L/e/k/t/u