Commit graph

18962 commits

Author SHA1 Message Date
Kenichi Handa
25a0994a81 *** empty log message *** 2004-11-30 08:19:52 +00:00
Kenichi Handa
af645abff5 (encode_terminal_buf, encode_terminal_bufsize): New
variables.
(encode_terminal_code): Argument changed.  Encode all
characters at once, and return a pointer to the result of
encoding.
(write_glyphs): Decide coding here.  Adjusted for the above
change.
(insert_glyphs): Likewise.
(term_init): Initialize encode_terminal_bufsize to 0.
2004-11-30 08:19:32 +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
Kenichi Handa
f943989689 (run_pre_write_conversin_on_c_str): Extern it. 2004-11-30 08:01:45 +00:00
Steven Tamm
fc7a70ccda * keyboard.c: Don't undef SIGIO
* s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
* Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
       (macfns.o): Don't depend on ccl.h.
* macfns.c (mac_frame_parm_handlers): Set handlers for
Qleft_fringe and Qright_fringe.
* macterm.c (mac_fill_rectangle_to_pixmap)
(mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
(mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
Put in #if 0.
(mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
(x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
(XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
(x_draw_glyph_string_background, x_draw_glyph_string_foreground)
[!MAC_OS8]: Added ifdef'd out code for os8.  Don't use
XDrawImageString.  Always draw background and foreground separately.
(x_draw_image_foreground): Use clipping instead of computing the
intersection rectangle.
(x_draw_image_glyph_string): Don't draw an image with mask to a
pixmap.
(x_redisplay_interface): Set flush_display_optional member to 0.
(XTread_socket): Correctly reset the TEConverter
object.
2004-11-30 05:57:27 +00:00
Kim F. Storm
cdcf58d8eb New defines to enable buffer overrun checking.
(GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
(XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
2004-11-30 00:31:38 +00:00
Kim F. Storm
68db37aa53 (malloc_initialize_hook): Don't free malloc_state_ptr if
XMALLOC_OVERRUN_CHECK to avoid crash during load.
2004-11-30 00:31:09 +00:00
Kim F. Storm
212f33f185 Add more checks for buffer overruns.
(XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
xmalloc_overrun_check_trailer, overrun_check_malloc)
overrun_check_realloc, overrun_check_free): Add.
(GC_STRING_EXTRA, string_overrun_pattern): Add.
(check_sblock, allocate_string_data, compact_small_strings):
Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
(check_cons_list): Condition on GC_CHECK_CONS_LIST.
(check_string_free_list): Add.
(allocate_string, sweep_strings): Call check_string_free_list.
2004-11-30 00:30:56 +00:00
Kim F. Storm
fc36888973 *** empty log message *** 2004-11-30 00:30:37 +00:00
Kim F. Storm
2ec7f67a91 (concat): Use SAFE_ALLOCA. 2004-11-29 15:35:15 +00:00
Kim F. Storm
0af8cfe11e *** empty log message *** 2004-11-29 15:34:57 +00:00
Stefan Monnier
77220eeb1e (emacs_write): Don't use QUIT. 2004-11-29 14:39:09 +00:00
Kenichi Handa
a778cf63fc *** empty log message *** 2004-11-29 07:37:45 +00:00
Kenichi Handa
dcd74c5f2c (init_buffer): Set current_buffer->directory to a
multibyte string made by string_to_multibyte.
2004-11-29 07:16:25 +00:00
Kenichi Handa
a520393db0 (init_cmdargs): Set unibyte strings in Vcommand_line_args. 2004-11-29 07:16:09 +00:00
Andreas Schwab
e3177e4368 Enable no-op gcpros on ia64.
(GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
2004-11-27 22:42:19 +00:00
Andreas Schwab
4dec23ff0b (mark_stack): Call GC_MARK_SECONDARY_STACK if defined. 2004-11-27 22:40:50 +00:00
Andreas Schwab
4ba93ac05d (lock_file_1): Call get_boot_time early. Increase
buffer size.
2004-11-27 22:09:40 +00:00
Eli Zaretskii
ca5e6fef9f *** empty log message *** 2004-11-27 12:53:11 +00:00
Eli Zaretskii
9bcc29586f (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN is not defined. 2004-11-27 12:24:40 +00:00
Kim F. Storm
e281182817 (syms_of_search) <search-spaces-regexp>: Move 'doc:'
marker out of doc string.
2004-11-27 01:09:08 +00:00
Stefan Monnier
7a262394fb (POSIX_SIGNALS): Undo the removal of 2002-08-25,
which was not mentioned in the log.
2004-11-26 23:35:51 +00:00
Kim F. Storm
cfd3af7a4d (update_window_fringes): Prefer truncation bitmaps over
angle bitmaps at top/bottom line.
2004-11-26 15:14:16 +00:00
Kim F. Storm
048bb03fe2 *** empty log message *** 2004-11-26 15:13:53 +00:00
Kim F. Storm
064fd8ec67 Undo recent changes for restoring it->saved_face_id. Instead,
set it when it->method is set to next_element_from_display_vector.
(setup_for_ellipsis): Add LEN argument.  Callers changed.
Set it->saved_face_id.
(get_next_display_element): Use loop instead of recursion.
Set it->saved_face_id.  Combine duplicate code for ctr chars.
(next_element_from_display_vector): Do not set it->saved_face_id.
(next_element_from_ellipsis): Use setup_for_ellipsis.
2004-11-26 14:38:55 +00:00
Kim F. Storm
f33cc5a9a5 *** empty log message *** 2004-11-26 14:37:55 +00:00
Eli Zaretskii
670e89068c *** empty log message *** 2004-11-26 12:05:49 +00:00
Eli Zaretskii
b28d0d9a8f (Fdefvar): Declare pdl from last change as `volatile' to prevent
compiler warnings.
2004-11-26 11:47:20 +00:00
Stefan Monnier
1bf0e60466 (command_loop_1): Print a message describing the key
the user just pressed when this key has no binding.
2004-11-25 22:17:49 +00:00
Stefan Monnier
275464e7a5 (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
(emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
2004-11-25 20:01:39 +00:00
Stefan Monnier
495bf63050 (readchar): Check QUIT when `getc' is interrupted. 2004-11-25 20:01:18 +00:00
Stefan Monnier
cab27d048b *** empty log message *** 2004-11-25 16:48:45 +00:00
Richard M. Stallman
261b01c642 *** empty log message *** 2004-11-25 03:22:56 +00:00
Richard M. Stallman
8e7a47862a (run_pre_post_conversion_on_str): Bind Qinhibit_read_only. 2004-11-25 03:18:31 +00:00
Richard M. Stallman
79e3497d3f (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix. 2004-11-25 03:16:34 +00:00
Kim F. Storm
bd0e59f8cf (move_it_in_display_line_to, display_line):
Restore saved_face_id also when truncate-lines or hscrolled.
2004-11-24 11:29:46 +00:00
Kim F. Storm
a5bd504e5a *** empty log message *** 2004-11-24 11:29:27 +00:00
Jan Djärv
255e4140a7 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
x-use-old-gtk-file-dialog.

* xfns.c: Define x_use_old_gtk_file_dialog.
(syms_of_xfns): Rename use-old-gtk-file-dialog to x-...  Move it
outside ifdef USE_GTK.
2004-11-23 19:56:55 +00:00
Stefan Monnier
5e92b1caaf (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
Don't use XFASTINT blindly.
2004-11-23 05:21:31 +00:00
Stefan Monnier
8fe48a6f12 (RE_TRANSLATE_P): Don't use XFASTINT blindly. 2004-11-23 05:20:49 +00:00
Stefan Monnier
2ca8b6c2c3 (skip_invisible): Avoid non-idempotent side-effects in macro arguments. 2004-11-23 05:19:17 +00:00
Stefan Monnier
38cbfed434 (Flookup_key): Check INTEGERP before XINT. 2004-11-23 05:08:09 +00:00
Stefan Monnier
8bc285a288 (oblookup): Don't use XFASTINT blindly. 2004-11-23 05:06:56 +00:00
Stefan Monnier
0f8fe9a26f (Fset_window_scroll_bars): Don't use XINT if it isn't int.
(decode_next_window_args, window_loop): Don't use XFASTINT blindly.
2004-11-23 05:05:34 +00:00
Kim F. Storm
e6fb381c3e * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
(MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
2004-11-23 00:51:55 +00:00
Kim F. Storm
4d7211144f *** empty log message *** 2004-11-23 00:51:35 +00:00
Kim F. Storm
26a5d4404c (update_window_fringes): Show top row indicator if
window has header-line.  Don't show arrow at bob and eob
if the boundary indicators are not used.
(Fset_fringe_bitmap_face): Signal error in lookup_named_face.
2004-11-22 23:26:36 +00:00
Kim F. Storm
1c395ea72d (lookup_named_face): Fix prototype. 2004-11-22 23:26:26 +00:00
Kim F. Storm
c49a049515 (set_window_buffer): Clear display_error_modiff. 2004-11-22 23:26:13 +00:00
Kim F. Storm
ff7d52cda4 (handle_single_display_prop): Don't signal error in
lookup_named_face for unknown fringe face name.
(highlight_trailing_whitespace): Don't signal error in
lookup_named_face if trailing-whitespace face unknown.
(calc_line_height_property): Don't signal error in
lookup_named_face if specified face name is unknown.
2004-11-22 23:26:02 +00:00