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: doc on define-minor-mode hook variable(s) Date: Mon, 06 Mar 2006 14:09:14 -0500 Message-ID: References: <87r75gkwbd.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141684205 31771 80.91.229.6 (6 Mar 2006 22:30:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2006 22:30:05 +0000 (UTC) Cc: drew.adams@oracle.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 06 23:29:43 2006 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1FGLJ7-0005FD-00 for ; Mon, 06 Mar 2006 20:23:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGLJH-0005Xt-BR for ged-emacs-devel@m.gmane.org; Mon, 06 Mar 2006 14:23:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FGL5S-0005tF-0v for emacs-devel@gnu.org; Mon, 06 Mar 2006 14:09:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FGL5L-0005pM-7P for emacs-devel@gnu.org; Mon, 06 Mar 2006 14:09:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGL5K-0005pB-RS for emacs-devel@gnu.org; Mon, 06 Mar 2006 14:09:34 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FGL7X-00056i-Un; Mon, 06 Mar 2006 14:11:52 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id E1AAF33E60D; Mon, 6 Mar 2006 14:09:19 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 55EE0452A; Mon, 6 Mar 2006 14:09:14 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 3901E71553; Mon, 6 Mar 2006 14:09:14 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Mon, 06 Mar 2006 13:35:45 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca 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 X-Spam-Report: 5.0 points; * 0.0 BAYES_50 BODY: Bayesian spam probability is 50 to 56% * [score: 0.5000] * 5.0 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net * [Blocked - see ] Xref: news.gmane.org gmane.emacs.devel:51299 Archived-At: >> In the past, hook variables were used, and the new notion that a hook need >> not be associated with a variable should be explained in the doc. > A hook IS a variable--that is to say, a symbol whose value is used. > It is a mistake to think that a hook is not a variable. Either way it's a mistake: when people think of a hook as a variable, they think that (boundp 'foo-hook) can tell them whether the hook exists or not. So I prefer to think that a hook is its own kind of object, which happens to be implemented using a variable. Stefan