diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-03-18 05:59:12 +0100 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2021-03-18 11:03:14 +0200 |
commit | 7ae4588bb4800694d841da1684538191cb291617 (patch) | |
tree | 40b7694e2cc5560cf247dce9b8ad331778d6438b /doc | |
parent | a7f95d5244dcb1fea067858c3ddc2bb2a22ba37a (diff) | |
download | emacs-7ae4588bb4800694d841da1684538191cb291617.tar.gz |
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).
(cherry picked from commit 60af754170f22f5d25510af069ed0ebfec95f992)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lispref/text.texi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 89582acd35a..6eda581777e 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -222,7 +222,9 @@ properties, just the characters themselves. @xref{Text Properties}. @defun buffer-string This function returns the contents of the entire accessible portion of -the current buffer, as a string. +the current buffer, as a string. If the text being copied has any +text properties, these are copied into the string along with the +characters they belong to. @end defun If you need to make sure the resulting string, when copied to a |