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

18987 commits

Author SHA1 Message Date
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
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