aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-11-13 08:21:16 +0000
committerRichard M. Stallman1993-11-13 08:21:16 +0000
commit54d4b6096c15c812b60cc4860f149e93c7f4bc7d (patch)
tree88ab90f94e412b5344308899778d98edbd213ab2
parent482952ef03359a468bbc35b26738aaf47610e410 (diff)
downloademacs-54d4b6096c15c812b60cc4860f149e93c7f4bc7d.tar.gz
emacs-54d4b6096c15c812b60cc4860f149e93c7f4bc7d.zip
(remove-hook): Function deleted.
-rw-r--r--lisp/emacs-lisp/lucid.el12
1 files changed, 0 insertions, 12 deletions
diff --git a/lisp/emacs-lisp/lucid.el b/lisp/emacs-lisp/lucid.el
index eaa405afd33..1334505a62b 100644
--- a/lisp/emacs-lisp/lucid.el
+++ b/lisp/emacs-lisp/lucid.el
@@ -52,18 +52,6 @@
52 (if tail 52 (if tail
53 (setcdr tail new-parent)))) 53 (setcdr tail new-parent))))
54 54
55(defun remove-hook (hook-var function)
56 "Remove a function from a hook, if it is present.
57First argument HOOK-VAR (a symbol) is the name of a hook, second
58 argument FUNCTION is the function to remove (compared with `eq')."
59 (if (boundp 'hook-var)
60 (let ((old (symbol-value hook-var)))
61 ;; If the hook value is a single function, turn it into a list.
62 (if (or (not (listp old)) (eq (car old) 'lambda))
63 (set hook-var (list old)))
64 ;; Now delete FUNCTION.
65 (set hook-var (delq function (symbol-value hook-var))))))
66
67(defun remprop (symbol prop) 55(defun remprop (symbol prop)
68 (let ((plist (symbol-plist symbol))) 56 (let ((plist (symbol-plist symbol)))
69 (while (eq (car plist) prop) 57 (while (eq (car plist) prop)