2 new commits in XEmacs:
https://bitbucket.org/xemacs/xemacs/commits/7d977d247549/
Changeset: 7d977d247549
User: kehoea
Date: 2017-09-30 14:51:56+00:00
Summary: Correct my Check-Error syntax, tests/automated/os-tests.el
tests/ChangeLog addition:
2017-09-30 Aidan Kehoe <kehoea(a)parhasard.net>
[...]
* automated/os-tests.el:
Call #'Check-Error correctly here when testing the restrictions on
the ZONE argument to #'encode-time
Affected #: 2 files
diff -r 82f2cfb6d5e65cb6aaddd215b77f4522b955c73d -r
7d977d2475494e52eb00fe1eb1fae9b33c5c672e tests/ChangeLog
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -14,6 +14,9 @@
unicode-internal merge removed that charset, relying on the
just-in-time Unicode codepoint support for the corresponding
characters.
+ * automated/os-tests.el:
+ Call #'Check-Error correctly here when testing the restrictions on
+ the ZONE argument to #'encode-time
2017-09-24 Aidan Kehoe <kehoea(a)parhasard.net>
diff -r 82f2cfb6d5e65cb6aaddd215b77f4522b955c73d -r
7d977d2475494e52eb00fe1eb1fae9b33c5c672e tests/automated/os-tests.el
--- a/tests/automated/os-tests.el
+++ b/tests/automated/os-tests.el
@@ -125,11 +125,11 @@
;; Check some restrictions introduced to the ZONE argument to #'encode-time.
-(Check-Error (encode-time 24 4 20 11 5 2017 -86401) args-out-of-range)
+(Check-Error args-out-of-range (encode-time 24 4 20 11 5 2017 -86401))
(Assert (equal (encode-time 24 4 20 11 5 2017 -86400)
'(22806 . 5448))) ;; "05/12/17 09:04:25 PM"
(Assert (equal (encode-time 24 4 20 11 5 2017 86400)
'(22803 . 29256))) ;; "05/10/17 09:04:24 PM"
-(Check-Error (encode-time 24 4 20 11 5 2017 86401) args-out-of-range)
+(Check-Error args-out-of-range (encode-time 24 4 20 11 5 2017 86401))
;;; end of os-tests.el
https://bitbucket.org/xemacs/xemacs/commits/6f9111895fd5/
Changeset: 6f9111895fd5
User: kehoea
Date: 2017-09-30 14:56:50+00:00
Summary: Give CHAR_CODE_LIMIT a more useful value, old-Mule
src/ChangeLog addition:
2017-09-30 Aidan Kehoe <kehoea(a)parhasard.net>
* text.c (old_mule_non_ascii_valid_ichar_p):
Use CHAR_CODE_LIMIT here rather than a magic constant.
* text.h:
Give CHAR_CODE_LIMIT a more useful value on old-Mule, especially
helpful for #'test-chars in mule-tests.el
Affected #: 3 files
diff -r 7d977d2475494e52eb00fe1eb1fae9b33c5c672e -r
6f9111895fd5675fbdbb41da7370ff03f2cb687c src/ChangeLog
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
+2017-09-30 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * text.c (old_mule_non_ascii_valid_ichar_p):
+ Use CHAR_CODE_LIMIT here rather than a magic constant.
+ * text.h:
+ Give CHAR_CODE_LIMIT a more useful value on old-Mule, especially
+ helpful for #'test-chars in mule-tests.el
+
2017-09-28 Stephen J. Turnbull <stephen(a)xemacs.org>
Fix crash in unicode_to_charset_codepoint_raw.
diff -r 7d977d2475494e52eb00fe1eb1fae9b33c5c672e -r
6f9111895fd5675fbdbb41da7370ff03f2cb687c src/text.c
--- a/src/text.c
+++ b/src/text.c
@@ -1507,7 +1507,7 @@
int f1, f2, f3;
/* Must have only lowest 21 bits set */
- if (ch & ~0x1FFFFF)
+ if (ch & ~(CHAR_CODE_LIMIT - 1))
return 0;
f1 = ichar_field1 (ch);
diff -r 7d977d2475494e52eb00fe1eb1fae9b33c5c672e -r
6f9111895fd5675fbdbb41da7370ff03f2cb687c src/text.h
--- a/src/text.h
+++ b/src/text.h
@@ -507,13 +507,13 @@
#ifdef UNICODE_INTERNAL
#define MAX_ICHAR_LEN 6
+/* Exclusive upper bound on char codes. */
+#define CHAR_CODE_LIMIT 0x40000000
#else
#define MAX_ICHAR_LEN 4
+#define CHAR_CODE_LIMIT 0x200000
#endif
-/* Exclusive upper bound on char codes. */
-#define CHAR_CODE_LIMIT 0x40000000
-
#ifdef UNICODE_INTERNAL
#define FIRST_TRAILING_BYTE 0x80
#define LAST_TRAILING_BYTE 0xBF
Repository URL:
https://bitbucket.org/xemacs/xemacs/
--
This is a commit notification from
bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.