Jan Djärv
d8f165a83e
Update comment for check_depth.
2004-12-25 10:31:36 +00:00
Jan Djärv
857ae68b96
* alloc.c (check_depth): New variable.
...
(overrun_check_malloc, overrun_check_realloc): Only add
overhead and write check pattern if check_depth is 1 (to handle
recursive calls). Increase/decrease check_depth in entry/exit.
(overrun_check_free): Only check for overhead if check_depth is 1.
Increase/decrease check_depth in entry/exit.
2004-12-25 10:13:57 +00:00
Jan Djärv
bd55c35cc1
* keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
...
before touching input_available_clear_time, to avoid accessing it
from multiple threads.
2004-12-23 22:17:56 +00:00
Jason Rumney
66354420ae
(__WIN32__) [HAVE_NTGUI]: Define for correct behaviour of JPEG library.
2004-12-23 16:16:14 +00:00
Richard M. Stallman
55f4edbcd2
(main): If batch mode, set Vundo_outer_limit to nil.
2004-12-23 00:17:01 +00:00
Richard M. Stallman
8e43e4b2f9
(Vundo_outer_limit): Fix decl.
2004-12-23 00:15:49 +00:00
Richard M. Stallman
81c1cf71fe
(Vundo_outer_limit): Replaces undo_outer_limit. Uses changed.
...
(syms_of_undo): Initialize appropriately.
(truncate_undo_list): If it's nil, there's no limit.
2004-12-23 00:15:23 +00:00
Kenichi Handa
7a0ea9e355
*** empty log message ***
2004-12-22 06:32:49 +00:00
Kenichi Handa
3f6b532c90
(Fx_get_cut_buffer_internal): Return a unibyte string.
2004-12-22 06:32:30 +00:00
Richard M. Stallman
fda2922a94
*** empty log message ***
2004-12-21 11:49:53 +00:00
Richard M. Stallman
6df99033c1
(get_next_display_element): Display codes 8a0 and 8ad
...
specially as `\ ' and `\-'.
2004-12-21 11:35:18 +00:00
Richard M. Stallman
85e7f4776a
(kbd_buffer_store_event_hold):
...
In the code for while-no-input, handle immediate_quit.
2004-12-21 11:34:42 +00:00
Richard M. Stallman
69bbd6bd04
(unwind_to_catch): Clear immediate_quit.
2004-12-21 11:33:57 +00:00
Richard M. Stallman
75fa7206f0
(Fread_file_name): Delete duplicates in
...
file-name-history when history_delete_duplicates is true.
2004-12-21 11:33:16 +00:00
Richard M. Stallman
f10fffca3f
(truncate_undo_list): Update decl.
2004-12-21 11:32:07 +00:00
Richard M. Stallman
137e23eabd
(truncate_undo_list): Return void.
...
Take just one argument, the buffer.
Make it current, and inhibit recursive GC.
Access and update the undo list directly; return void.
Refer to the undo...limit variables directly.
Test undo_outer_limit only after counting the whole current command.
When it's exceeded, call the function in undo-outer-limit-function.
(undo_limit, undo_strong_limit, undo_outer_limit): Moved from alloc.c.
(Vundo_outer_limit_function): New variable.
(syms_of_undo): Define undo-limit, undo-strong-limit
and undo-outer-limit here, and undo-outer-limit-function.
Doc fixes.
2004-12-21 11:31:24 +00:00
Richard M. Stallman
3c7e66a8a7
(Fgarbage_collect): Update call to truncate_undo_list.
...
Call that at the very start.
(undo_limit, undo_strong_limit, undo_outer_limit): To undo.c.
(syms_of_alloc): Don't define undo-limit,
undo-strong-limit and undo-outer-limit here.
2004-12-21 11:30:31 +00:00
Steven Tamm
68c690279c
(mac_do_list_fonts): Fix memory leak
2004-12-20 16:46:17 +00:00
Richard M. Stallman
134579f2da
(re_match_2_internal) <symend, wordend>:
...
Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
2004-12-20 11:06:54 +00:00
Steven Tamm
fbe6152fad
* term/mac-win.el (encoding-vector, mac-font-encoder-list)
...
(ccl-encode-mac-centraleurroman-font): Use centraleurroman
instead of centraleuropean as the name
* macterm.c (endif, x_font_name_to_mac_font_name): Use
maccentraleurroman instead of maccentraleuropean
(mac_c_string_match, mac_do_list_fonts): Speed up font search by
quickly finding a specific font without needing regexps.
2004-12-18 16:36:31 +00:00
Jan Djärv
333f1b6f78
* syssignal.h: Declare main_thread.
...
(SIGNAL_THREAD_CHECK): New macro.
* keyboard.c (input_available_signal): Move thread checking code
to macro SIGNAL_THREAD_CHECK and call that macro.
(interrupt_signal): Call SIGNAL_THREAD_CHECK.
* alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
* emacs.c: Define main_thread.
(main): Initialize main_thread.
(handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
(memory_warning_signal): Call SIGNAL_THREAD_CHECK.
* floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
* dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
* sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
* process.c (send_process_trap, sigchld_handler): Call
SIGNAL_THREAD_CHECK.
* data.c (arith_error): Call SIGNAL_THREAD_CHECK.
* atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
2004-12-15 21:40:41 +00:00
Jan Djärv
fecad3f659
* xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
...
returning when xg_ignore_gtk_scrollbar is true.
2004-12-15 21:34:14 +00:00
Kim F. Storm
dc29116a4b
(read_char): Save and restore echo_string when
...
handling input method.
2004-12-15 00:07:15 +00:00
Kim F. Storm
2a84c6da58
(Vthrow_on_input): New variable.
...
(syms_of_keyboard): Defvar and initialize it.
(kbd_buffer_store_event_hold): Handle Vthrow_on_input.
2004-12-15 00:06:46 +00:00
Kim F. Storm
b8217ea67a
*** empty log message ***
2004-12-14 14:20:44 +00:00
Richard M. Stallman
d9c1ce9ddc
(file-cache-add-directory-using-find):
...
Only set up file-cache-find-command-posix-flag if we will use it.
2004-12-13 19:46:36 +00:00
Richard M. Stallman
42ed718e49
(syms_of_eval) <quit-flag>: Doc fix.
2004-12-13 19:05:42 +00:00
Richard M. Stallman
08fdede613
(QUIT): Check for Vthrow_on_input.
...
(Vthrow_on_input): Declare it.
2004-12-13 18:56:52 +00:00
Kim F. Storm
913c5633d7
(set_iterator_to_next): Reset stop_charpos after display vector.
2004-12-13 14:27:56 +00:00
Kim F. Storm
a6495ed551
*** empty log message ***
2004-12-13 14:27:33 +00:00
Richard M. Stallman
24a0e22f86
*** empty log message ***
2004-12-12 18:25:21 +00:00
Richard M. Stallman
5bf3adc151
(Fvertical_motion): Call move_it_by_lines even if LINES = 0.
2004-12-12 18:16:53 +00:00
Richard M. Stallman
c8ae863bab
(Fall_completions): Add var `zero' and use it in loop.
...
(Ftry_completion): Really use outer `zero'; eliminate inner one.
2004-12-12 18:15:22 +00:00
Kenichi Handa
d6d31e570a
(encode_terminal_code): Fix previous change.
2004-12-12 03:33:50 +00:00
Stefan Monnier
fb6f5cbf9d
*** empty log message ***
2004-12-11 23:51:45 +00:00
Stefan Monnier
d7031edcfa
(handle_async_input): Remove pthread mutex handling.
...
(input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
2004-12-11 23:43:21 +00:00
Stefan Monnier
6f8ffb8869
*** empty log message ***
2004-12-11 22:06:17 +00:00
Stefan Monnier
c096ae4d4e
(Fforward_word): Avoid non-idempotent side-effects in macro arguments.
2004-12-11 21:59:15 +00:00
Stefan Monnier
b28fc9ff5b
(Ftry_completion, Fall_completions): Don't use XFASTINT blindly.
2004-12-11 21:57:50 +00:00
Stefan Monnier
06ca62eb64
(main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
2004-12-11 21:53:33 +00:00
Jan Djärv
2f25767f5e
* w32term.c (x_calc_absolute_position): Remove calculation of
...
difference between inner and outer window. Don't subtract difference
for left and top calculations.
2004-12-11 21:12:45 +00:00
Jan Djärv
c83c9f9db7
* xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
...
for left and top calculations. Remove call to x_real_positions.
(x_check_expected_move): Do not set change_gravity to 1 when calling
x_set_offset.
2004-12-11 18:46:43 +00:00
Richard M. Stallman
cc1caa4e1a
*** empty log message ***
2004-12-08 22:06:49 +00:00
Richard M. Stallman
303747453b
(get_next_display_element): Use `escape-glyph' for
...
control chars and escaped octal codes.
(Qescape_glyph): New variable.
(syms_of_xdisp): Initialize it.
(escape_glyph_face): New variable.
(redisplay_window): Initialize it.
2004-12-08 22:06:31 +00:00
Richard M. Stallman
e0e308237a
(our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE, init_image):
...
Use 1 rather than TRUE. TRUE's not always defined.
2004-12-08 17:56:08 +00:00
Jan Djärv
cf435f39ce
* emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
...
reset_malloc_hooks.
* keyboard.c (handle_async_input, input_available_signal): Add
! defined (SYSTEM_MALLOC) around thread code.
2004-12-07 21:03:04 +00:00
Jan Djärv
f415cacdbd
* alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
2004-12-07 17:38:30 +00:00
Stefan Monnier
19b1f29a2d
Regenerate.
2004-12-07 16:52:54 +00:00
Stefan Monnier
a4547405f5
(init_eval_once): Increase max_specpdl_size to 1000.
2004-12-07 16:52:18 +00:00
Jan Djärv
453a4f1b8a
* xmenu.c (Fx_popup_menu): Correct documentation about position.
...
(xmenu_show): Do not call XTranslateCoordinates. Adjust position
if not given by a mouse click to correspond with x-popup-menu
documentation.
2004-12-07 13:11:59 +00:00