Commit graph

19011 commits

Author SHA1 Message Date
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
Jan Djärv
9a38524cc2 * config.in: Regenerate. 2004-12-07 08:28:17 +00:00
Jan Djärv
aa477689e5 * gtkutil.c: Include signal.h and syssignal.h.
(xg_get_file_name): Block and unblock __SIGRTMIN if defined.

* alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
new variables main_thread and alloc_mutex,
define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
(UN)BLOCK_INPUT.
(emacs_blocked_free, emacs_blocked_malloc)
(emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
(uninterrupt_malloc): Initialize main_thread and alloc_mutex.
(reset_malloc_hooks): New function.

* lisp.h: Declare reset_malloc_hooks.

* emacs.c (Fdump_emacs): Call reset_malloc_hooks.

* keyboard.c: Conditionally include pthread.h
(handle_async_inpu, input_available_signalt): If not in the main
thread, block signal, send signal to main thread and return.
2004-12-07 08:25:43 +00:00
Jan Djärv
ded997c160 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
Set current folder in file chooser if default_filename is a
directory.
2004-12-07 08:09:10 +00:00
Stefan Monnier
c72b0edd08 (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
Remove redundant correctness checks.
(regex_compile): Fix up error codes for \{..\} expressions.
2004-12-06 00:41:40 +00:00
Richard M. Stallman
c721eee5e3 (regex_compile): Fix end-of-pattern case for space. 2004-12-05 23:34:44 +00:00
Kim F. Storm
6108209e54 *** empty log message *** 2004-12-04 01:08:08 +00:00
Steven Tamm
d8f96db8da * macterm.h (cfstring_create_with_utf8_cstring): Added prototype.
* image.c (image_load_quartz2d): Use
cfstring_create_with_utf8_cstring
* macmenu.c (add_menu_item): Use
cfstring_create_with_utf8_cstring
* macfns.c (x_set_name, x_set_title): Use
cfstring_create_with_utf8_cstring
(Fx_file_dialog): Use cfstring_create_with_utf8_cstring and use
constant CFRefs instead of creating them each time for labels.
* mac.c (cfstring_create_with_utf8_cstring): Added to prevent
crashes with invalid characters.
2004-12-03 17:00:11 +00:00
Richard M. Stallman
ab67e8b694 (search-whitespace-regexp): Remove the group. Doc fix.
(isearch-mode-map): No special definition for space.
(isearch-whitespace-chars): Command deleted.
(isearch-forward-regexp): Doc fix.
(isearch-quote-char): When a space is not inside brackets,
use `[ ]' instead of just space.
(isearch-lazy-highlight-search): Bind search-spaces-regexp.
2004-12-03 00:30:33 +00:00
Richard M. Stallman
0cec6eaf20 (RE_TRANSLATE_P): If make_number is not a macro, don't use it here. 2004-12-02 23:43:51 +00:00
Richard M. Stallman
d8bf42567e (insert_from_string_before_markers)
(insert_from_string): Don't modify buffer on empty insertion.
2004-12-02 23:37:13 +00:00
Richard M. Stallman
0b31741cdc (Fcalled_interactively_p): Don't check INTERACTIVE.
(interactive_p): Skip Scalled_interactively_p frames
like Sinteractive_p frames.
2004-12-02 23:36:53 +00:00
Richard M. Stallman
a990865365 (Fmake_variable_buffer_local): Doc fix.
(Fmake_local_variable): Doc fix.
2004-12-02 23:35:42 +00:00
Richard M. Stallman
0c2cb7536e (Fget_lru_window, Fget_largest_window): Doc fixes. 2004-12-02 23:24:43 +00:00
Steven Tamm
f86bdc80c4 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
menu text as UTF8 fails.
2004-12-01 15:51:22 +00:00
Kim F. Storm
bdbed94997 Add commentary for last change.
(XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
sizeof(size_t) != 4.
(overrun_check_malloc, overrun_check_realloc, overrun_check_free):
Use them.  Also clear header and trailer of freed memory.
(GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
(string_overrun_cookie): Rename from string_overrun_pattern.
(GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
2004-12-01 14:10:23 +00:00
Kim F. Storm
1cae6d39e6 *** empty log message *** 2004-12-01 14:09:49 +00:00
Andreas Schwab
77ea0764f6 Declare string_to_multibyte. 2004-12-01 14:05:15 +00:00
Kenichi Handa
29e1d29d55 (encode_terminal_code): Fix previous change. 2004-12-01 11:06:22 +00:00
Kenichi Handa
2d5cd4e6a8 *** empty log message *** 2004-12-01 10:50:54 +00:00
Kenichi Handa
302db6997a (encode_terminal_code): Don't make it "static". 2004-12-01 10:48:52 +00:00
Kenichi Handa
853895f640 (w32con_write_glyphs): Decide coding here.
Adjusted for the change of encode_terminal_code.
2004-12-01 10:48:38 +00:00
Kenichi Handa
25a0994a81 *** empty log message *** 2004-11-30 08:19:52 +00:00