bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

the ...-unload-hook convention doesn't work


From: Dave Love
Subject: the ...-unload-hook convention doesn't work
Date: Mon, 05 Jan 2004 15:01:13 +0000
User-agent: Gnus/5.1005 (Gnus v5.10.5) Emacs/21.2 (gnu/linux)

I'm confused by this, since I'm sure it worked when I implemented it,
but the installed code never seems to have been right since it's
calling a function as if it were a hook list.

*** loadhist.el.~1.26.~ Mon Oct  6 11:55:29 2003
--- loadhist.el Wed Dec  3 20:23:43 2003
***************
*** 140,146 ****
      ;; First off, provide a clean way for package `foo' to arrange
      ;; this by defining `foo-unload-hook'.
      (if unload-hook
!         (run-hooks unload-hook)
        ;; Otherwise, do our best.  Look through the obarray for symbols
        ;; which seem to be hook variables or special hook functions and
        ;; remove anything from them which matches the feature-symbols
--- 140,146 ----
      ;; First off, provide a clean way for package `foo' to arrange
      ;; this by defining `foo-unload-hook'.
      (if unload-hook
!         (funcall unload-hook)
        ;; Otherwise, do our best.  Look through the obarray for symbols
        ;; which seem to be hook variables or special hook functions and
        ;; remove anything from them which matches the feature-symbols




reply via email to

[Prev in Thread] Current Thread [Next in Thread]