aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorPhilipp Stephani2016-08-19 21:23:24 +0200
committerPhilipp Stephani2016-08-20 18:25:05 +0200
commit9b99772cf4b24443e1c096bb1e847da4cf502543 (patch)
tree32702965737695ae1a523f4dac9999472ca96524 /src/editfns.c
parent37d4723f73998ecbf30e9f655026422b0e2017a7 (diff)
downloademacs-9b99772cf4b24443e1c096bb1e847da4cf502543.tar.gz
emacs-9b99772cf4b24443e1c096bb1e847da4cf502543.zip
Some assorted documentation clarifications
* src/fileio.c (Fwrite_region): Clarify that END is ignored if START is nil. * src/editfns.c (Fbuffer_size): Add short discussion about narrowing. * src/callproc.c (Fcall_process_region): Discuss behavior when START and END are not buffer positions.
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 32c8bec6db2..e1c85166545 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1029,7 +1029,14 @@ usage: (save-current-buffer &rest BODY) */)
1029 1029
1030DEFUN ("buffer-size", Fbuffer_size, Sbuffer_size, 0, 1, 0, 1030DEFUN ("buffer-size", Fbuffer_size, Sbuffer_size, 0, 1, 0,
1031 doc: /* Return the number of characters in the current buffer. 1031 doc: /* Return the number of characters in the current buffer.
1032If BUFFER, return the number of characters in that buffer instead. */) 1032If BUFFER is not nil, return the number of characters in that buffer
1033instead.
1034
1035This does not take narrowing into account; to count the number of
1036characters in the accessible portion of the current buffer, use
1037`(- (point-max) (point-min))', and to count the number of characters
1038in some other BUFFER, use
1039`(with-current-buffer BUFFER (- (point-max) (point-min)))'. */)
1033 (Lisp_Object buffer) 1040 (Lisp_Object buffer)
1034{ 1041{
1035 if (NILP (buffer)) 1042 if (NILP (buffer))