1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00
Commit graph

43 commits

Author SHA1 Message Date
Kenichi Handa
f27f70ecd3 (str_to_unibyte): Modify the comment. 2008-07-04 02:20:08 +00:00
Kenichi Handa
4aa40bb808 (str_to_unibyte): New function. 2008-06-25 02:44:20 +00:00
Stefan Monnier
2afc21f5f6 * character.h (CHAR_TO_BYTE_SAFE): New macro.
* character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
* regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
(WEAK_ALIAS): Simplify.
* syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
when searching a unibyte buffer.
2008-06-12 20:25:47 +00:00
Glenn Morris
9ec0b715e2 Switch to recommended form of GPLv3 permissions notice. 2008-05-14 07:50:26 +00:00
Stefan Monnier
5556875b18 (Fmultibyte_char_to_unibyte): Return latin1 chars unchanged. 2008-04-18 03:26:55 +00:00
Juanma Barranquero
add553ac7e (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction):
Add usage in the docstring.
2008-04-16 11:37:21 +00:00
Kenichi Handa
03365d0eb5 (char_resolve_modifier_mask): Fix previous change. 2008-03-05 05:12:06 +00:00
Kenichi Handa
d0363d443c (char_resolve_modifier_mask): Fix previous change
(Fchar_resolve_modifiers): New function.
(syms_of_character): Declare Fchar_resolve_modifiers as Lisp
function.
2008-03-05 04:18:00 +00:00
Kenichi Handa
2bde7652cd (char_resolve_modifier_mask): New function.
(char_string): Use char_resolve_modifier_mask.
2008-03-05 02:08:30 +00:00
Stefan Monnier
13818c3078 * coding.c (coding_set_destination): Use BEG_BYTE rather than hardcoding 1.
(detect_coding_system):
* lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
(string_char_to_byte, string_byte_to_char, insert_from_gap):
* insdel.c (insert_from_gap):
* fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
(string_char_to_byte, string_byte_to_char, string_make_multibyte)
(string_to_multibyte):
* character.c (chars_in_text, multibyte_chars_in_text):
* fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
2008-02-12 21:35:15 +00:00
Glenn Morris
ec62e0ac4c Update copyright years and GPL version. 2008-02-02 04:32:01 +00:00
Kenichi Handa
87d6f9659c (Funibyte_string): Add "usage: ..." to the docstring. 2007-06-16 02:01:07 +00:00
Kenichi Handa
70b4969d0c (Funibyte_string): New function.
(syms_of_character): Defsubr it.
2007-05-14 11:55:50 +00:00
Kenichi Handa
5aa91c9b30 (char_string): Type of arg C changed to unsigned.
Signal an error if C is an invalid character code.
2007-04-11 11:52:06 +00:00
Kenichi Handa
935d5b020c (multibyte_char_to_unibyte_safe): New function. 2007-02-15 11:27:15 +00:00
Kenichi Handa
3ec0b7a9de *** empty log message *** 2006-06-06 03:57:22 +00:00
Kenichi Handa
c7e14352c6 (Vscript_representative_chars): New variable.
(syms_of_character): Declare it as a Lisp variable.
2006-06-06 03:48:03 +00:00
Kenichi Handa
0aee65b9c0 (lisp_string_width): Check multibyteness of STRING. 2005-12-28 06:02:18 +00:00
Miles Bader
cca4e3b099 Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-44
Merge from emacs--cvs-trunk--0

Patches applied:

 * emacs--cvs-trunk--0  (patch 272-288)

   - src/xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 67)

   - Update from CVS
