From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#11342: 24.1.50; HOOK variable name in `add-hook' etc. confusing Date: Thu, 26 Apr 2012 04:07:33 +0200 Message-ID: <878vhjjifr.fsf@web.de> References: <87y5pjjurd.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1335409813 1009 80.91.229.3 (26 Apr 2012 03:10:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2012 03:10:13 +0000 (UTC) To: 11342@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 26 05:10:12 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SNF5w-00032L-5B for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Apr 2012 05:10:12 +0200 Original-Received: from localhost ([::1]:51535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNF5v-0004yz-Do for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Apr 2012 23:10:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNF5s-0004xi-38 for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 23:10:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNF5q-0006T9-8M for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 23:10:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNF5q-0006T4-55 for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 23:10:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SNF6j-0002kR-Pe for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 23:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Apr 2012 03:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11342 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11342-submit@debbugs.gnu.org id=B11342.133540984810544 (code B ref 11342); Thu, 26 Apr 2012 03:11:01 +0000 Original-Received: (at 11342) by debbugs.gnu.org; 26 Apr 2012 03:10:48 +0000 Original-Received: from localhost ([127.0.0.1]:53316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SNF6U-0002k0-Tr for submit@debbugs.gnu.org; Wed, 25 Apr 2012 23:10:47 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:51254) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SNF6S-0002jn-E7 for 11342@debbugs.gnu.org; Wed, 25 Apr 2012 23:10:45 -0400 Original-Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate01.web.de (Postfix) with ESMTP id 4BBDA1AD41FE6 for <11342@debbugs.gnu.org>; Thu, 26 Apr 2012 05:09:42 +0200 (CEST) Original-Received: from snow.dragon ([89.204.139.254]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0M3Slc-1S5Zi82p4C-00r1JN; Thu, 26 Apr 2012 05:09:41 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 25 Apr 2012 21:15:10 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) Original-Received: from web.de by mxint04.web.de with esmtp (WEB.DE 4.110 #1) id 1SNE5R-00084D-00 for michael_heerdegen@web.de; Thu, 26 Apr 2012 04:05:37 +0200 Original-Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate01.web.de (Postfix) with ESMTP id 109B81AD41F2F for ; Thu, 26 Apr 2012 04:05:37 +0200 (CEST) Original-Received: from snow.dragon ([89.204.139.254]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0Lcxfc-1RwelE2NYO-00iC3c; Thu, 26 Apr 2012 04:05:37 +0200 X-Provags-ID: V02:K0:EA8Z3PW98cLCzPg6txMlaqjHUb5uPidxQ+Ol+A5JCSY cApGUMyI4V10a6dCgmsOqhqvWpjaXfmWMJgoTTTGfRzTN7f9+8 /aF97Q9G6rS06DEJB4WyQS8cKqW5CbxPYxUAGvjXQNWA3gQt++ iN0y5ljMUrNAFr2TwjpLZZaguZK/kP0Vo9VRcssX9q9D3kXTPr 3qkpzdMIJlhaRzruxghZo2ByJxOa66C7c4VusFYqw4= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59495 Archived-At: Stefan Monnier writes: > > You could misinterpret that and think that the first argument must > > be a value representing a hook. But actually it must be a _symbol_ > > holding a hook. > > Hooks are represented by a value which is a symbol (and which in turn > carries the various functions added to it globally and in each buffer). > The symbol's value (usually a list) is *not* the hook value but only one > part of it. Thanks for the clarification, I didn't realize that, obviously. The manual sometimes calls these values being symbols "hook", and sometimes "hook variable". Ok, so, these arguments of `add-hook' and `remove-hook' must be variables (symbols) representing a hook. My proposal to rename the `hook' argument to `hook-var' would still be reasonable. Sure, there is no error in the current naming. But it would not be false, and clearer than now for people that didn't yet realize this part of the nomenclature, like me. Please decide yourself - I just have the feeling that many people stumble at that point and don't know if they must use a quote before the hook variable or not. OTOH, if there are good reasons to reject my proposal, please close this report. Thanks, Michael