diff options
| author | Eli Zaretskii | 2017-06-17 19:03:30 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-06-17 19:03:30 +0300 |
| commit | f8cc7a83006e520e6dce3c64df6dca010624299f (patch) | |
| tree | ddcc4f8a15621647c09ec0a6aafcb95cb522e810 | |
| parent | 61dc103969fce1a0bf179e9e799d1feba128b525 (diff) | |
| download | emacs-f8cc7a83006e520e6dce3c64df6dca010624299f.tar.gz emacs-f8cc7a83006e520e6dce3c64df6dca010624299f.zip | |
Improve documentation of replace-buffer-contents
* etc/NEWS (replace-buffer-contents): Fix formatting.
* src/editfns.c (Freplace_buffer_contents): Doc fix.
| -rw-r--r-- | etc/NEWS | 9 | ||||
| -rw-r--r-- | src/editfns.c | 4 |
2 files changed, 8 insertions, 5 deletions
| @@ -462,10 +462,11 @@ Negative prefix arg flips the direction of selection. Also, | |||
| 462 | defun are selected unless they are separated from the defun by a blank | 462 | defun are selected unless they are separated from the defun by a blank |
| 463 | line. | 463 | line. |
| 464 | 464 | ||
| 465 | ** New command 'replace-buffer-contents'. This command replaces the | 465 | ** New command 'replace-buffer-contents'. |
| 466 | contents of the accessible portion of the current buffer with the | 466 | This command replaces the contents of the accessible portion of the |
| 467 | contents of the accessible portion of a different buffer while keeping | 467 | current buffer with the contents of the accessible portion of a |
| 468 | point, mark, markers, and text properties as intact as possible. | 468 | different buffer while keeping point, mark, markers, and text |
| 469 | properties as intact as possible. | ||
| 469 | 470 | ||
| 470 | 471 | ||
| 471 | * Changes in Specialized Modes and Packages in Emacs 26.1 | 472 | * Changes in Specialized Modes and Packages in Emacs 26.1 |
diff --git a/src/editfns.c b/src/editfns.c index e8ad83e29b8..f0c4593742d 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3140,7 +3140,9 @@ static bool buffer_chars_equal (struct context *, OFFSET, OFFSET); | |||
| 3140 | 3140 | ||
| 3141 | DEFUN ("replace-buffer-contents", Freplace_buffer_contents, | 3141 | DEFUN ("replace-buffer-contents", Freplace_buffer_contents, |
| 3142 | Sreplace_buffer_contents, 1, 1, "bSource buffer: ", | 3142 | Sreplace_buffer_contents, 1, 1, "bSource buffer: ", |
| 3143 | doc: /* Replace accessible portion of the current buffer with accessible portion of SOURCE. | 3143 | doc: /* Replace accessible portion of current buffer with that of SOURCE. |
| 3144 | SOURCE can be a buffer or a string that names a buffer. | ||
| 3145 | Interactively, prompt for SOURCE. | ||
| 3144 | As far as possible the replacement is non-destructive, i.e. existing | 3146 | As far as possible the replacement is non-destructive, i.e. existing |
| 3145 | buffer contents, markers, properties, and overlays in the current | 3147 | buffer contents, markers, properties, and overlays in the current |
| 3146 | buffer stay intact. */) | 3148 | buffer stay intact. */) |