aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorEli Zaretskii2022-05-10 16:06:10 +0300
committerEli Zaretskii2022-05-10 16:06:10 +0300
commit68dd94448f0b46cced59c7fe33f77f74ddf656ad (patch)
tree33af0830ff2746c8c4037a0e99ee016e853e5e24 /src/buffer.c
parent000f13a2bc60428bf02157956b22ba23570b0725 (diff)
downloademacs-68dd94448f0b46cced59c7fe33f77f74ddf656ad.tar.gz
emacs-68dd94448f0b46cced59c7fe33f77f74ddf656ad.zip
; Fix recent documentation changes
* src/fileio.c (Fdo_auto_save): * src/buffer.c (Fbuffer_modified_p, Frestore_buffer_modified_p): * doc/lispref/buffers.texi (Buffer Modification): Improve documentation of 'do-auto-save', 'buffer-modified-p' and 'restore-buffer-modified-p'.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 0f3061b4973..0af14a10609 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1379,8 +1379,8 @@ DEFUN ("buffer-modified-p", Fbuffer_modified_p, Sbuffer_modified_p,
1379 doc: /* Return non-nil if BUFFER was modified since its file was last read or saved. 1379 doc: /* Return non-nil if BUFFER was modified since its file was last read or saved.
1380No argument or nil as argument means use current buffer as BUFFER. 1380No argument or nil as argument means use current buffer as BUFFER.
1381 1381
1382If BUFFER has been autosaved after BUFFER was last modified, the 1382If BUFFER was autosaved since it was last modified, this function
1383symbol `autosaved' is returned. */) 1383returns the symbol `autosaved'. */)
1384 (Lisp_Object buffer) 1384 (Lisp_Object buffer)
1385{ 1385{
1386 struct buffer *buf = decode_buffer (buffer); 1386 struct buffer *buf = decode_buffer (buffer);
@@ -1448,9 +1448,9 @@ DEFUN ("restore-buffer-modified-p", Frestore_buffer_modified_p,
1448 Srestore_buffer_modified_p, 1, 1, 0, 1448 Srestore_buffer_modified_p, 1, 1, 0,
1449 doc: /* Like `set-buffer-modified-p', but doesn't redisplay buffer's mode line. 1449 doc: /* Like `set-buffer-modified-p', but doesn't redisplay buffer's mode line.
1450A nil FLAG means to mark the buffer as unmodified. A non-nil FLAG 1450A nil FLAG means to mark the buffer as unmodified. A non-nil FLAG
1451means mark the buffer as modified, except the special value 1451means mark the buffer as modified, but the special value
1452`autosaved', which will instead mark the buffer as having been 1452`autosaved' will instead mark the buffer as having been
1453autosaved. 1453autosaved since it was last modified.
1454 1454
1455This function also locks or unlocks the file visited by the buffer, 1455This function also locks or unlocks the file visited by the buffer,
1456if both `buffer-file-truename' and `buffer-file-name' are non-nil. 1456if both `buffer-file-truename' and `buffer-file-name' are non-nil.