aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorNoam Postavsky2015-12-13 14:47:58 -0500
committerNoam Postavsky2016-12-02 20:25:15 -0500
commit56c817837bff3ffef587a9c80d619b9fe4886159 (patch)
treef5d3a464be2d1472af9f0b754f8d22e915fc4cec /src/data.c
parente7cd98b86fc7cb7d8b187087ffff95f106124dc5 (diff)
downloademacs-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.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{