Mercurial > emacs
changeset 4997:96c0a97da147
(remove-hook): Function deleted.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 13 Nov 1993 08:21:16 +0000 |
parents | 4414ceac33dc |
children | 3cd3a39f98f4 |
files | lisp/emacs-lisp/lucid.el |
diffstat | 1 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emacs-lisp/lucid.el Sat Nov 13 07:50:17 1993 +0000 +++ b/lisp/emacs-lisp/lucid.el Sat Nov 13 08:21:16 1993 +0000 @@ -52,18 +52,6 @@ (if tail (setcdr tail new-parent)))) -(defun remove-hook (hook-var function) - "Remove a function from a hook, if it is present. -First argument HOOK-VAR (a symbol) is the name of a hook, second - argument FUNCTION is the function to remove (compared with `eq')." - (if (boundp 'hook-var) - (let ((old (symbol-value hook-var))) - ;; If the hook value is a single function, turn it into a list. - (if (or (not (listp old)) (eq (car old) 'lambda)) - (set hook-var (list old))) - ;; Now delete FUNCTION. - (set hook-var (delq function (symbol-value hook-var)))))) - (defun remprop (symbol prop) (let ((plist (symbol-plist symbol))) (while (eq (car plist) prop)