[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 82a2894: Improve doc strings of 'append-to-buffer
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 82a2894: Improve doc strings of 'append-to-buffer' and friends |
Date: |
Fri, 9 Aug 2019 03:32:49 -0400 (EDT) |
branch: emacs-26
commit 82a2894be479ea88ebe28e72a7709b94203b096c
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Improve doc strings of 'append-to-buffer' and friends
* lisp/simple.el (append-to-buffer, prepend-to-buffer)
(copy-to-buffer): Doc fixes.
---
lisp/simple.el | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/lisp/simple.el b/lisp/simple.el
index b10c786..b5c7052 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5268,8 +5268,10 @@ BUFFER may be a buffer or a buffer name."
nil)
(defun append-to-buffer (buffer start end)
- "Append to specified buffer the text of the region.
-It is inserted into that buffer before its point.
+ "Append to specified BUFFER the text of the region.
+The text is inserted into that buffer before its point.
+BUFFER can be a buffer or the name of a buffer; this
+function will create BUFFER if it doesn't already exist.
When calling from a program, give three arguments:
BUFFER (or buffer name), START and END.
@@ -5291,8 +5293,10 @@ START and END specify the portion of the current buffer
to be copied."
(set-window-point window (point))))))))
(defun prepend-to-buffer (buffer start end)
- "Prepend to specified buffer the text of the region.
-It is inserted into that buffer after its point.
+ "Prepend to specified BUFFER the text of the region.
+The text is inserted into that buffer after its point.
+BUFFER can be a buffer or the name of a buffer; this
+function will create BUFFER if it doesn't already exist.
When calling from a program, give three arguments:
BUFFER (or buffer name), START and END.
@@ -5305,8 +5309,10 @@ START and END specify the portion of the current buffer
to be copied."
(insert-buffer-substring oldbuf start end)))))
(defun copy-to-buffer (buffer start end)
- "Copy to specified buffer the text of the region.
-It is inserted into that buffer, replacing existing text there.
+ "Copy to specified BUFFER the text of the region.
+The text is inserted into that buffer, replacing existing text there.
+BUFFER can be a buffer or the name of a buffer; this
+function will create BUFFER if it doesn't already exist.
When calling from a program, give three arguments:
BUFFER (or buffer name), START and END.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 82a2894: Improve doc strings of 'append-to-buffer' and friends,
Eli Zaretskii <=