aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/NEWS9
-rw-r--r--src/editfns.c4
2 files changed, 8 insertions, 5 deletions
diff --git a/etc/NEWS b/etc/NEWS
index b3b2031c582..85d12733670 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -462,10 +462,11 @@ Negative prefix arg flips the direction of selection. Also,
462defun are selected unless they are separated from the defun by a blank 462defun are selected unless they are separated from the defun by a blank
463line. 463line.
464 464
465** New command 'replace-buffer-contents'. This command replaces the 465** New command 'replace-buffer-contents'.
466contents of the accessible portion of the current buffer with the 466This command replaces the contents of the accessible portion of the
467contents of the accessible portion of a different buffer while keeping 467current buffer with the contents of the accessible portion of a
468point, mark, markers, and text properties as intact as possible. 468different buffer while keeping point, mark, markers, and text
469properties 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
3141DEFUN ("replace-buffer-contents", Freplace_buffer_contents, 3141DEFUN ("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.
3144SOURCE can be a buffer or a string that names a buffer.
3145Interactively, prompt for SOURCE.
3144As far as possible the replacement is non-destructive, i.e. existing 3146As far as possible the replacement is non-destructive, i.e. existing
3145buffer contents, markers, properties, and overlays in the current 3147buffer contents, markers, properties, and overlays in the current
3146buffer stay intact. */) 3148buffer stay intact. */)