1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-10 00:42:17 -07:00
Commit graph

482 commits

Author SHA1 Message Date
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Kenichi Handa
35befdaa75 (QCascii_compatible_p): New variable.
(syms_of_coding): Initialize it.
(ONE_MORE_BYTE): Decrement `src' before calling string_char.
(ONE_MORE_BYTE_NO_CHECK): Likewise.
(record_conversion_result): Add `default:' case.
(coding_charset_list): Delete unused variable `coding_type'.
(Fdefine_coding_system_internal): Add `ascii-compatible-p'
property in the plist of the coding system.
(Fcoding_system_put): Check QCascii_compatible_p.
2005-07-29 06:20:30 +00:00
Miles Bader
bacb9790f5 Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-69
Merge from emacs--cvs-trunk--0

Patches applied:

 * emacs--cvs-trunk--0  (patch 474-484)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 88-91)

   - Merge from emacs--cvs-trunk--0
   - Update FSF's address in GPL notices
   - Update from CVS
2005-07-14 08:02:00 +00:00
Kenichi Handa
16ef9c5612 (code_convert_region_unwind): ARG is changed to a cons.
(code_convert_region): Adjusted for the above change.
(set_conversion_work_buffer): If the work buffer is already in
use, generate a new buffer and return it.  Otherwise return Qnil.
(run_pre_post_conversion_on_str): Adjusted for the above change.
(run_pre_write_conversin_on_c_str): Likewise.
2005-07-14 07:57:42 +00:00
Kim F. Storm
387f6ba5c2 * coding.c (Qprocess_argument):
* coding.h (Qprocess_argument): Remove unused var.
2005-07-12 13:16:18 +00:00
Miles Bader
d3e4babdd1 Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-68
Merge from emacs--cvs-trunk--0

Patches applied:

 * emacs--cvs-trunk--0  (patch 459-473)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 86-87)

   - Update from CVS
2005-07-07 12:43:14 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Stefan Monnier
737ccba9d9 (run_pre_post_conversion_on_str): Remove unused var `buf'. 2005-06-13 20:47:42 +00:00
Kim F. Storm
c3912f23e3 (decode_coding_string): Handle CODING_FINISH_INTERRUPT. 2005-06-03 23:02:50 +00:00
Kim F. Storm
d12168d677 Typo in comment. 2005-04-21 23:36:16 +00:00
Miles Bader
4a2283bcc7 Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-33
Merge from emacs--cvs-trunk--0

Patches applied:

 * emacs--cvs-trunk--0  (patch 223-227)

   - Update from CVS
2005-04-02 22:40:25 +00:00
Kenichi Handa
4220560759 (Vcoding_category_list): Docstring fix. 2005-03-31 11:21:14 +00:00
Miles Bader
773415d934 Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-31
Merge from emacs--cvs-trunk--0

Patches applied:

 * emacs--cvs-trunk--0  (patch 206-222)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 45-52)

   - Update from CVS
   - Update from CVS: texi Makefile.in CVS keyw cruft
   - Update from CVS: ChangeLog tweaks
2005-03-31 09:58:14 +00:00
Kenichi Handa
d4850d6743 (decode_coding_object): Use safe_call1 instead of call1.
(encode_coding_object): Use safe_call instead of call2.
2005-03-29 00:34:38 +00:00
Kenichi Handa
dc3a0017db (syms_of_coding): Suggest to use set-coding-category in
the docstring of coding-category-list.
2005-03-25 04:28:40 +00:00
Miles Bader
1bac4db562 Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-28
Merge from emacs--cvs-trunk--0

Patches applied:

 * emacs--cvs-trunk--0  (patch 180-191)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 39-44)

   - Merge from emacs--cvs-trunk--0
   - Update from CVS
2005-03-19 02:42:17 +00:00
Kenichi Handa
0ec31faf30 (syms_of_coding): Docstring of coding-category-list fixed. 2005-03-15 06:26:15 +00:00
Kenichi Handa
3bb917bff6 (encode_coding_string): Always return a unibyte string.
If NOCOPY is nonzero and there's no need of encoding, make STR
unibyte directly.
2005-02-14 01:04:50 +00:00
Kenichi Handa
2d4430a8eb (decode_coding_iso2022): Translate invalid codes if
translation-table is specified.
2005-01-18 00:11:43 +00:00
Miles Bader
f1d34bcacd Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-81
Merge from emacs--cvs-trunk--0

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-748
 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-749
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-750
   Merge from gnus--rel--5.10

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-751
 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-753
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-754
   Merge from gnus--rel--5.10

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-755
 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-757
   Update from CVS

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-78
   Merge from emacs--cvs-trunk--0

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-79
 - miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-80
   Update from CVS

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-81
   Merge from emacs--cvs-trunk--0

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-82
   Update from CVS
2005-01-02 09:13:19 +00:00
Dan Nicolaescu
4b9829242b (decode_coding): Fix previous change. 2004-12-28 18:22:55 +00:00
Dan Nicolaescu
5bdca8af0d (decode_coding_XXX, decode_composition_emacs_mule)
(decode_coding_emacs_mule, encode_coding_emacs_mule)
(decode_coding_iso2022, encode_designation_at_bol)
(encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
(decode_coding): Constify arguments and local vars.
2004-12-28 14:50:49 +00:00
Kenichi Handa
b3ebb2d471 (code_convert_region): Fix calculation of `ratio'. 2004-12-27 05:51:40 +00:00
Kenichi Handa
0ff61e786c Cancel the change done in HEAD on 2004-11-30.
(coding_charset_list): New function.
2004-12-11 02:12:49 +00:00
Miles Bader
000fc2b1fa Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-74
Merge from emacs--cvs-trunk--0

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-709
   Update from CVS: src/indent.c (Fvertical_motion): Fix last change.

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-710
 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-715
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-716
   Merge from gnus--rel--5.10

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-74
   Update from CVS
