[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 7d0d87ec51: ; Improve documentation of 'restore-buffer-modified-p
From: |
Eli Zaretskii |
Subject: |
master 7d0d87ec51: ; Improve documentation of 'restore-buffer-modified-p' |
Date: |
Thu, 12 May 2022 02:48:33 -0400 (EDT) |
branch: master
commit 7d0d87ec51f066aaa27cd3d2d995d56f1f41c67c
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; Improve documentation of 'restore-buffer-modified-p'
* src/buffer.c (Frestore_buffer_modified_p):
* doc/lispref/buffers.texi (Buffer Modification): Fix doc wording.
---
doc/lispref/buffers.texi | 6 +++---
src/buffer.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi
index 9f3808a45b..1cbe8bc093 100644
--- a/doc/lispref/buffers.texi
+++ b/doc/lispref/buffers.texi
@@ -566,9 +566,9 @@ function @code{force-mode-line-update} works by doing this:
@defun restore-buffer-modified-p flag
Like @code{set-buffer-modified-p}, but does not force redisplay of
-mode lines. This function also allows a @var{flag} value of
-@code{autosaved}, which also marks the buffer as having been autosaved
-after the last modification.
+mode lines. This function also allows @var{flag}'s value to be
+the symbol @code{autosaved}, which marks the buffer as modified and
+auto-saved after the last modification.
@end defun
@deffn Command not-modified &optional arg
diff --git a/src/buffer.c b/src/buffer.c
index 89b04a4280..57137b2a06 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1449,8 +1449,8 @@ DEFUN ("restore-buffer-modified-p",
Frestore_buffer_modified_p,
doc: /* Like `set-buffer-modified-p', but doesn't redisplay buffer's
mode line.
A nil FLAG means to mark the buffer as unmodified. A non-nil FLAG
means mark the buffer as modified. A special value of `autosaved'
-will mark the buffer modified, and also as having been autosaved since
-it was last modified.
+will mark the buffer as modified and also as autosaved since it was
+last modified.
This function also locks or unlocks the file visited by the buffer,
if both `buffer-file-truename' and `buffer-file-name' are non-nil.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 7d0d87ec51: ; Improve documentation of 'restore-buffer-modified-p',
Eli Zaretskii <=