add_hook: remove arg 'avoid_duplicates'
commitc6a93fbff7ecb7ce0e4117f68eb0a1a6360bd604
authorJohn Foerch <jjfoerch@earthlink.net>
Tue, 23 Mar 2010 00:00:18 +0000 (22 20:00 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Tue, 23 Mar 2010 00:00:18 +0000 (22 20:00 -0400)
tree8aabb514dc8c7b13e1c76ffc357e7a0af2c62fd1
parentceb6613f5c042631b075c05358df8f7b3ff9c631
add_hook: remove arg 'avoid_duplicates'

treat a hook as a Set, always avoid duplicates.  this removes a pitfall in
repeated evaluation when, for example, people M-x reinit to reload their rc.

resolves http://bugs.conkeror.org/issue153
modules/hook.js