aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-03-18 05:59:12 +0100
committerLars Ingebrigtsen2021-03-18 05:59:12 +0100
commit60af754170f22f5d25510af069ed0ebfec95f992 (patch)
tree6fdff54b73dc040441b5a999082e08eb7a691905 /doc
parent6a75b6fcb10725fb1e352dec506b84e795baa7c8 (diff)
downloademacs-60af754170f22f5d25510af069ed0ebfec95f992.tar.gz
emacs-60af754170f22f5d25510af069ed0ebfec95f992.zip
Document that `buffer-string' retains text properties
* doc/lispref/text.texi (Buffer Contents): Mention text properties in the `buffer-string' documentation. * src/editfns.c (Fbuffer_string): Mention text properties in the doc string (bug#47220).
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/text.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index e47e851b101..44c4b90b2fc 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -222,7 +222,9 @@ properties, just the characters themselves. @xref{Text Properties}.
222 222
223@defun buffer-string 223@defun buffer-string
224This function returns the contents of the entire accessible portion of 224This function returns the contents of the entire accessible portion of
225the current buffer, as a string. 225the current buffer, as a string. If the text being copied has any
226text properties, these are copied into the string along with the
227characters they belong to.
226@end defun 228@end defun
227 229
228 If you need to make sure the resulting string, when copied to a 230 If you need to make sure the resulting string, when copied to a