Commit graph

20907 commits

Author SHA1 Message Date
Richard M. Stallman
1fc4d4635c (restore_menu_items, save_menu_items): New fns.
(set_frame_menubar): Use save_menu_items.  Save updated vector in
the frame before unwinding it.  Don't use unuse_menu_items.  Don't
use discard_menu_items.
(digest_single_submenu): Abort if an item is not in a pane.
(init_menu_items): Put the error check at the top.
2006-04-18 21:01:16 +00:00
Thien-Thi Nguyen
6588243de7 Comment munging wrt max-specpdl-size; nfc. 2006-04-18 21:00:44 +00:00
Richard M. Stallman
5615dcc03b (describe_map): Make "shadowed" warning more verbose. 2006-04-18 20:58:59 +00:00
Richard M. Stallman
d06d657cc7 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
(record_symbol): New function.
2006-04-18 20:57:56 +00:00
Richard M. Stallman
bd99e2429e (adjust_window_trailing_edge): Correctly distinguish
series vs parallel cases, even when window has no parent.
2006-04-18 20:56:31 +00:00
YAMAMOTO Mitsuharu
b96fe6eadb (XCreateGC, x_per_char_metric, xlfdpat_create)
(init_font_name_table, init_font_name_table, mac_do_list_fonts)
(XLoadQueryFont, mac_store_apple_event): Don't check
return value of xmalloc.
2006-04-18 08:13:49 +00:00
YAMAMOTO Mitsuharu
1091c0b3cc (get_scrap_target_type_list, defer_apple_events)
(copy_scrap_flavor_data, mac_handle_service_event): Don't check
return value of xmalloc/xrealloc.
2006-04-18 08:12:31 +00:00
YAMAMOTO Mitsuharu
305366a3bc (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
(create_apple_event_from_event_ref, xrm_get_preference_database)
(cfstring_create_normalized): Don't check return value of xmalloc.
2006-04-18 08:11:56 +00:00
YAMAMOTO Mitsuharu
1caa0b53a0 (x_create_bitmap_from_data) [MAC_OS]: Don't check return
value of xmalloc.
2006-04-18 08:10:30 +00:00
Kim F. Storm
3f489dc760 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
(window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
2006-04-17 21:50:59 +00:00
Kim F. Storm
39d7883583 *** empty log message *** 2006-04-17 21:50:43 +00:00
Nick Roberts
f8c62b7037 (coordinates_in_window): On the vertical border, calculate the row number
measured from the top of the window, not the top of the frame.
2006-04-17 00:24:50 +00:00
Nick Roberts
6c7809b31d *** empty log message *** 2006-04-17 00:23:20 +00:00
Eli Zaretskii
4bba30640b (SYSTEM_PURESIZE_EXTRA): Reduce to 24000. 2006-04-16 18:07:30 +00:00
Romain Francoise
8d95636b2e (BASE_PURESIZE): Decrement back to 1200000. 2006-04-16 17:27:17 +00:00
Andreas Schwab
6a258a33e0 (PURESIZE_RATIO): Reduce to 10/6. 2006-04-16 12:19:47 +00:00
Romain Francoise
f70a96b051 (BASE_PURESIZE): Increment to 1210000. 2006-04-15 17:53:32 +00:00
Eli Zaretskii
cda4c00bef *** empty log message *** 2006-04-13 10:55:47 +00:00
Eli Zaretskii
a261265692 (Fprin1_to_string): Mention in the `doc' that the behavior is modified by
`print-level' and `print-length'.
2006-04-13 10:36:25 +00:00
Kenichi Handa
6e9715ae06 (setup_coding_system): If eol-type is not yet decided
and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
If coding_system is nil, return 0.
(code_convert_region1): Even if coding_system is nil, don't skip
conversion if system_eol_type is not LF.
(code_convert_string1): Likewise.
(code_convert_string_norecord): Likewise.
2006-04-13 06:47:18 +00:00
Kenichi Handa
73ec0f8900 (shrink_encoding_region): If eol_type is not yet decided and
system_eol_type is not LF, don't shrink.
2006-04-13 04:58:07 +00:00
Kenichi Handa
9642847f36 (encode_coding): If eol_type is not yet decided, use
system_eol_type.
2006-04-13 04:39:20 +00:00
Kenichi Handa
2b89a53fc4 (setup_coding_system): Fix previous change. 2006-04-13 04:25:44 +00:00
Richard M. Stallman
a53fe666c2 (read_key_sequence): Explicitly avoid keybuf[-1]. 2006-04-13 01:25:52 +00:00
Nick Roberts
a526e8f579 (note_mouse_highlight): Add help echo for dragging vertical line. 2006-04-13 01:21:48 +00:00
Nick Roberts
5c24517a22 *** empty log message *** 2006-04-13 01:19:56 +00:00
Richard M. Stallman
9d1a8e5da1 (conv_lisp_to_sockaddr): Fix previous change. 2006-04-13 01:08:27 +00:00
Romain Francoise
7e37cb6957 *** empty log message *** 2006-04-12 18:17:17 +00:00
Richard M. Stallman
27448380dc (Fprocess_send_eof): Abort if fail to open null device. 2006-04-12 15:01:37 +00:00
Richard M. Stallman
6bf890d76a (conv_lisp_to_sockaddr): If FAMILY unknown, just return. 2006-04-12 15:00:32 +00:00
YAMAMOTO Mitsuharu
190998d863 *** empty log message *** 2006-04-12 08:11:35 +00:00
YAMAMOTO Mitsuharu
27d744ae6c (Finternal_merge_in_global_face, try_font_list): Add
explicit braces to avoid ambiguous `else'.
2006-04-12 08:11:04 +00:00
YAMAMOTO Mitsuharu
f6645c84ed (get_glyph_string_clip_rects): Add parentheses around &&
within ||.  Add explicit braces to avoid ambiguous `else'.
(dump_glyph_row): Remove label for `inverse_p' from legend.
2006-04-12 08:10:33 +00:00
YAMAMOTO Mitsuharu
7f900522c4 Include config.h before using HAVE_MALLOC_MALLOC_H.
(malloc, realloc, free): Add undefs.
(read_load_commands): Remove unused variable `n' and `j'.
(copy_data_segment): Remove unused variable `r'.
2006-04-12 08:10:07 +00:00
YAMAMOTO Mitsuharu
5eabdcc1a2 (x_set_mouse_position, x_set_mouse_pixel_position)
(x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
(x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
(do_menu_choice, have_menus_p, x_real_positions)
(x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
(x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
(free_frame_menubar): Add externs.
2006-04-12 08:09:44 +00:00
YAMAMOTO Mitsuharu
f93e4d4f49 Don't include gnu.h.
(x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
(x_sync): Move to macfns.c.
[USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
variable `mask_bits'.
(mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
(x_draw_image_glyph_string): Remove unused variable `pixmap'.
(x_mac_to_emacs_modifiers): Remove function.
(XTset_vertical_scroll_bar, mac_handle_visibility_change)
(x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
Add explicit braces to avoid ambiguous `else'.
(x_make_frame_visible): Remove unused variables `type',
`original_top', and `original_left'.
(mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
(x_load_font): Remove unused variables `full_name', and `value'.
(do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
Remove functions.
(do_zoom_window): Reorganize variables with respect to conditionals.
(init_command_handler): Remove unused variable `err'.
[MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
2006-04-12 08:09:24 +00:00
YAMAMOTO Mitsuharu
961bf5901f (get_flavor_type_from_symbol): Remove unused variable `val'.
(get_scrap_private_timestamp, x_get_foreign_selection)
(copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
(Fmac_process_deferred_apple_events): Remove unused variables
`keyword', `reply', `apple_event', `count', and `err'.
2006-04-12 08:08:30 +00:00
YAMAMOTO Mitsuharu
3e7f257019 (min_menu_id): Make element type explicit. 2006-04-12 08:07:48 +00:00
YAMAMOTO Mitsuharu
28a11ed69d (x_to_mac_color): Remove unused variable `tail'.
(x_set_mouse_color): Remove unused variable `dpy'.
(Fx_create_frame): Remove unused variable `x_frame_count'.
(Fx_server_version): Add explicit braces to avoid ambiguous `else'.
(x_sync): Move from macterm.c.
(Fx_file_dialog): Remove unused variable `default_filter_index'.
2006-04-12 08:07:32 +00:00
YAMAMOTO Mitsuharu
1fcd1370e2 (init_process): Remove undef.
(select) [MAC_OSX]: Undefine before including sysselect.h.
(posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
Remove functions and prototypes.
(parse_value): Add parentheses around + inside shift.
(path_from_vol_dir_name): Make static.
(get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
[!MAC_OSX] (get_path_to_system_folder): Likewise.
(Fmac_get_file_creator, Fmac_get_file_type): Remove unused
variable `cCode'.
(Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
(Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
2006-04-12 08:06:59 +00:00
YAMAMOTO Mitsuharu
4f48f1abea (syms_of_fontset, Fset_fontset_font): Put extern and
EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
(syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
Put externs in #ifdef HAVE_X_WINDOWS.
(syms_of_macfns, syms_of_macselect, syms_of_macterm)
(syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
(init_mac_osx_environment) [MAC_OSX]: Add extern.
2006-04-12 08:06:25 +00:00
YAMAMOTO Mitsuharu
9db94f8296 [MAC_OS] (xpm_load_image): Add parentheses around
assignment used as truth value.  Add explicit braces to avoid
ambiguous `else'.
[MAC_OS] (gif_load): Remove unused variable `gcpro1'.
2006-04-12 08:05:52 +00:00
YAMAMOTO Mitsuharu
3df07ecd20 [HAVE_MENUS && MAC_OS]: Include macterm.h. 2006-04-12 08:05:07 +00:00
Jan Djärv
00d70d574c * dispnew.c (init_display): Don't init X display if the user asked
for a non-X display.
2006-04-12 06:23:12 +00:00
Kenichi Handa
957b3c5f2f (setup_coding_system): Use system_eol_type for default
coding->eol_type.
2006-04-12 05:48:37 +00:00
Dan Nicolaescu
db926d8091 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
* data.c (wrong_type_argument): Try to avoid compiler warnings due
to the fact the function is now marked as NO_RETURN.
2006-04-11 07:13:33 +00:00
Eli Zaretskii
978781a5f7 *** empty log message *** 2006-04-10 20:11:12 +00:00
Eli Zaretskii
9b67f3aaa7 (pid_t) [_MSC_VER]: New typedef. 2006-04-10 20:10:33 +00:00
Romain Francoise
8fd0f424be (gethomedir): Use xstrdup. 2006-04-10 11:01:29 +00:00
Andreas Schwab
f8f107772d (gethomedir): Make sure to always return a pointer that
can be passed to free.
2006-04-10 09:33:40 +00:00