1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 22:40:51 -08:00
Commit graph

9309 commits

Author SHA1 Message Date
Paul D. Smith
75c0d0950d Checkpoint changes. Bug fixes, mostly. 1998-10-03 05:40:15 +00:00
Kenichi Handa
d7af002f65 (adjust_after_replace): Don't delete text properties here. 1998-09-28 11:52:53 +00:00
Kenichi Handa
88993dfd4e (check_composing_code): Fix previous change. Now it
alwasy returns 0 or -1.
(decode_coding_iso2022): Adjusted for the above change.
(encode_coding_iso2022): When encoding the last block, flush out
tailing garbage bytes.
(setup_coding_system): Delete unnecessary code.
(shrink_decoding_region): Check translation table.  If ASCII
should be translated, give up shrinking.
(shrink_encoding_region): Likewise.
(SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
(SHRINK_CONVERSION_REGION): New macro.
(code_convert_region): Call SHRINK_CONVERSION_REGION.  Delete text
properties here.
(code_convert_region): In the case of encoding, always calulate
correct character number.
(code_convert_string): Call SHRINK_CONVERSION_REGION.
(code_convert_region1): Don't delete text properties here.
(check_composing_code): Fix previous change.  Now it
alwasy returns 0 or -1.
(decode_coding_iso2022): Adjusted for the above change.
(encode_coding_iso2022): When encoding the last block, flush out
tailing garbage bytes.
(setup_coding_system): Delete unnecessary code.
(shrink_decoding_region): Check translation table.  If ASCII
should be translated, give up shrinking.
(shrink_encoding_region): Likewise.
(SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
(SHRINK_CONVERSION_REGION): New macro.
(code_convert_region): Call SHRINK_CONVERSION_REGION.  Delete text
properties here.
(code_convert_region): In the case of encoding, always calulate
correct character number.
(code_convert_string): Call SHRINK_CONVERSION_REGION.
(code_convert_region1): Don't delete text properties here.
1998-09-28 11:52:53 +00:00
Kenichi Handa
c42869c47d (encode_terminal_code): Handle raw 8-bit codes correctly. 1998-09-28 11:52:53 +00:00
Richard M. Stallman
432eec292e Treat __GNU__ line NeXT: undefine BSD and FSCALE. 1998-09-27 07:29:59 +00:00
Richard M. Stallman
d5844360c8 (NLIST_STRUCT, KERNEL_FILE, LDAV_SYMBOL): Add #undefs. 1998-09-27 07:21:30 +00:00
Richard M. Stallman
81b7af7247 (sort_args): Fill extra space with NULL ptrs. 1998-09-27 07:11:54 +00:00
Kenichi Handa
4224cb6213 (Fformat): Check format control characters. 1998-09-26 04:20:48 +00:00
Kenichi Handa
de79a6a5ed (check_composing_code): If the current composing
sequence doesn't end properly, return -1.
(DECODE_CHARACTER_ASCII): Update coding->composed_chars.
(DECODE_CHARACTER_DIMENSION1): Likewise.
(decode_coding_iso2022): Check validity of a composing sequence.
(code_convert_string): If the length of text to be converted is
shrunk to zero, don't perform code conversion.
(shrink_decoding_region): Fix previous change.
1998-09-26 04:20:48 +00:00
Kenichi Handa
450c60a559 (struct coding_system): New member composed_chars. 1998-09-26 04:20:48 +00:00
Paul Eggert
08b4600264 (underlying_strftime):
Set the buffer to a nonzero value before calling
strftime, and check to see whether strftime has set the buffer to zero.
This lets us distinguish between an empty buffer and an error.

I'm installing this patch by hand now; it will be superseded whenever
the glibc sources are propagated back to fsf.org.
1998-09-25 21:40:23 +00:00
Kenichi Handa
fdfcf19d01 (decode_eol): While decoding DOS-like eol, handle a
single CR code correctly.
(shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
1998-09-25 07:32:05 +00:00
Geoff Voelker
f695b4b18a (w32_color_map_lookup): New function.
(x_to_w32_color): Approximate colors ending in numbers if necessary.
1998-09-24 02:14:55 +00:00
Kenichi Handa
519bf1461a (ccl_driver): Report correct CCL program counter on error. 1998-09-22 10:33:09 +00:00
Kenichi Handa
703dc2a895 (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
strings unibyte.
(xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
1998-09-22 10:33:09 +00:00
Kenichi Handa
24819c4351 (Fcall_interactively): Don't use input method when
reading a character in the case of `c' code letter.
1998-09-22 10:23:40 +00:00
Dave Love
5b2a531650 (Fsave_restriction): Doc fix. 1998-09-21 17:43:14 +00:00
Karl Heuer
cac84ff0a2 (build_load_history): Do add to Vload_history
even when dumping Emacs.
1998-09-21 16:31:46 +00:00
Kenichi Handa
12abd7d10f (CCL_WRITE_CHAR): Don't use bcopy.
(ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
cause error if the program is going to output some bytes.  When
outputing a string to notify an error, check the case that
DST_BYTES is zero.
1998-09-18 13:10:40 +00:00
Kenichi Handa
9864ebcee4 (ccl_coding_driver): If ccl_driver is interrupted by a
user or the CCL program executed an invalid command, return
CODING_FINISH_INTERRUPT.
(code_convert_region): Pay attention to the converters return
value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
1998-09-18 13:10:40 +00:00
Kenichi Handa
1ee0bc0950 (CODING_FINISH_INTERRUPT): New macro. 1998-09-18 13:10:40 +00:00
Kenichi Handa
23b20a7066 (adjust_markers_for_replace): Don't adjust a byte
position if it is FROM.
(adjust_markers_for_combining): New function.
(combine_bytes): Call adjust_markers_for_combining instead of
adjust_markers_for_replace.
(adjust_after_replace): Record deletion of combining after bytes
with the correct position.  Don't add combining bytes to the args
given to adjust_point.  Handle correctly the case that there are
both before and after combining bytes.
(replace_range): Likewise.  Record the actual deletion after
recoding deletions of combining bytes.
1998-09-16 07:21:31 +00:00
Kenichi Handa
f2558efddd (code_convert_region): Update beg_unchanged and
end_unchanged after we delete the source text.
1998-09-16 07:21:31 +00:00
Kenichi Handa
457262616e (message_log_check_duplicate): Count byte length of the
latest message correctly.
1998-09-16 07:21:31 +00:00
Karl Heuer
05edf8bd68 (Fmake_local_variable): Doc fix. 1998-09-13 03:58:36 +00:00
Karl Heuer
26a9b1f3b7 (redisplay_internal): Use TEMP_SET_PT_BOTH
instead of SET_PT_BOTH.
(try_window_id, display_text_line): Likewise.
1998-09-13 03:54:01 +00:00
Dave Love
451f7df83b (Fwith_output_to_temp_buffer): Doc fix. 1998-09-10 22:51:33 +00:00
Karl Heuer
5cfc5cbe70 (TIOCSIGSEND): Add #undef.
(bcopy, bcmp, bzero): Add #undef.
1998-09-10 15:59:36 +00:00
Karl Heuer
b519fca5a6 (main): Mention --display and --eval in help. 1998-09-10 15:54:42 +00:00
Karl Heuer
a94a433590 (command_loop_1): When switching to selected window's bfr,
first exit if selected frame is dead (no live frames remain).
(read_key_sequence): Likewise.
1998-09-10 15:47:53 +00:00
Paul Eggert
be09e6e6bf Add a comment to emacs_memftime, explaining why it needs to loop. 1998-09-09 21:33:50 +00:00
Paul Eggert
70ebbe5f81 (emacs_memftime): New function.
(Fformat_time_string): Use it to handle null bytes in formats
correctly.
1998-09-08 03:56:09 +00:00
Kenichi Handa
8bedbe9dc2 (adjust_after_replace): Don't add combining bytes to
the args given to adjust_point.  Handle correctly the case that
there are both before and after combining bytes.
(replace_range): Likewise.
1998-09-08 02:01:59 +00:00
Kenichi Handa
9869520f33 (Fsubst_char_in_region): Call replace_range with the
arg MARKERS 1.
1998-09-08 02:01:59 +00:00
Kenichi Handa
2e45bf1801 (Ffind_charset_region): Optimization for unibyte buffer.
(Ffind_charset_string): For unibyte string, return (ascii).
1998-09-08 02:01:59 +00:00
Karl Heuer
24c129e40e (base64_decode_1, base64_encode_1): New functions.
(Fbase64_decode_string, Fbase64_encode_string): New functions.
(Fbase64_decode_region, Fbase64_encode_region): New functions.
1998-09-07 19:58:05 +00:00
Karl Heuer
f7993597fa (Fwidget_put): Return VALUE instead of garbage. 1998-09-07 17:34:59 +00:00
Karl Heuer
955f3ff914 (error): After enlarging buffer, write to it, not to buf. 1998-09-07 17:31:29 +00:00
Kenichi Handa
b57a7b0bf4 (count_combining_after): Check also preceding bytes at
POS if all characters in STRING are not character head.
1998-09-07 13:39:15 +00:00
Kenichi Handa
8783b77f5b (STRING_CHAR_AND_LENGTH): Return correct value in
ACTUAL_LEN even if LEN is too short to have a valid multibyte
form.
(STRING_CHAR_AND_CHAR_LENGTH): Likewise.
1998-09-07 13:39:15 +00:00
Kenichi Handa
69f7652519 (ccl_coding_driver): Always calculate correct mulibyte
chars in produced byte sequence.
(Ffind_operation_coding_system): Doc-string fixed.
1998-09-07 13:39:15 +00:00
Paul Eggert
177ea5f115 (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
Don't assume that localtime and gmtime return non-NULL.
1998-09-06 15:49:17 +00:00
Karl Heuer
bf6ab66c9a (Fformat): Detect incomplete format spec at string's end. 1998-09-06 14:40:21 +00:00
Karl Heuer
5e24a1f76c (Fload): Handle case where openp finds a magic file
but it has no `load' handler or that handler calls `load'.
If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
1998-09-06 13:57:32 +00:00
Dave Love
ed218f733e (enable-multibyte-characters): Doc fix. 1998-09-04 14:08:26 +00:00
Geoff Voelker
3c1f9d6603 (allocate_heap): Define NTHEAP_PROBE_BASE by default. 1998-09-02 05:25:38 +00:00
Kenichi Handa
23017390a5 (Ftranspose_regions): Use BYTE_POS_ADDR to get an
address in buffer from byte-position.
1998-09-02 04:51:42 +00:00
Eli Zaretskii
9963e85930 (Vnext_selection_coding_system): New variable.
(syms_of_win16select): DEFVAR_LISP it.  No need to staticpro
Vselection_coding_system.
(Fw16_set_clipboard_data): Always convert multibyte strings.  Use
Vnext_selection_coding_system if non-nil.
(Fw16_get_clipboard_data): Always convert a string that includes
non-ASCII characters. Use Vnext_selection_coding_system if
non-nil.
1998-09-01 13:26:41 +00:00
Kenichi Handa
e1d6d5b93f (x_load_font): If SIZE is 0, don't use a name x_list_font returns. 1998-09-01 02:25:57 +00:00
Geoff Voelker
490822ffc8 (w32_wnd_proc): Always zero button_state when releasing
mouse capture.
1998-09-01 00:30:46 +00:00