diff options
| author | Eli Zaretskii | 2022-05-10 16:06:10 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-05-10 16:06:10 +0300 |
| commit | 68dd94448f0b46cced59c7fe33f77f74ddf656ad (patch) | |
| tree | 33af0830ff2746c8c4037a0e99ee016e853e5e24 /src/buffer.c | |
| parent | 000f13a2bc60428bf02157956b22ba23570b0725 (diff) | |
| download | emacs-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.c | 10 |
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. |
| 1380 | No argument or nil as argument means use current buffer as BUFFER. | 1380 | No argument or nil as argument means use current buffer as BUFFER. |
| 1381 | 1381 | ||
| 1382 | If BUFFER has been autosaved after BUFFER was last modified, the | 1382 | If BUFFER was autosaved since it was last modified, this function |
| 1383 | symbol `autosaved' is returned. */) | 1383 | returns 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. |
| 1450 | A nil FLAG means to mark the buffer as unmodified. A non-nil FLAG | 1450 | A nil FLAG means to mark the buffer as unmodified. A non-nil FLAG |
| 1451 | means mark the buffer as modified, except the special value | 1451 | means 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 |
| 1453 | autosaved. | 1453 | autosaved since it was last modified. |
| 1454 | 1454 | ||
| 1455 | This function also locks or unlocks the file visited by the buffer, | 1455 | This function also locks or unlocks the file visited by the buffer, |
| 1456 | if both `buffer-file-truename' and `buffer-file-name' are non-nil. | 1456 | if both `buffer-file-truename' and `buffer-file-name' are non-nil. |