diff options
| author | Noam Postavsky | 2015-12-13 14:47:58 -0500 |
|---|---|---|
| committer | Noam Postavsky | 2016-12-02 20:25:15 -0500 |
| commit | 56c817837bff3ffef587a9c80d619b9fe4886159 (patch) | |
| tree | f5d3a464be2d1472af9f0b754f8d22e915fc4cec /src/data.c | |
| parent | e7cd98b86fc7cb7d8b187087ffff95f106124dc5 (diff) | |
| download | emacs-56c817837bff3ffef587a9c80d619b9fe4886159.tar.gz emacs-56c817837bff3ffef587a9c80d619b9fe4886159.zip | |
Document watchpoints
* doc/lispref/debugging.texi (Variable Debugging):
* doc/lispref/variables.texi (Watching Variables): New section.
* etc/NEWS: Add entry for watchpoints
Diffstat (limited to 'src/data.c')
| -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 | { |