From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: remove-hook. Date: Tue, 7 Oct 2003 08:40:01 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200310071340.h97De1i01973@raven.dms.auburn.edu> References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1065534772 32426 80.91.224.253 (7 Oct 2003 13:52:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2003 13:52:52 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Oct 07 15:52:50 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A6sGf-00014r-00 for ; Tue, 07 Oct 2003 15:52:49 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A6sGf-00008y-00 for ; Tue, 07 Oct 2003 15:52:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A6sAZ-00029Z-8K for emacs-devel@quimby.gnus.org; Tue, 07 Oct 2003 09:46:31 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A6s8p-0001kH-Mh for emacs-devel@gnu.org; Tue, 07 Oct 2003 09:44:43 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A6s8J-0001df-GF for emacs-devel@gnu.org; Tue, 07 Oct 2003 09:44:42 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A6s8I-0001dX-50 for emacs-devel@gnu.org; Tue, 07 Oct 2003 09:44:10 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id h97Di4AJ009741; Tue, 7 Oct 2003 08:44:04 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id h97De1i01973; Tue, 7 Oct 2003 08:40:01 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: Lute.Kamstra@cwi.nl In-reply-to: (message from Lute Kamstra on Tue, 07 Oct 2003 15:25:36 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16982 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16982 Lute Kamstra wrote: | The optional third argument, LOCAL, if non-nil, says to modify | the hook's buffer-local value rather than its default value. | This makes the hook buffer-local if needed. `---- When does remove-hook need to make a hook buffer-local to remove a function from it? When one only wants the function removed in the current buffer. (As the next to last sentence says.) Sincerely, Luc.