From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: remove-hook. Date: Tue, 07 Oct 2003 15:25:36 +0200 Organization: CWI, Amsterdam Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1065533318 29203 80.91.224.253 (7 Oct 2003 13:28:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2003 13:28:38 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Oct 07 15:28:37 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 1A6rtF-0007p4-00 for ; Tue, 07 Oct 2003 15:28:37 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A6rtE-0008WD-00 for ; Tue, 07 Oct 2003 15:28:36 +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 1A6rqw-00089F-MF for emacs-devel@quimby.gnus.org; Tue, 07 Oct 2003 09:26:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A6rqs-00085x-31 for emacs-devel@gnu.org; Tue, 07 Oct 2003 09:26:10 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A6rqL-0007lf-Pf for emacs-devel@gnu.org; Tue, 07 Oct 2003 09:26:08 -0400 Original-Received: from [192.16.191.8] (helo=hera.cwi.nl) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A6rqL-0007lV-BL for emacs-devel@gnu.org; Tue, 07 Oct 2003 09:25:37 -0400 Original-Received: from occarina.pna.cwi.nl (occarina.pna.cwi.nl [192.16.184.200]) by hera.cwi.nl with ESMTP id h97DPafA020370 for ; Tue, 7 Oct 2003 15:25:36 +0200 (MEST) Original-Received: (from lute@localhost) by occarina.pna.cwi.nl (8.12.8/8.12.5) id h97DPaf8008789; Tue, 7 Oct 2003 15:25:36 +0200 X-Authentication-Warning: occarina.pna.cwi.nl: lute set sender to Lute.Kamstra@cwi.nl using -f Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Original-Lines: 20 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:16980 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16980 The last sentence of remove-hook's docstring puzzles me: ,----[ C-h f remove-hook RET ] | remove-hook is a compiled Lisp function in `subr'. | (remove-hook HOOK FUNCTION &optional LOCAL) | | Remove from the value of HOOK the function FUNCTION. | HOOK should be a symbol, and FUNCTION may be any valid function. If | FUNCTION isn't the value of HOOK, or, if FUNCTION doesn't appear in the | list of hooks to run in HOOK, then nothing is done. See `add-hook'. | | 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? Lute.