]> git.eshelyaron.com Git - emacs.git/commitdiff
(widget-add-change): Don't bother with make-local-hook.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 27 Oct 2000 00:54:52 +0000 (00:54 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 27 Oct 2000 00:54:52 +0000 (00:54 +0000)
lisp/wid-edit.el

index bfed43794a6dab37c7d5f3e3c84e2909f46c183f..deed46ddcda0fec7d2ebfa828005dde7139b9364 100644 (file)
@@ -1122,11 +1122,8 @@ Unlike (get-char-property POS 'field) this, works with empty fields too."
             (widget-apply from-field :notify from-field))))))
 
 (defun widget-add-change ()
-  (make-local-hook 'post-command-hook)
   (remove-hook 'post-command-hook 'widget-add-change t)
-  (make-local-hook 'before-change-functions)
   (add-hook 'before-change-functions 'widget-before-change nil t)
-  (make-local-hook 'after-change-functions)
   (add-hook 'after-change-functions 'widget-after-change nil t))
 
 (defun widget-after-change (from to old)