Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
093849f9
Commit
093849f9
authored
Oct 27, 2000
by
Stefan Monnier
Browse files
(widget-add-change): Don't bother with make-local-hook.
parent
0b95284b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
lisp/wid-edit.el
lisp/wid-edit.el
+0
-3
No files found.
lisp/wid-edit.el
View file @
093849f9
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment