🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189033

policy: hooks vs. advise

#189033
From: Robert Potter
Date: Tue, 07 May 1991 22:53
17 lines
1321 bytes
I don't know if this is the right group for discussing this, but I was
wondering about a policy/style question:

	Should the use of hook functions be abandoned in favor of the
	"advise" package?

Seems to me that hook functions are ugly.  They can only be used if
the author of the function you want to modify was smart enough to
provide the hook (and to provide it in the right place).  Also, hook
functions don't get access to the arguments/result of the hooked
function.

What do you think?

	-Robert
Robert Potter                               rpotter@grip.cis.upenn.edu
GRASP laboratory, Univ. of Pennsylvania
Technical Details
Message-ID: <42774@netnews.upenn.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!sdd.hp.com!caen!uwm.edu!linac!midway!msuinfo!netnews.upenn.edu!grip.cis.upenn.edu!rpotter

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,fa1c6ff5fcb7013e,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-05-08 13:46:14 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!sdd.hp.com!caen!uwm.edu!linac!midway!msuinfo!netnews.upenn.edu!grip.cis.upenn.edu!rpotter
From: rpotter@grip.cis.upenn.edu (Robert Potter)
Newsgroups: gnu.emacs.help
Subject: policy: hooks vs. advise
Message-ID: <42774@netnews.upenn.edu>
Date: 7 May 91 22:53:18 GMT
Sender: news@netnews.upenn.edu
Reply-To: rpotter@grip.cis.upenn.edu (Robert Potter)
Distribution: gnu
Organization: University of Pennsylvania
Lines: 17
Nntp-Posting-Host: grip.cis.upenn.edu