aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorEli Zaretskii2017-12-28 19:23:34 +0200
committerEli Zaretskii2017-12-28 19:23:34 +0200
commit81b1028b63b7d56a9483606fc7c656dd5cee28af (patch)
treeb1cd716c6fbfd6a748d0f10be8cc50439663dc6f /src/buffer.c
parent7175496d7a0e88c938898757f20c6882173eda9c (diff)
downloademacs-81b1028b63b7d56a9483606fc7c656dd5cee28af.tar.gz
emacs-81b1028b63b7d56a9483606fc7c656dd5cee28af.zip
Improve documentation of 'inhibit-modification-hooks' and friends
* src/buffer.c (Fset_buffer_modified_p) (Frestore_buffer_modified_p): Doc fixes. * src/insdel.c (syms_of_insdel) <inhibit-modification-hooks>: Document in the doc string that this variable also inhibits file locks and active region handling. (Bug#29846)
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 7ae889decf7..bcde2c80989 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1320,7 +1320,12 @@ menu bar menus and the frame title. */)
1320DEFUN ("set-buffer-modified-p", Fset_buffer_modified_p, Sset_buffer_modified_p, 1320DEFUN ("set-buffer-modified-p", Fset_buffer_modified_p, Sset_buffer_modified_p,
1321 1, 1, 0, 1321 1, 1, 0,
1322 doc: /* Mark current buffer as modified or unmodified according to FLAG. 1322 doc: /* Mark current buffer as modified or unmodified according to FLAG.
1323A non-nil FLAG means mark the buffer modified. */) 1323A non-nil FLAG means mark the buffer modified.
1324In addition, this function unconditionally forces redisplay of the
1325mode lines of the windows that display the current buffer, and also
1326locks or unlocks the file visited by the buffer, depending on whether
1327the function's argument is non-nil, but only if both `buffer-file-name'
1328and `buffer-file-truename' are non-nil. */)
1324 (Lisp_Object flag) 1329 (Lisp_Object flag)
1325{ 1330{
1326 Frestore_buffer_modified_p (flag); 1331 Frestore_buffer_modified_p (flag);
@@ -1341,7 +1346,10 @@ A non-nil FLAG means mark the buffer modified. */)
1341 1346
1342DEFUN ("restore-buffer-modified-p", Frestore_buffer_modified_p, 1347DEFUN ("restore-buffer-modified-p", Frestore_buffer_modified_p,
1343 Srestore_buffer_modified_p, 1, 1, 0, 1348 Srestore_buffer_modified_p, 1, 1, 0,
1344 doc: /* Like `set-buffer-modified-p', with a difference concerning redisplay. 1349 doc: /* Like `set-buffer-modified-p', but doesn't redisplay buffer's mode line.
1350This function also locks and unlocks the file visited by the buffer,
1351if both `buffer-file-truename' and `buffer-file-name' are non-nil.
1352
1345It is not ensured that mode lines will be updated to show the modified 1353It is not ensured that mode lines will be updated to show the modified
1346state of the current buffer. Use with care. */) 1354state of the current buffer. Use with care. */)
1347 (Lisp_Object flag) 1355 (Lisp_Object flag)