2005-05-05 00:04:55 +00:00
Kenichi Handa
90c9d03551 (unibyte_has_multibyte_table): New variable. 2004-10-15 02:10:10 +00:00
Miles Bader
fbaf0946b2 Add arch taglines 2004-04-19 07:09:26 +00:00
Kenichi Handa
33f91981f7 *** empty log message *** 2004-04-12 05:56:40 +00:00
Kenichi Handa
10453be959 (translate_char): Accept list of translation tables. 2004-01-27 02:16:25 +00:00
Kenichi Handa
cc6dfd2abc (char_string): Use ASCII_CHAR_P instead of SINGLE_BYTE_CHAR_P. 2003-09-28 23:54:27 +00:00
Dave Love
f4bc0685e1 (lisp_string_width): Make ignore and end EMACS_INT. 2003-09-17 13:51:40 +00:00
Kenichi Handa
8f924df7df *** empty log message *** 2003-09-08 12:53:41 +00:00
Kenichi Handa
e3d8eb8c66 (char_string): Renamed from
char_string_with_unification.  Pay attention to
CHAR_MODIFIER_MASK.
(string_char): Renamed from string_char.
2002-10-09 05:24:48 +00:00
Kenichi Handa
b672c5ae18 (unibyte_to_multibyte_table): New variable.
(unibyte_char_to_multibyte): Move to character.h and defined as
macro.
(multibyte_char_to_unibyte): If C is an eight-bit character,
convert it to the corresponding byte value.
2002-09-03 04:07:11 +00:00
Kenichi Handa
67dde6602c (syms_of_character): Setup Vprintable_chars. 2002-08-20 11:11:19 +00:00
Kenichi Handa
8973478b03 (_fetch_multibyte_char_len): This variable deleted. 2002-08-20 03:59:51 +00:00
Dave Love
ed1d5bc0b2 (Funibyte_char_to_multibyte): Doc fix. 2002-08-18 12:55:13 +00:00
Kenichi Handa
ac86488bf2 (unibyte_char_to_multibyte): Refer to
charset_unibyte, not charset_primary.
(multibyte_char_to_unibyte): Likewise.
(Funibyte_char_to_multibyte): Likewise.
2002-08-15 02:28:08 +00:00
Kenichi Handa
3c5a53bdce (Funibyte_char_to_multibyte): If C can't be decoded
by the primary charset, make it eight-bit char.
(Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
2002-07-31 07:06:36 +00:00
Dave Love
68978cf02e (syms_of_character) <translation-table-vector>: Doc
fix.
2002-07-30 11:32:52 +00:00
Kenichi Handa
c57f3328cd (Vscript_alist): This variable deleted.
(Vchar_script_table, Qchar_script_table): New variable.
(syms_of_character): Declare Vchar_script_table as a lisp variable
and initialize it.
2002-07-26 06:20:29 +00:00
Kenichi Handa
15843e6fa9 (Vscript_alist): New variable.
(string_char_with_unification): Add `const' to local variables.
(str_as_unibyte): Likewise.
(string_escape_byte8): Likewise.
(syms_of_character): Declare script-alist as a Lisp variable.
2002-07-22 06:46:17 +00:00
Dave Love
6cc0e1cacb (syms_of_character): Fix CHAR_TABLE_SET call. 2002-07-16 14:59:03 +00:00
Kenichi Handa
be8b50bc30 (syms_of_character): Setup Vchar_width_table for
eight-bit-control and raw-byte chars.
2002-06-12 00:13:15 +00:00
Kenichi Handa
db6d4189b5 (syms_of_character): Set the default value of
Vprintable_chars to Qnil.
2002-06-03 23:16:54 +00:00
Dave Love
d2e832963a (Fstring): Doc fix. 2002-05-25 23:13:09 +00:00
Kenichi Handa
7b40ebaf2a (string_escape_byte8): Make multibyte string with correct size. 2002-05-16 11:25:20 +00:00
Kenichi Handa
1889b23802 (c_string_width): Add return type `int'.
(char_string_with_unification): Arg ADVANCED deleted.
2002-03-05 00:07:51 +00:00
Kenichi Handa
0168c3d809 New file. 2002-03-01 01:15:38 +00:00