aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/data.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c
index 81846b5dcbc..eee2a52a37a 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1428,6 +1428,15 @@ harmonize_variable_watchers (Lisp_Object alias, Lisp_Object base_variable)
1428DEFUN ("add-variable-watcher", Fadd_variable_watcher, Sadd_variable_watcher, 1428DEFUN ("add-variable-watcher", Fadd_variable_watcher, Sadd_variable_watcher,
1429 2, 2, 0, 1429 2, 2, 0,
1430 doc: /* Cause WATCH-FUNCTION to be called when SYMBOL is set. 1430 doc: /* Cause WATCH-FUNCTION to be called when SYMBOL is set.
1431
1432It will be called with 4 arguments: (SYMBOL NEWVAL OPERATION WHERE).
1433SYMBOL is the variable being changed.
1434NEWVAL is the value it will be changed to.
1435OPERATION is a symbol representing the kind of change, one of: `set',
1436`let', `unlet', `makunbound', and `defvaralias'.
1437WHERE is a buffer if the buffer-local value of the variable being
1438changed, nil otherwise.
1439
1431All writes to aliases of SYMBOL will call WATCH-FUNCTION too. */) 1440All writes to aliases of SYMBOL will call WATCH-FUNCTION too. */)
1432 (Lisp_Object symbol, Lisp_Object watch_function) 1441 (Lisp_Object symbol, Lisp_Object watch_function)
1433{ 1442{