]> git.eshelyaron.com Git - emacs.git/commitdiff
(help-at-pt-unload-hook): Use add-hook; no defvar.
authorRichard M. Stallman <rms@gnu.org>
Sun, 17 Oct 2004 06:54:13 +0000 (06:54 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 17 Oct 2004 06:54:13 +0000 (06:54 +0000)
lisp/help-at-pt.el

index ad1f2b3a96ad6a342f19c575e85e6af5cab08f1c..d6ac6ec3fdcaf72a41378592cbf9343650824dba 100644 (file)
@@ -348,8 +348,7 @@ different regions.  With numeric argument ARG, behaves like
   (interactive "p")
   (scan-buf-move-to-region 'help-echo (- arg) 'scan-buf-move-hook))
 
-(defvar help-at-pt-unload-hook '(help-at-pt-cancel-timer)
-  "Normal hook run when `help-at-pt' is unloaded.")
+(add-hook 'help-at-pt-unload-hook 'help-at-pt-cancel-timer)
 
 (provide 'help-at-pt)