diff options
| author | Eli Zaretskii | 2022-05-12 09:47:25 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-05-12 09:47:25 +0300 |
| commit | 7d0d87ec51f066aaa27cd3d2d995d56f1f41c67c (patch) | |
| tree | f5c703fadd75a55e2b7c23e76ad016b74786d92a | |
| parent | 36e84d228965b08c9a1e95e8e661bd50df4713be (diff) | |
| download | emacs-7d0d87ec51f066aaa27cd3d2d995d56f1f41c67c.tar.gz emacs-7d0d87ec51f066aaa27cd3d2d995d56f1f41c67c.zip | |
; Improve documentation of 'restore-buffer-modified-p'
* src/buffer.c (Frestore_buffer_modified_p):
* doc/lispref/buffers.texi (Buffer Modification): Fix doc wording.
| -rw-r--r-- | doc/lispref/buffers.texi | 6 | ||||
| -rw-r--r-- | src/buffer.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi index 9f3808a45b1..1cbe8bc0933 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: | |||
| 566 | 566 | ||
| 567 | @defun restore-buffer-modified-p flag | 567 | @defun restore-buffer-modified-p flag |
| 568 | Like @code{set-buffer-modified-p}, but does not force redisplay of | 568 | Like @code{set-buffer-modified-p}, but does not force redisplay of |
| 569 | mode lines. This function also allows a @var{flag} value of | 569 | mode lines. This function also allows @var{flag}'s value to be |
| 570 | @code{autosaved}, which also marks the buffer as having been autosaved | 570 | the symbol @code{autosaved}, which marks the buffer as modified and |
| 571 | after the last modification. | 571 | auto-saved after the last modification. |
| 572 | @end defun | 572 | @end defun |
| 573 | 573 | ||
| 574 | @deffn Command not-modified &optional arg | 574 | @deffn Command not-modified &optional arg |
diff --git a/src/buffer.c b/src/buffer.c index 89b04a42801..57137b2a067 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1449,8 +1449,8 @@ DEFUN ("restore-buffer-modified-p", Frestore_buffer_modified_p, | |||
| 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. A special value of `autosaved' | 1451 | means mark the buffer as modified. A special value of `autosaved' |
| 1452 | will mark the buffer modified, and also as having been autosaved since | 1452 | will mark the buffer as modified and also as autosaved since it was |
| 1453 | it was last modified. | 1453 | 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. |