changeset 102055:4d3a5c88cb2b

(Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
author Kenichi Handa <handa@m17n.org>
date Mon, 16 Feb 2009 11:52:57 +0000
parents c35aac5fa64e
children 561723d88db8
files src/coding.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Mon Feb 16 09:32:19 2009 +0000
+++ b/src/coding.c	Mon Feb 16 11:52:57 2009 +0000
@@ -8461,7 +8461,10 @@
 
 START may be a string.  In that case, check if the string is
 encodable, and the value contains indices to the string instead of
-buffer positions.  END is ignored.  */)
+buffer positions.  END is ignored.
+
+If the current buffer (or START if it is string) is unibyte, the value
+is nil.  */)
      (start, end, coding_system_list)
      Lisp_Object start, end, coding_system_list;
 {
@@ -8492,7 +8495,7 @@
       start_byte = CHAR_TO_BYTE (XINT (start));
       end_byte = CHAR_TO_BYTE (XINT (end));
       if (XINT (end) - XINT (start) == end_byte - start_byte)
-	return Qt;
+	return Qnil;
 
       if (XINT (start) < GPT && XINT (end) > GPT)
 	{