comparison lisp/ChangeLog @ 4604:e0a8715fdb1f

Support new IGNORE-INVALID-SEQUENCESP argument, #'query-coding-region. lisp/ChangeLog addition: 2009-02-07 Aidan Kehoe <kehoea@parhasard.net> * coding.el (query-coding-clear-highlights): Rename the BUFFER argument to BUFFER-OR-STRING, describe it as possibly being a string in its documentation. (default-query-coding-region): Add a new IGNORE-INVALID-SEQUENCESP argument, document that this function does not support it. Bind case-fold-search to nil, we don't want this to influence what the function thinks is encodable or not. (query-coding-region): Add a new IGNORE-INVALID-SEQUENCESP argument, document what it does; reflect this new argument in the associated compiler macro. (query-coding-string): Add a new IGNORE-INVALID-SEQUENCESP argument, document what it does. Support the HIGHLIGHT argument correctly. * unicode.el (unicode-query-coding-region): Add a new IGNORE-INVALID-SEQUENCESP argument, document what it does, implement this. Document a potential problem. Use #'query-coding-clear-highlights instead of reimplementing it ourselves. Remove some debugging messages. * mule/arabic.el (iso-8859-6): * mule/cyrillic.el (iso-8859-5): * mule/greek.el (iso-8859-7): * mule/hebrew.el (iso-8859-8): * mule/latin.el (iso-8859-2): * mule/latin.el (iso-8859-3): * mule/latin.el (iso-8859-4): * mule/latin.el (iso-8859-14): * mule/latin.el (iso-8859-15): * mule/latin.el (iso-8859-16): * mule/latin.el (iso-8859-9): * mule/latin.el (windows-1252): * mule/mule-coding.el (iso-8859-1): Avoid the assumption that characters not given an explicit mapping in these coding systems map to the ISO 8859-1 characters corresponding to the octets on disk; this makes it much more reasonable to implement the IGNORE-INVALID-SEQUENCESP argument to query-coding-region. * mule/mule-cmds.el (set-language-info): Correct the docstring. * mule/mule-cmds.el (finish-set-language-environment): Treat invalid Unicode sequences produced from invalid-sequence-coding-system and corresponding to control characters the same as control characters in redisplay. * mule/mule-cmds.el: Document that encode-coding-char is available in coding.el * mule/mule-coding.el (make-8-bit-generate-helper): Change to return the both the encode-program generated and the relevant non-ASCII charset; update the docstring to reflect this. * mule/mule-coding.el (make-8-bit-generate-encode-program-and-skip-chars-strings): Rename this function; have it return skip-chars-strings as well as the encode program. Have these skip-chars-strings use ranges for charsets, where possible. * mule/mule-coding.el (make-8-bit-create-decode-encode-tables): Revise this to allow people to specify explicitly characters that should be undefined (= corresponding to keys in unicode-error-default-translation-table), and treating unspecified octets above #x7f as undefined by default. * mule/mule-coding.el (8-bit-fixed-query-coding-region): Add a new IGNORE-INVALID-SEQUENCESP argument, implement support for it using the 8-bit-fixed-invalid-sequences-skip-chars coding system property; remove some debugging messages. * mule/mule-coding.el (make-8-bit-coding-system): This function is dumped, autoloading it makes no sense. Document what happens when characters above #x7f are not specified, implement this. * mule/vietnamese.el: Correct spelling. tests/ChangeLog addition: 2009-02-07 Aidan Kehoe <kehoea@parhasard.net> * automated/query-coding-tests.el: Add FAILING-CASE arguments to the Assert calls, making #'q-c-debug mostly unnecessary. Remove #'q-c-debug. Add new tests that use the IGNORE-INVALID-SEQUENCESP argument to #'query-coding-region; rework the existing ones to respect it.
author Aidan Kehoe <kehoea@parhasard.net>
date Sat, 07 Feb 2009 17:13:37 +0000
parents aac2a827bb6b
children c786c3fd0740
comparison
equal deleted inserted replaced
4603:202cb69c4d87 4604:e0a8715fdb1f
1 2009-02-07 Aidan Kehoe <kehoea@parhasard.net>
2
3 * coding.el (query-coding-clear-highlights):
4 Rename the BUFFER argument to BUFFER-OR-STRING, describe it as
5 possibly being a string in its documentation.
6 (default-query-coding-region):
7 Add a new IGNORE-INVALID-SEQUENCESP argument, document that this
8 function does not support it.
9 Bind case-fold-search to nil, we don't want this to influence what the
10 function thinks is encodable or not.
11 (query-coding-region):
12 Add a new IGNORE-INVALID-SEQUENCESP argument, document what it
13 does; reflect this new argument in the associated compiler macro.
14 (query-coding-string):
15 Add a new IGNORE-INVALID-SEQUENCESP argument, document what it
16 does. Support the HIGHLIGHT argument correctly.
17 * unicode.el (unicode-query-coding-region):
18 Add a new IGNORE-INVALID-SEQUENCESP argument, document what it
19 does, implement this. Document a potential problem.
20 Use #'query-coding-clear-highlights instead of reimplementing it
21 ourselves.
22 Remove some debugging messages.
23 * mule/arabic.el (iso-8859-6):
24 * mule/cyrillic.el (iso-8859-5):
25 * mule/greek.el (iso-8859-7):
26 * mule/hebrew.el (iso-8859-8):
27 * mule/latin.el (iso-8859-2):
28 * mule/latin.el (iso-8859-3):
29 * mule/latin.el (iso-8859-4):
30 * mule/latin.el (iso-8859-14):
31 * mule/latin.el (iso-8859-15):
32 * mule/latin.el (iso-8859-16):
33 * mule/latin.el (iso-8859-9):
34 * mule/latin.el (windows-1252):
35 * mule/mule-coding.el (iso-8859-1):
36 Avoid the assumption that characters not given an explicit mapping
37 in these coding systems map to the ISO 8859-1 characters
38 corresponding to the octets on disk; this makes it much more
39 reasonable to implement the IGNORE-INVALID-SEQUENCESP argument to
40 query-coding-region.
41 * mule/mule-cmds.el (set-language-info):
42 Correct the docstring.
43 * mule/mule-cmds.el (finish-set-language-environment):
44 Treat invalid Unicode sequences produced from
45 invalid-sequence-coding-system and corresponding to control
46 characters the same as control characters in redisplay.
47 * mule/mule-cmds.el:
48 Document that encode-coding-char is available in coding.el
49 * mule/mule-coding.el (make-8-bit-generate-helper):
50 Change to return the both the encode-program generated and the
51 relevant non-ASCII charset; update the docstring to reflect this.
52 * mule/mule-coding.el
53 (make-8-bit-generate-encode-program-and-skip-chars-strings):
54 Rename this function; have it return skip-chars-strings as well as
55 the encode program. Have these skip-chars-strings use ranges for
56 charsets, where possible.
57 * mule/mule-coding.el (make-8-bit-create-decode-encode-tables):
58 Revise this to allow people to specify explicitly characters that
59 should be undefined (= corresponding to keys in
60 unicode-error-default-translation-table), and treating unspecified
61 octets above #x7f as undefined by default.
62 * mule/mule-coding.el (8-bit-fixed-query-coding-region):
63 Add a new IGNORE-INVALID-SEQUENCESP argument, implement support
64 for it using the 8-bit-fixed-invalid-sequences-skip-chars coding
65 system property; remove some debugging messages.
66 * mule/mule-coding.el (make-8-bit-coding-system):
67 This function is dumped, autoloading it makes no sense.
68 Document what happens when characters above #x7f are not
69 specified, implement this.
70 * mule/vietnamese.el:
71 Correct spelling.
72
1 2009-02-04 Aidan Kehoe <kehoea@parhasard.net> 73 2009-02-04 Aidan Kehoe <kehoea@parhasard.net>
2 74
3 * help.el: 75 * help.el:
4 (describe-function-1): 76 (describe-function-1):
5 * byte-optimize.el: 77 * byte-optimize.el: