From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.help Subject: Re: Terminology change/nameing conventions? Date: Sat, 29 May 2010 08:21:50 +0200 Message-ID: References: <87pr0fledo.fsf@rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291824110 3653 80.91.229.12 (8 Dec 2010 16:01:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 16:01:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 17:01:45 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQMSd-00071z-Dg for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 17:01:43 +0100 Original-Received: from localhost ([127.0.0.1]:34620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQMSc-0004Oe-LM for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 11:01:42 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.kpnqwest.it!news.kpnqwest.it.POSTED!not-for-mail Original-NNTP-Posting-Date: Sat, 29 May 2010 01:21:51 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:ka+vlzONBIoT+9L2QriRNZ2QqVA= Original-Lines: 22 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 212.46.178.183 Original-X-Trace: sv3-i74zz3qvdAEjUN1gcHJPUKZWjloi7+fhzGLsKqrGi84XJg96xkfjBCUhkbwnnZOfJe0szwxdx4oMuP+!GArRGI3T5+RETpwnZtcm49CZJTC3mtrDeGh7z90dBm+tQdQcSXvANb2IiprEgK8= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: usenet.stanford.edu gnu.emacs.help:178471 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75577 Archived-At: * Tim X [2010-05-29 02:50+0200] writes: > I was recently doing some work with elisp and noticed what appears to be > differences in conventions regarding nameing. > > In general, I've always thought of the term 'hook' as indicating a > special variable that you could add function names to and that all those > functions would be executed when the hook runs. However, I've noticed > that some modes, e.g. comint mode, uses the term -functions i.e. > comint-output-functions. You use add-hook to add new functions to this > variable. > > So, my question is why isn't this just comint-output-hook? This is described in the Elisp manual: http://www.gnu.org/software/emacs/manual/html_node/emacs/Hooks.html There are "normal hooks" by convention ending with -hook and "non-normal hooks" often ending with -hooks or -functions. "Normal hooks" don't take arguments and the result is not used. Helmut