aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2019-08-09 10:31:39 +0300
committerEli Zaretskii2019-08-09 10:31:39 +0300
commit82a2894be479ea88ebe28e72a7709b94203b096c (patch)
treeb6302c5c68d3ce95f6ac21ee3caf69471d76452d
parentcb0403d7467502a1a9ef2699ccce826aac2ace7a (diff)
downloademacs-82a2894be479ea88ebe28e72a7709b94203b096c.tar.gz
emacs-82a2894be479ea88ebe28e72a7709b94203b096c.zip
Improve doc strings of 'append-to-buffer' and friends
* lisp/simple.el (append-to-buffer, prepend-to-buffer) (copy-to-buffer): Doc fixes.
-rw-r--r--lisp/simple.el18
1 files changed, 12 insertions, 6 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index b10c7861d13..b5c7052184b 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5268,8 +5268,10 @@ BUFFER may be a buffer or a buffer name."
5268 nil) 5268 nil)
5269 5269
5270(defun append-to-buffer (buffer start end) 5270(defun append-to-buffer (buffer start end)
5271 "Append to specified buffer the text of the region. 5271 "Append to specified BUFFER the text of the region.
5272It is inserted into that buffer before its point. 5272The text is inserted into that buffer before its point.
5273BUFFER can be a buffer or the name of a buffer; this
5274function will create BUFFER if it doesn't already exist.
5273 5275
5274When calling from a program, give three arguments: 5276When calling from a program, give three arguments:
5275BUFFER (or buffer name), START and END. 5277BUFFER (or buffer name), START and END.
@@ -5291,8 +5293,10 @@ START and END specify the portion of the current buffer to be copied."
5291 (set-window-point window (point)))))))) 5293 (set-window-point window (point))))))))
5292 5294
5293(defun prepend-to-buffer (buffer start end) 5295(defun prepend-to-buffer (buffer start end)
5294 "Prepend to specified buffer the text of the region. 5296 "Prepend to specified BUFFER the text of the region.
5295It is inserted into that buffer after its point. 5297The text is inserted into that buffer after its point.
5298BUFFER can be a buffer or the name of a buffer; this
5299function will create BUFFER if it doesn't already exist.
5296 5300
5297When calling from a program, give three arguments: 5301When calling from a program, give three arguments:
5298BUFFER (or buffer name), START and END. 5302BUFFER (or buffer name), START and END.
@@ -5305,8 +5309,10 @@ START and END specify the portion of the current buffer to be copied."
5305 (insert-buffer-substring oldbuf start end))))) 5309 (insert-buffer-substring oldbuf start end)))))
5306 5310
5307(defun copy-to-buffer (buffer start end) 5311(defun copy-to-buffer (buffer start end)
5308 "Copy to specified buffer the text of the region. 5312 "Copy to specified BUFFER the text of the region.
5309It is inserted into that buffer, replacing existing text there. 5313The text is inserted into that buffer, replacing existing text there.
5314BUFFER can be a buffer or the name of a buffer; this
5315function will create BUFFER if it doesn't already exist.
5310 5316
5311When calling from a program, give three arguments: 5317When calling from a program, give three arguments:
5312BUFFER (or buffer name), START and END. 5318BUFFER (or buffer name), START and END.