diff lisp/coding.el @ 4622:8cbca852bcd4

#'check-coding-systems-region: return nil on success, not t. lisp/ChangeLog addition: 2009-02-18 Aidan Kehoe <kehoea@parhasard.net> * coding.el (check-coding-systems-region): Return null on success, not t. See http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1723 tests/ChangeLog addition: 2009-02-18 Aidan Kehoe <kehoea@parhasard.net> * automated/query-coding-tests.el : Check that #'check-coding-systems-region returns null on success here, not t.
author Aidan Kehoe <kehoea@parhasard.net>
date Wed, 18 Feb 2009 07:53:34 +0000
parents 33b8c874b2c8
children 257b468bf2ca
line wrap: on
line diff
--- a/lisp/coding.el	Tue Feb 17 13:42:36 2009 +0000
+++ b/lisp/coding.el	Wed Feb 18 07:53:34 2009 +0000
@@ -589,8 +589,7 @@
 encode.
 
 If all coding systems in CODING-SYSTEM-LIST can encode the region,
-this function returns t.  This conflicts with the documented, but not
-with the observed, GNU behavior.
+this function returns nil.
 
 If BEGIN is a string, `check-coding-systems-region' ignores END, and checks
 whether the coding systems can encode BEGIN.  The alist that is returned
@@ -619,7 +618,7 @@
                    (setq intermediate (list (coding-system-name coding-system)))
                    (map-range-table range-lambda ranges)
                    (push (nreverse intermediate) result)))
-               finally return (or result t)))))
+               finally return result))))
   (if (stringp begin)
       (with-temp-buffer
 	(insert begin)