diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/data.c | 9 |
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) | |||
| 1428 | DEFUN ("add-variable-watcher", Fadd_variable_watcher, Sadd_variable_watcher, | 1428 | DEFUN ("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 | |||
| 1432 | It will be called with 4 arguments: (SYMBOL NEWVAL OPERATION WHERE). | ||
| 1433 | SYMBOL is the variable being changed. | ||
| 1434 | NEWVAL is the value it will be changed to. | ||
| 1435 | OPERATION is a symbol representing the kind of change, one of: `set', | ||
| 1436 | `let', `unlet', `makunbound', and `defvaralias'. | ||
| 1437 | WHERE is a buffer if the buffer-local value of the variable being | ||
| 1438 | changed, nil otherwise. | ||
| 1439 | |||
| 1431 | All writes to aliases of SYMBOL will call WATCH-FUNCTION too. */) | 1440 | All 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 | { |