From d64d57cdee65775345fcd1511d2e1e9ac4539a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pit--Claudel?= Date: Tue, 30 Aug 2016 11:20:10 -0400 Subject: [PATCH] ; Mention that compare-buffer-substrings can throw args-out-of-range * doc/lispref/text.texi: Mention args-out-of-range. --- doc/lispref/text.texi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 213eec9..9f2ca11 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -340,9 +340,11 @@ Comparing Text This function lets you compare two substrings of the same buffer or two different buffers. The first three arguments specify one substring, giving a buffer (or a buffer name) and two positions within the -buffer. The last three arguments specify the other substring in the -same way. You can use @code{nil} for @var{buffer1}, @var{buffer2}, or -both to stand for the current buffer. +buffer. If these positions are not in the accessible portion of the +buffer, @code{compare-buffer-substrings} signals an address@hidden error. The last three arguments specify the +other substring in the same way. You can use @code{nil} for address@hidden, @var{buffer2}, or both to stand for the current buffer. The value is negative if the first substring is less, positive if the first is greater, and zero if they are equal. The absolute value of -- 2.7.4