From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: occur-hook changing the current buffer Date: Wed, 22 Jun 2005 17:11:43 +0900 Message-ID: References: <87slzbqd6r.fsf-monnier+emacs@gnu.org> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119430597 5613 80.91.229.2 (22 Jun 2005 08:56:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2005 08:56:37 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 22 10:56:30 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dl11t-0001pA-Fu for ged-emacs-devel@m.gmane.org; Wed, 22 Jun 2005 10:56:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dl15L-0006nW-Pl for ged-emacs-devel@m.gmane.org; Wed, 22 Jun 2005 04:59:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dl0Mz-000216-Dr for emacs-devel@gnu.org; Wed, 22 Jun 2005 04:14:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dl0Ml-0001w0-4T for emacs-devel@gnu.org; Wed, 22 Jun 2005 04:13:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dl0Mj-0001sc-WF for emacs-devel@gnu.org; Wed, 22 Jun 2005 04:13:46 -0400 Original-Received: from [202.32.8.214] (helo=tyo201.gate.nec.co.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dl0Nx-0002B8-6u; Wed, 22 Jun 2005 04:15:02 -0400 Original-Received: from mailgate3.nec.co.jp (mailgate53.nec.co.jp [10.7.69.162] (may be forged)) by tyo201.gate.nec.co.jp (8.11.7/3.7W01080315) with ESMTP id j5M8Bln10344; Wed, 22 Jun 2005 17:11:47 +0900 (JST) Original-Received: (from root@localhost) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) id j5M8BkM08896; Wed, 22 Jun 2005 17:11:46 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by mailsv4.nec.co.jp (8.11.7/3.7W-MAILSV4-NEC) with ESMTP id j5M8Bkc17998; Wed, 22 Jun 2005 17:11:46 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.20] [10.29.19.20]) by relay21.aps.necel.com with ESMTP; Wed, 22 Jun 2005 17:11:46 +0900 Original-Received: from edsgm01.lsi.nec.co.jp ([10.50.208.11] [10.50.208.11]) by relay21.aps.necel.com with ESMTP; Wed, 22 Jun 2005 17:11:46 +0900 Original-Received: from mcsss2.ucom.lsi.nec.co.jp (localhost [127.0.0.1]) by edsgm01.lsi.nec.co.jp (8.12.10/8.12.10) with ESMTP id j5M8BiFK014231; Wed, 22 Jun 2005 17:11:45 +0900 (JST) Original-Received: from mctpc71 (mctpc71.ucom.lsi.nec.co.jp [10.30.118.121]) by mcsss2.ucom.lsi.nec.co.jp (8.12.10/8.12.8/EDcg v2.01-mc/1046780839) with ESMTP id j5M8BhKt023318; Wed, 22 Jun 2005 17:11:44 +0900 (JST) Original-Received: by mctpc71 (Postfix, from userid 31295) id D0DF84BA; Wed, 22 Jun 2005 17:11:43 +0900 (JST) Original-To: Juanma Barranquero System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: (Juanma Barranquero's message of "Wed, 22 Jun 2005 10:04:37 +0200") Original-Lines: 12 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:39283 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39283 Juanma Barranquero writes: > What part of "my function changed the buffer by accident, not by > design" and "I could have lost data" is not clear? Emacs can't, and shouldn't try to, protect against random crap in hooks, except where a particular mistake is very common and easy to make. There's no evidence this is such a case. -Miles -- Next to fried food, the South has suffered most from oratory. -- Walter Hines Page