2004-12-08 05:02:30 +00:00
Kenichi Handa
2a47931bdb (Vcode_conversion_workbuf_name): New variable.
(syms_of_coding): Initialize and staticpro it.
(set_conversion_work_buffer): New function.
(run_pre_post_conversion_on_str): Use it.
(run_pre_write_conversin_on_c_str): New function.
2004-11-30 08:07:11 +00:00
Richard M. Stallman
8e7a47862a (run_pre_post_conversion_on_str): Bind Qinhibit_read_only. 2004-11-25 03:18:31 +00:00
Kenichi Handa
cf7dfdf5a6 (encode_coding_iso_2022): Fix handling of charset
annotation.
2004-10-13 02:40:30 +00:00
Kenichi Handa
ae6f73fa1a (setup_coding_system): If coding_system is nil, use
Qundecided.
(Fterminal_coding_system): Return nil if terminal coding system is
`undecided'.
(syms_of_coding): Define coding-system `undecided' here.  Setup
terminal_coding as `undecided'.
2004-10-12 02:40:21 +00:00
Kenichi Handa
ce559e6f5b (code_convert_region): Don't skip ASCIIs if there are compositions to encode.
Free composition data.
(encode_coding_string): Likewise.
2004-09-29 23:40:30 +00:00
Kenichi Handa
3aef54f3ce (detect_coding): Fix previous change. 2004-09-14 07:55:26 +00:00
Kenichi Handa
6cb21a4f62 (detect_coding_utf_16): Don't set detect_info->found if
BOM is not found.
(detect_coding): Optimization for ISO-2022 when no 8-bit data is
found.
(detect_coding_system): Likewise.
2004-09-13 00:41:15 +00:00
Kenichi Handa
160a708c6f (decode_coding_string): Adjust coding->consumed, and
etc. with shrinked_bytes.
2004-08-03 05:12:00 +00:00
Kim F. Storm
43e4a82f6e (MAX_ALLOCA): Remove define. 2004-06-21 21:53:27 +00:00
Kenichi Handa
230779b9a3 (encode_coding_string): Check CODING_FINISH_INTERRUPT. 2004-06-11 05:56:44 +00:00
Kenichi Handa
12d5b1856c (find_safe_codings): Check NILP (safe_codings) only at
the necessary places.
2004-06-07 00:00:03 +00:00
Kenichi Handa
6239a668ad (Fset_safe_terminal_coding_system_internal): Set
suppress_error in safe_terminal_coding, not terminal_coding.
2004-05-23 23:56:57 +00:00
Kenichi Handa
ea29edf291 (setup_coding_system): Set coding->common_flags
correctly for raw-text.
(consume_chars): On encoding unibyte text by raw-text, don't check
multibyte form.
(encode_coding): On encoding by raw-text, never use translation
tables.
2004-04-28 12:52:51 +00:00
Kenichi Handa
3dbe78594e (detect_coding): Delete unused variables.
(detect_coding_system): Likewise.
2004-04-20 11:26:43 +00:00
Kenichi Handa
f03caae0b7 (encode_coding_utf_8): Fix handling of raw-byte char.
(consume_chars): Fix handling of 8-bit bytes in unibyte source.
2004-04-20 02:46:38 +00:00
Kenichi Handa
988b37597a (Ffind_coding_systems_region_internal): Include raw-text and
no-conversion in the result.
2004-04-14 12:37:29 +00:00
Kenichi Handa
9ffd559c49 Sync to HEAD.
(emacs_mule_char): Check invalid code more regidly.
2004-04-12 23:17:27 +00:00
Kenichi Handa
134b954969 (DECODE_DESIGNATION): Set chars_96 to -1 instead of
goto invalid_code.
(decode_coding_iso_2022): Fix handling of invalid designation.
2004-03-30 13:09:38 +00:00
Kenichi Handa
f6cbaf43e3 Add many prototypes for static functions. 2004-03-11 11:21:39 +00:00
Kenichi Handa
2170c8f05b (get_translation_table): Allow max_lookup to be NULL.
(decode_coding): Call get_translation_table with max_lookup NULL.
(Ffind_coding_systems_region_internal): Likewise.
(Funencodable_char_position, Fcheck_coding_systems_region):
Likewise.
2004-03-11 08:46:07 +00:00
Kenichi Handa
09ee6fdda7 (get_translation_table): New arg max_lookup. Caller changed.
(LOOKUP_TRANSLATION_TABLE): Pay attention that table may be a list.
2004-03-11 07:07:41 +00:00
Kenichi Handa
e6a54062d3 (get_translation_table): Declare it as Lisp_Object.
(LOOKUP_TRANSLATION_TABLE): New macro.
(produce_chars): Use LOOKUP_TRANSLATION_TABLE instead of
CHAR_TABLE_REF.
(consume_chars): Likewise.
2004-03-11 05:54:58 +00:00
Kenichi Handa
433f7f87b7 (get_translation): Fix previous change.
(encode_coding): Don't call translate_chars.
(consume_chars): New arg translation_table.  Caller changed.
(translate_chars): Deleted.
(syms_of_coding): Make translation-table's number of extra slots 2.
2004-03-11 02:18:12 +00:00
Kenichi Handa
69a80ea334 (MAX_ANNOTATION_LENGTH): Adjusted for the change of
annotation data format.
(ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
Change arguments FROM and TO to single argument NCHARS.  Caller
changed.
(decode_coding_utf_8): Pay attention to coding->charbuf_used.
(decode_coding_utf_16, decode_coding_emacs_mule)
(decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
(decode_coding_ccl, decode_coding_charset): Likewise.
(get_translation): New function.
(produce_chars): New arguments translation_table and last_block.
Translate characters here.  Return number of carryover chars.
Caller changed.
(produce_composition): New argument pos.  Caller changed.
Adjusted for the change of annotation data format.
(produce_charset, produce_annotation): Likewise.
(decode_coding): Don't call translate_chars.
2004-03-10 23:11:18 +00:00
Kenichi Handa
6eced09c3d (decode_coding_emacs_mule): Handle insufficent source correctly. 2004-03-09 12:27:26 +00:00