From: Stefan Monnier Date: Fri, 27 Oct 2000 00:54:52 +0000 (+0000) Subject: (widget-add-change): Don't bother with make-local-hook. X-Git-Tag: emacs-pretest-21.0.90~529 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=093849f9ca82296eccfcb05d8c6f374bb59ba386;p=emacs.git (widget-add-change): Don't bother with make-local-hook. --- diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index bfed43794a6..deed46ddcda 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el @@ -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)