From 28d5d98ba5009e4835998bc66a3003253b74554a Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Tue, 30 Oct 2007 00:14:03 +0000 Subject: [PATCH] (unload-feature): Remove erroneous check for the FEATURE-unload-function variable; check the existence of the function (that's what the docstring says, and it makes more sense). --- lisp/loadhist.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/loadhist.el b/lisp/loadhist.el index cfc3f33168a..5343c3cf34b 100644 --- a/lisp/loadhist.el +++ b/lisp/loadhist.el @@ -200,7 +200,7 @@ something strange, such as redefining an Emacs function." (unload-func (intern-soft (concat name "-unload-function")))) ;; If FEATURE-unload-function is defined and returns non-nil, ;; don't try to do anything more; otherwise proceed normally. - (unless (and (bound-and-true-p unload-func) + (unless (and unload-func (fboundp unload-func) (funcall unload-func)) ;; Try to avoid losing badly when hooks installed in critical ;; places go away. (Some packages install things on -- 2.39.2