Mercurial > emacs
changeset 22960:d29091c19e81
(add-hook): Use byte-code-function-p, not compiled-function-p.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 08 Aug 1998 23:08:23 +0000 |
parents | 73a21b5f9bd8 |
children | 8159553e2468 |
files | lisp/subr.el |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/subr.el Sat Aug 08 23:07:06 1998 +0000 +++ b/lisp/subr.el Sat Aug 08 23:08:23 1998 +0000 @@ -621,7 +621,7 @@ (and (local-variable-if-set-p hook) (not (memq t (symbol-value hook))))) ;; Alter the local value only. - (or (if (or (consp function) (compiled-function-p function)) + (or (if (or (consp function) (byte-code-function-p function)) (member function (symbol-value hook)) (memq function (symbol-value hook))) (set hook @@ -630,7 +630,7 @@ (cons function (symbol-value hook))))) ;; Alter the global value (which is also the only value, ;; if the hook doesn't have a local value). - (or (if (or (consp function) (compiled-function-p function)) + (or (if (or (consp function) (byte-code-function-p function)) (member function (default-value hook)) (memq function (default-value hook))) (set-default hook