diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-03-18 05:59:12 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-03-18 05:59:12 +0100 |
commit | 60af754170f22f5d25510af069ed0ebfec95f992 (patch) | |
tree | 6fdff54b73dc040441b5a999082e08eb7a691905 /src/editfns.c | |
parent | 6a75b6fcb10725fb1e352dec506b84e795baa7c8 (diff) | |
download | emacs-60af754170f22f5d25510af069ed0ebfec95f992.tar.gz emacs-60af754170f22f5d25510af069ed0ebfec95f992.tar.bz2 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 'src/editfns.c')
-rw-r--r-- | src/editfns.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c index fb20fc96550..bc6553a7d2c 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -1697,7 +1697,11 @@ they can be in either order. */) DEFUN ("buffer-string", Fbuffer_string, Sbuffer_string, 0, 0, 0, doc: /* Return the contents of the current buffer as a string. If narrowing is in effect, this function returns only the visible part -of the buffer. */) +of the buffer. + +This function copies the text properties of that part of the buffer +into the result string; if you don’t want the text properties, +use `buffer-substring-no-properties' instead. */) (void) { return make_buffer_string_both (BEGV, BEGV_BYTE, ZV, ZV_BYTE, 1); |