summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-11-13 08:21:16 +0000
committerRichard M. Stallman <rms@gnu.org>1993-11-13 08:21:16 +0000
commit54d4b6096c15c812b60cc4860f149e93c7f4bc7d (patch)
tree88ab90f94e412b5344308899778d98edbd213ab2 /lisp/emacs-lisp
parent482952ef03359a468bbc35b26738aaf47610e410 (diff)
downloademacs-54d4b6096c15c812b60cc4860f149e93c7f4bc7d.tar.gz
emacs-54d4b6096c15c812b60cc4860f149e93c7f4bc7d.tar.bz2
emacs-54d4b6096c15c812b60cc4860f149e93c7f4bc7d.zip
(remove-hook): Function deleted.
Diffstat (limited to 'lisp/emacs-lisp')
-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 @@
(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)